diff options
| author | bors <bors@rust-lang.org> | 2019-08-30 03:09:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-08-30 03:09:39 +0000 |
| commit | c7d4df0fcfc3ed3ee98a430e451c6776e90d65ae (patch) | |
| tree | a8c0a086a2829c37fca162af80cb2caef3ae0e0e /src/libsyntax | |
| parent | 72b2abfd65ba024e12d7fe51852a309419f494d8 (diff) | |
| parent | 6978b9482b976d991dac1dc55a6effe1f697cd1f (diff) | |
| download | rust-c7d4df0fcfc3ed3ee98a430e451c6776e90d65ae.tar.gz rust-c7d4df0fcfc3ed3ee98a430e451c6776e90d65ae.zip | |
Auto merge of #60966 - oli-obk:diagnostic_items, r=eddyb
Add a "diagnostic item" scheme for lints referring to libstd items fixes https://github.com/rust-lang/rust/issues/39131 r? @Manishearth @rust-lang/wg-diagnostics
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate/builtin_attrs.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate/builtin_attrs.rs b/src/libsyntax/feature_gate/builtin_attrs.rs index b934f2e7f64..ee7ac3b15d9 100644 --- a/src/libsyntax/feature_gate/builtin_attrs.rs +++ b/src/libsyntax/feature_gate/builtin_attrs.rs @@ -462,6 +462,17 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[ "language items are subject to change", ), ( + sym::rustc_diagnostic_item, + Normal, + template!(NameValueStr: "name"), + Gated( + Stability::Unstable, + sym::rustc_attrs, + "diagnostic items compiler internal support for linting", + cfg_fn!(rustc_attrs), + ), + ), + ( sym::no_debug, Whitelisted, template!(Word), Gated( Stability::Deprecated("https://github.com/rust-lang/rust/issues/29721", None), |
