Skip to content

Commit be8ace8

Browse files
committed
Remove all uses of #[staged_api]
1 parent 5127d24 commit be8ace8

File tree

52 files changed

+34
-52
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+34
-52
lines changed

src/liballoc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
#![cfg_attr(stage0, feature(custom_attribute))]
6161
#![crate_name = "alloc"]
6262
#![crate_type = "rlib"]
63-
#![staged_api]
63+
#![cfg_attr(stage0, staged_api)]
6464
#![allow(unused_attributes)]
6565
#![unstable(feature = "alloc",
6666
reason = "this library is unlikely to be stabilized in its current \

src/liballoc_jemalloc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#![cfg_attr(stage0, feature(custom_attribute))]
1212
#![crate_name = "alloc_jemalloc"]
1313
#![crate_type = "rlib"]
14-
#![staged_api]
14+
#![cfg_attr(stage0, staged_api)]
1515
#![no_std]
1616
#![cfg_attr(not(stage0), allocator)]
1717
#![cfg_attr(stage0, allow(improper_ctypes))]

src/liballoc_system/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#![cfg_attr(stage0, feature(custom_attribute))]
1212
#![crate_name = "alloc_system"]
1313
#![crate_type = "rlib"]
14-
#![staged_api]
14+
#![cfg_attr(stage0, staged_api)]
1515
#![no_std]
1616
#![cfg_attr(not(stage0), allocator)]
1717
#![cfg_attr(stage0, allow(improper_ctypes))]

src/libarena/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#![cfg_attr(stage0, feature(custom_attribute))]
2424
#![crate_name = "arena"]
2525
#![unstable(feature = "rustc_private", issue = "27812")]
26-
#![staged_api]
26+
#![cfg_attr(stage0, staged_api)]
2727
#![crate_type = "rlib"]
2828
#![crate_type = "dylib"]
2929
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/libcollections/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
1717
#![cfg_attr(stage0, feature(custom_attribute))]
1818
#![crate_name = "collections"]
19-
#![staged_api]
19+
#![cfg_attr(stage0, staged_api)]
2020
#![crate_type = "rlib"]
2121
#![unstable(feature = "collections",
2222
reason = "library is unlikely to be stabilized with the current \

src/libcore/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
reason = "the libcore library has not yet been scrutinized for \
5757
stabilization in terms of structure and naming",
5858
issue = "27701")]
59-
#![staged_api]
59+
#![cfg_attr(stage0, staged_api)]
6060
#![crate_type = "rlib"]
6161
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
6262
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",

src/libflate/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#![cfg_attr(stage0, feature(custom_attribute))]
1919
#![crate_name = "flate"]
2020
#![unstable(feature = "rustc_private", issue = "27812")]
21-
#![staged_api]
21+
#![cfg_attr(stage0, staged_api)]
2222
#![crate_type = "rlib"]
2323
#![crate_type = "dylib"]
2424
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/libfmt_macros/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#![cfg_attr(stage0, feature(custom_attribute))]
1919
#![crate_name = "fmt_macros"]
2020
#![unstable(feature = "rustc_private", issue = "27812")]
21-
#![staged_api]
21+
#![cfg_attr(stage0, staged_api)]
2222
#![crate_type = "rlib"]
2323
#![crate_type = "dylib"]
2424
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/libgetopts/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
#![unstable(feature = "rustc_private",
8585
reason = "use the crates.io `getopts` library instead",
8686
issue = "27812")]
87-
#![staged_api]
87+
#![cfg_attr(stage0, staged_api)]
8888
#![crate_type = "rlib"]
8989
#![crate_type = "dylib"]
9090
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/libgraphviz/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@
276276
#![crate_name = "graphviz"]
277277
#![unstable(feature = "rustc_private", issue = "27812")]
278278
#![feature(staged_api)]
279-
#![staged_api]
279+
#![cfg_attr(stage0, staged_api)]
280280
#![crate_type = "rlib"]
281281
#![crate_type = "dylib"]
282282
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/liblog/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
#![unstable(feature = "rustc_private",
163163
reason = "use the crates.io `log` library instead",
164164
issue = "27812")]
165-
#![staged_api]
165+
#![cfg_attr(stage0, staged_api)]
166166
#![crate_type = "rlib"]
167167
#![crate_type = "dylib"]
168168
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/librand/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
html_playground_url = "https://play.rust-lang.org/",
2727
test(attr(deny(warnings))))]
2828
#![no_std]
29-
#![staged_api]
29+
#![cfg_attr(stage0, staged_api)]
3030
#![unstable(feature = "rand",
3131
reason = "use `rand` from crates.io",
3232
issue = "27703")]

