Files
rust/tests/ui/modules
Dnreikronos 8685d8fd39 Avoid redundant note when a #[derive] is already suggested
The `#[rustc_on_unimplemented]` note on `Debug` ("add `#[derive(Debug)]`
to `X` or manually `impl Debug for X`") duplicates the `consider
annotating X with #[derive(..)]` suggestion emitted by `suggest_derive`.

Skip the note when that suggestion will be shown, and keep it otherwise
so types whose derive can't be suggested (e.g. a field isn't `Debug`)
still get actionable guidance.
2026-05-29 18:02:10 -03:00
..