derive_more icon indicating copy to clipboard operation
derive_more copied to clipboard

Include tests from rust-lang/rust for Debug derive

Open JelteF opened this issue 2 years ago • 0 comments

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

JelteF avatar Aug 13 '23 17:08 JelteF