src/librbml/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
#![cfg_attr(stage0, feature(custom_attribute))]
116116
#![crate_name = "rbml"]
117117
#![unstable(feature = "rustc_private", issue = "27812")]
118-
#![staged_api]
118+
#![cfg_attr(stage0, staged_api)]
119119
#![crate_type = "rlib"]
120120
#![crate_type = "dylib"]
121121
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/librustc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#![cfg_attr(stage0, feature(custom_attribute))]
1919
#![crate_name = "rustc"]
2020
#![unstable(feature = "rustc_private", issue = "27812")]
21-
#![staged_api]
21+
#![cfg_attr(stage0, staged_api)]
2222
#![crate_type = "dylib"]
2323
#![crate_type = "rlib"]
2424
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/librustc_back/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#![cfg_attr(stage0, feature(custom_attribute))]
2626
#![crate_name = "rustc_back"]
2727
#![unstable(feature = "rustc_private", issue = "27812")]
28-
#![staged_api]
28+
#![cfg_attr(stage0, staged_api)]
2929
#![crate_type = "dylib"]
3030
#![crate_type = "rlib"]
3131
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/librustc_bitflags/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#![crate_name = "rustc_bitflags"]
1515
#![feature(associated_consts)]
1616
#![feature(staged_api)]
17-
#![staged_api]
17+
#![cfg_attr(stage0, staged_api)]
1818
#![crate_type = "rlib"]
1919
#![feature(no_std)]
2020
#![no_std]

src/librustc_borrowck/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#![cfg_attr(stage0, feature(custom_attribute))]
1313
#![crate_name = "rustc_borrowck"]
1414
#![unstable(feature = "rustc_private", issue = "27812")]
15-
#![staged_api]
15+
#![cfg_attr(stage0, staged_api)]
1616
#![crate_type = "dylib"]
1717
#![crate_type = "rlib"]
1818
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/librustc_data_structures/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#![unstable(feature = "rustc_private", issue = "27812")]
2323
#![crate_type = "dylib"]
2424
#![crate_type = "rlib"]
25-
#![staged_api]
25+
#![cfg_attr(stage0, staged_api)]
2626
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2727
html_favicon_url = "https://www.rust-lang.org/favicon.ico",
2828
html_root_url = "https://doc.rust-lang.org/nightly/")]

src/librustc_driver/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#![cfg_attr(stage0, feature(custom_attribute))]
1919
#![crate_name = "rustc_driver"]
2020
#![unstable(feature = "rustc_private", issue = "27812")]
21-
#![staged_api]
21+
#![cfg_attr(stage0, staged_api)]
2222
#![crate_type = "dylib"]
2323
#![crate_type = "rlib"]
2424
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/librustc_front/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#![cfg_attr(stage0, feature(custom_attribute))]
1919
#![crate_name = "rustc_front"]
2020
#![unstable(feature = "rustc_private", issue = "27812")]
21-
#![staged_api]
21+
#![cfg_attr(stage0, staged_api)]
2222
#![crate_type = "dylib"]
2323
#![crate_type = "rlib"]
2424
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/librustc_lint/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#![cfg_attr(stage0, feature(custom_attribute))]
2424
#![crate_name = "rustc_lint"]
2525
#![unstable(feature = "rustc_private", issue = "27812")]
26-
#![staged_api]
26+
#![cfg_attr(stage0, staged_api)]
2727
#![crate_type = "dylib"]
2828
#![crate_type = "rlib"]
2929
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/librustc_llvm/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#![crate_name = "rustc_llvm"]
2222
#![unstable(feature = "rustc_private", issue = "27812")]
23-
#![staged_api]
23+
#![cfg_attr(stage0, staged_api)]
2424
#![crate_type = "dylib"]
2525
#![crate_type = "rlib"]
2626
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/librustc_platform_intrinsics/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#![cfg_attr(stage0, feature(custom_attribute))]
1212
#![crate_name = "rustc_platform_intrinsics"]
1313
#![unstable(feature = "rustc_private", issue = "27812")]
14-
#![staged_api]
14+
#![cfg_attr(stage0, staged_api)]
1515
#![crate_type = "dylib"]
1616
#![crate_type = "rlib"]
1717
#![feature(staged_api, rustc_private)]

