about summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorDavid Wood <david.wood2@arm.com>2025-06-18 12:23:35 +0000
committerDavid Wood <david.wood2@arm.com>2025-06-18 14:22:29 +0000
commitb93020257e4b6c88cd7947257984b1da2158a757 (patch)
tree610418cd73f5e3774845b8f0d435ceddf34fe954 /compiler/rustc_span/src
parent27733d46d79f4eb92e240fbba502c43022665735 (diff)
hir_analysis: add `#![rustc_no_implicit_bounds]`
Adds a new `rustc_attrs` attribute that stops rustc from adding any
default bounds. Useful for tests where default bounds just add noise and
make debugging harder.
Diffstat (limited to 'compiler/rustc_span/src')
-rw-r--r--compiler/rustc_span/src/symbol.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs
index baadff16120..6102a73bcda 100644
--- a/compiler/rustc_span/src/symbol.rs
+++ b/compiler/rustc_span/src/symbol.rs
@@ -1866,6 +1866,7 @@ symbols! {
         rustc_never_returns_null_ptr,
         rustc_never_type_options,
         rustc_no_implicit_autorefs,
+        rustc_no_implicit_bounds,
         rustc_no_mir_inline,
         rustc_nonnull_optimization_guaranteed,
         rustc_nounwind,