Skip to content

Commit d1b08b1

Browse files
committed
deprecate no_debug
1 parent 121e903 commit d1b08b1

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/libsyntax/feature_gate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ pub const KNOWN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeGat
643643
("link_section", Whitelisted, Ungated),
644644
("no_builtins", Whitelisted, Ungated),
645645
("no_mangle", Whitelisted, Ungated),
646-
("no_debug", Whitelisted, Gated(Stability::Unstable,
646+
("no_debug", Whitelisted, Gated(Stability::Deprecated,
647647
"no_debug",
648648
"the `#[no_debug]` attribute \
649649
is an experimental feature",
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
#![deny(deprecated)]
12+
#![feature(no_debug)]
13+
14+
#[no_debug] //~ ERROR use of deprecated attribute: no_debug
15+
fn main() {}

0 commit comments

Comments
 (0)