Skip to content

Commit e2d0e3f

Browse files
committed
Rollup merge of rust-lang#53219 - memoryruins:nll_bootstrap_3, r=nikomatsakis
[nll] enable feature(nll) on various crates for bootstrap: part 3 rust-lang#53172
2 parents 62d70c9 + d25dbc5 commit e2d0e3f

File tree

11 files changed

+13
-0
lines changed

11 files changed

+13
-0
lines changed

src/libfmt_macros/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
html_playground_url = "https://play.rust-lang.org/",
2121
test(attr(deny(warnings))))]
2222

23+
#![cfg_attr(not(stage0), feature(nll))]
24+
2325
pub use self::Piece::*;
2426
pub use self::Position::*;
2527
pub use self::Alignment::*;

src/libpanic_abort/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
#![feature(core_intrinsics)]
2626
#![feature(libc)]
27+
#![cfg_attr(not(stage0), feature(nll))]
2728
#![feature(panic_runtime)]
2829
#![feature(staged_api)]
2930
#![feature(rustc_attrs)]

src/libpanic_unwind/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#![feature(core_intrinsics)]
3535
#![feature(lang_items)]
3636
#![feature(libc)]
37+
#![cfg_attr(not(stage0), feature(nll))]
3738
#![feature(panic_unwind)]
3839
#![feature(raw)]
3940
#![feature(staged_api)]

src/librustc_apfloat/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
html_root_url = "https://doc.rust-lang.org/nightly/")]
4646
#![forbid(unsafe_code)]
4747

48+
#![cfg_attr(not(stage0), feature(nll))]
4849
#![feature(try_from)]
4950
// See librustc_cratesio_shim/Cargo.toml for a comment explaining this.
5051
#[allow(unused_extern_crates)]

src/librustc_cratesio_shim/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,7 @@
1111
// See Cargo.toml for a comment explaining this crate.
1212
#![allow(unused_extern_crates)]
1313

14+
#![cfg_attr(not(stage0), feature(nll))]
15+
1416
extern crate bitflags;
1517
extern crate log;

src/librustc_driver/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
#![feature(box_syntax)]
2222
#![cfg_attr(unix, feature(libc))]
23+
#![cfg_attr(not(stage0), feature(nll))]
2324
#![feature(option_replace)]
2425
#![feature(quote)]
2526
#![feature(rustc_diagnostic_macros)]

src/librustc_incremental/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
1515
html_root_url = "https://doc.rust-lang.org/nightly/")]
1616

17+
#![cfg_attr(not(stage0), feature(nll))]
1718
#![feature(specialization)]
1819

1920
#![recursion_limit="256"]

src/librustc_target/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
#![feature(box_syntax)]
2525
#![feature(const_fn)]
26+
#![cfg_attr(not(stage0), feature(nll))]
2627
#![feature(slice_patterns)]
2728

2829
#[macro_use]

src/libsyntax_pos/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#![feature(const_fn)]
2222
#![feature(crate_visibility_modifier)]
2323
#![feature(custom_attribute)]
24+
#![cfg_attr(not(stage0), feature(nll))]
2425
#![feature(non_exhaustive)]
2526
#![feature(optin_builtin_traits)]
2627
#![feature(specialization)]

src/libterm/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
#![cfg_attr(windows, feature(libc))]
5151
// Handle rustfmt skips
5252
#![feature(custom_attribute)]
53+
#![cfg_attr(not(stage0), feature(nll))]
5354
#![allow(unused_attributes)]
5455

5556
use std::io::prelude::*;

src/libunwind/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
#![feature(cfg_target_vendor)]
1515
#![feature(link_cfg)]
16+
#![cfg_attr(not(stage0), feature(nll))]
1617
#![feature(staged_api)]
1718
#![feature(unwind_attributes)]
1819
#![feature(static_nobundle)]

0 commit comments

Comments
 (0)