diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-07-11 17:01:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-11 17:01:39 +0200 |
| commit | a10b4d1463dac935a53441e7cd85fa9df6231a6c (patch) | |
| tree | 944f115d95feff3b55c4d0b4e26e7ccd39a0890e /compiler/rustc_codegen_gcc/src/errors.rs | |
| parent | 73c500b3a759b7fcb70633e091d7a152f797c3cd (diff) | |
| parent | 27d5db166e8e640ab8317cc96b91ffe60270b6c5 (diff) | |
| download | rust-a10b4d1463dac935a53441e7cd85fa9df6231a6c.tar.gz rust-a10b4d1463dac935a53441e7cd85fa9df6231a6c.zip | |
Rollup merge of #127598 - weiznich:diagnostic_do_not_recommend_also_skips_help, r=compiler-errors
Allows `#[diagnostic::do_not_recommend]` to supress trait impls in suggestions as well
This commit changes the error reporting mechanism for not implemented traits to skip impl marked as `#[diagnostic::do_not_recommend]` in the help part of the error message ("the following other types implement trait `Foo`:"). The main use case here is to allow crate authors to skip non-meaningful confusing suggestions. A common example for this are fully generic impls on tuples.
Related to https://github.com/rust-lang/rust/issues/51992
r? `@compiler-errors`
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
