about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src/errors.rs
diff options
context:
space:
mode:
authorGeorg Semmler <github@weiznich.de>2024-07-11 08:14:28 +0200
committerGeorg Semmler <github@weiznich.de>2024-07-11 08:14:28 +0200
commit27d5db166e8e640ab8317cc96b91ffe60270b6c5 (patch)
treeca0ccf75ff5166b601d31cd34328db15e00de441 /compiler/rustc_codegen_gcc/src/errors.rs
parente1f45a1442bb373429b6b0838e8ef806ddddfeef (diff)
downloadrust-27d5db166e8e640ab8317cc96b91ffe60270b6c5.tar.gz
rust-27d5db166e8e640ab8317cc96b91ffe60270b6c5.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/errors.rs')
0 files changed, 0 insertions, 0 deletions