src/librustc_privacy/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#![cfg_attr(stage0, feature(custom_attribute))]
1313
#![crate_name = "rustc_privacy"]
1414
#![unstable(feature = "rustc_private", issue = "27812")]
15-
#![staged_api]
15+
#![cfg_attr(stage0, staged_api)]
1616
#![crate_type = "dylib"]
1717
#![crate_type = "rlib"]
1818
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/librustc_resolve/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#![cfg_attr(stage0, feature(custom_attribute))]
1313
#![crate_name = "rustc_resolve"]
1414
#![unstable(feature = "rustc_private", issue = "27812")]
15-
#![staged_api]
15+
#![cfg_attr(stage0, staged_api)]
1616
#![crate_type = "dylib"]
1717
#![crate_type = "rlib"]
1818
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/librustc_trans/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#![cfg_attr(stage0, feature(custom_attribute))]
1919
#![crate_name = "rustc_trans"]
2020
#![unstable(feature = "rustc_private", issue = "27812")]
21-
#![staged_api]
21+
#![cfg_attr(stage0, staged_api)]
2222
#![crate_type = "dylib"]
2323
#![crate_type = "rlib"]
2424
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/librustc_typeck/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ This API is completely unstable and subject to change.
6666
#![cfg_attr(stage0, feature(custom_attribute))]
6767
#![crate_name = "rustc_typeck"]
6868
#![unstable(feature = "rustc_private", issue = "27812")]
69-
#![staged_api]
69+
#![cfg_attr(stage0, staged_api)]
7070
#![crate_type = "dylib"]
7171
#![crate_type = "rlib"]
7272
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/librustc_unicode/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#![cfg_attr(stage0, feature(custom_attribute))]
2525
#![crate_name = "rustc_unicode"]
2626
#![unstable(feature = "unicode", issue = "27783")]
27-
#![staged_api]
27+
#![cfg_attr(stage0, staged_api)]
2828
#![crate_type = "rlib"]
2929
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
3030
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",

src/librustdoc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#![cfg_attr(stage0, feature(custom_attribute))]
1313
#![crate_name = "rustdoc"]
1414
#![unstable(feature = "rustdoc", issue = "27812")]
15-
#![staged_api]
15+
#![cfg_attr(stage0, staged_api)]
1616
#![crate_type = "dylib"]
1717
#![crate_type = "rlib"]
1818
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/libserialize/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Core encoding and decoding interfaces.
2020
#![unstable(feature = "rustc_private",
2121
reason = "deprecated in favor of rustc-serialize on crates.io",
2222
issue = "27812")]
23-
#![staged_api]
23+
#![cfg_attr(stage0, staged_api)]
2424
#![crate_type = "rlib"]
2525
#![crate_type = "dylib"]
2626
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/libstd/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
#![cfg_attr(stage0, feature(custom_attribute))]
203203
#![crate_name = "std"]
204204
#![stable(feature = "rust1", since = "1.0.0")]
205-
#![staged_api]
205+
#![cfg_attr(stage0, staged_api)]
206206
#![crate_type = "rlib"]
207207
#![crate_type = "dylib"]
208208
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/libsyntax/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#![cfg_attr(stage0, feature(custom_attribute))]
1919
#![crate_name = "syntax"]
2020
#![unstable(feature = "rustc_private", issue = "27812")]
21-
#![staged_api]
21+
#![cfg_attr(stage0, staged_api)]
2222
#![crate_type = "dylib"]
2323
#![crate_type = "rlib"]
2424
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/libterm/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
#![unstable(feature = "rustc_private",
4848
reason = "use the crates.io `term` library instead",
4949
issue = "27812")]
50-
#![staged_api]
50+
#![cfg_attr(stage0, staged_api)]
5151
#![crate_type = "rlib"]
5252
#![crate_type = "dylib"]
5353
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/libtest/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#![cfg_attr(stage0, feature(custom_attribute))]
2828
#![crate_name = "test"]
2929
#![unstable(feature = "test", issue = "27812")]
30-
#![staged_api]
30+
#![cfg_attr(stage0, staged_api)]
3131
#![crate_type = "rlib"]
3232
#![crate_type = "dylib"]
3333
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/test/auxiliary/inherited_stability.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#![crate_type = "lib"]
1212
#![unstable(feature = "test_feature", issue = "0")]
1313
#![feature(staged_api)]
14-
#![staged_api]
1514

