stabilize #[used]

closes #40289
This commit is contained in:
Jorge Aparicio 2018-09-09 15:43:28 +02:00
parent df6ba0c4ac
commit 2fb5d5df89
5 changed files with 5 additions and 12 deletions

View file

@ -9,7 +9,6 @@
// except according to those terms.
#![crate_type = "lib"]
#![feature(used)]
#[used]
static FOO: u32 = 0;

View file

@ -10,7 +10,6 @@
// run-pass
#![deny(dead_code)]
#![feature(used)]
#[used]
static FOO: u32 = 0;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(used)]
#[used]
static FOO: u32 = 0; // OK