From f2c5acd611e383020db373f0b2dd7d4a89ed33c0 Mon Sep 17 00:00:00 2001 From: "Zack M. Davis" Date: Fri, 29 Sep 2017 23:44:41 -0700 Subject: code suggestion for deprecated-attribute lint Also, fix the deprecation message for the late no-debug feature. --- src/libsyntax/feature_gate.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libsyntax') diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index e92a7484f33..f6e85ed6725 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -824,7 +824,8 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG ("no_debug", Whitelisted, Gated( Stability::Deprecated("https://github.com/rust-lang/rust/issues/29721"), "no_debug", - "the `#[no_debug]` attribute is an experimental feature", + "the `#[no_debug]` attribute was an experimental feature that has been \ + deprecated due to lack of demand", cfg_fn!(no_debug))), ("omit_gdb_pretty_printer_section", Whitelisted, Gated(Stability::Unstable, "omit_gdb_pretty_printer_section", -- cgit 1.4.1-3-g733a5