1615
pub fn unstable() {}
1716

src/test/auxiliary/internal_unstable.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// except according to those terms.
1010

1111
#![feature(staged_api, allow_internal_unstable)]
12-
#![staged_api]
1312
#![stable(feature = "stable", since = "1.0.0")]
1413

1514
#[unstable(feature = "function", issue = "0")]

src/test/auxiliary/lint_output_format.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#![crate_name="lint_output_format"]
1212
#![crate_type = "lib"]
1313
#![feature(staged_api)]
14-
#![staged_api]
1514
#![unstable(feature = "test_feature", issue = "0")]
1615

1716
#[stable(feature = "test_feature", since = "1.0.0")]

src/test/auxiliary/lint_stability.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#![crate_name="lint_stability"]
1111
#![crate_type = "lib"]
1212
#![feature(staged_api)]
13-
#![staged_api]
1413
#![stable(feature = "lint_stability", since = "1.0.0")]
1514

1615
#[stable(feature = "test_feature", since = "1.0.0")]

src/test/auxiliary/lint_stability_fields.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// except according to those terms.
1010

1111
#![feature(staged_api)]
12-
#![staged_api]
1312
#![stable(feature = "rust1", since = "1.0.0")]
1413

1514
#[stable(feature = "rust1", since = "1.0.0")]

src/test/auxiliary/stability_attribute_issue.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// except according to those terms.
1010

1111
#![feature(staged_api)]
12-
#![staged_api]
1312
#![stable(feature = "foo", since = "1.2.0")]
1413

1514

src/test/auxiliary/stability_cfg1.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@
1111
#![cfg_attr(foo, experimental)]
1212
#![cfg_attr(not(foo), stable(feature = "test_feature", since = "1.0.0"))]
1313
#![feature(staged_api)]
14-
#![staged_api]

src/test/auxiliary/stability_cfg2.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@
1313
#![cfg_attr(foo, unstable(feature = "test_feature", issue = "0"))]
1414
#![cfg_attr(not(foo), stable(feature = "test_feature", since = "1.0.0"))]
1515
#![feature(staged_api)]
16-
#![staged_api]

src/test/compile-fail/issue-17337.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// except according to those terms.
1010

1111
#![feature(staged_api)]
12-
#![staged_api]
1312
#![deny(deprecated)]
1413

1514
#![unstable(feature = "test_feature", issue = "0")]

src/test/compile-fail/lint-forbid-cmdline.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// compile-flags: -F deprecated
1212

1313
#![feature(staged_api)]
14-
#![staged_api]
1514
#[allow(deprecated)] //~ ERROR allow(deprecated) overruled by outer forbid(deprecated)
1615
fn main() {
1716
}

src/test/compile-fail/lint-stability-fields.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#![deny(deprecated)]
1313
#![allow(dead_code)]
1414
#![feature(staged_api)]
15-
#![staged_api]
1615

1716
#![stable(feature = "rust1", since = "1.0.0")]
1817

src/test/compile-fail/lint-stability.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#![deny(deprecated)]
1717
#![allow(dead_code)]
1818
#![feature(staged_api)]
19-
#![staged_api]
2019

2120
#![stable(feature = "rust1", since = "1.0.0")]
2221

0 commit comments

Comments
 (0)