derive_more
derive_more copied to clipboard
Include tests from rust-lang/rust for Debug derive
Our Debug derive is intended to be a strict superset of the one provided by std. Otherwise it's not safe for people to do use derive_more::Debug, because their resulting derives might change.
To make sure we actually adhere to this intention we should run the tests from the rust-lang/rust repo. This directory contains the tests for derive(Debug) afaict, but also for some other derives: https://github.com/rust-lang/rust/tree/master/tests/ui/derives We should copy the relevant ones from that directory and add use derive_more::Debug to the top and ensure that they still pass.
Related to #289