From 3ed965ab5834e976b57e9ae06e8da8bfb16c0407 Mon Sep 17 00:00:00 2001 From: memoryruins Date: Thu, 9 Aug 2018 06:48:10 -0400 Subject: [PATCH 01/11] [nll] libfmt_macros: enable feature(nll) for bootstrap --- src/libfmt_macros/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libfmt_macros/lib.rs b/src/libfmt_macros/lib.rs index 373db1f1664cd..d2209da0ca30c 100644 --- a/src/libfmt_macros/lib.rs +++ b/src/libfmt_macros/lib.rs @@ -20,6 +20,8 @@ html_playground_url = "https://play.rust-lang.org/", test(attr(deny(warnings))))] +#![cfg_attr(not(stage0), feature(nll))] + pub use self::Piece::*; pub use self::Position::*; pub use self::Alignment::*; From 04bd6146c347069b72e0b6c978e8180eed9f3358 Mon Sep 17 00:00:00 2001 From: memoryruins Date: Thu, 9 Aug 2018 06:48:53 -0400 Subject: [PATCH 02/11] [nll] libpanic_abort: enable feature(nll) for bootstrap --- src/libpanic_abort/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libpanic_abort/lib.rs b/src/libpanic_abort/lib.rs index 392bf17968fbd..da568fae70e14 100644 --- a/src/libpanic_abort/lib.rs +++ b/src/libpanic_abort/lib.rs @@ -24,6 +24,7 @@ #![feature(core_intrinsics)] #![feature(libc)] +#![cfg_attr(not(stage0), feature(nll))] #![feature(panic_runtime)] #![feature(staged_api)] #![feature(rustc_attrs)] From 7e78e7570fd15004bb83be8a314266057b5f76e2 Mon Sep 17 00:00:00 2001 From: memoryruins Date: Thu, 9 Aug 2018 06:49:12 -0400 Subject: [PATCH 03/11] [nll] libpanic_unwind: enable feature(nll) for bootstrap --- src/libpanic_unwind/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libpanic_unwind/lib.rs b/src/libpanic_unwind/lib.rs index 2abdf7cee6321..a61b2c1f06394 100644 --- a/src/libpanic_unwind/lib.rs +++ b/src/libpanic_unwind/lib.rs @@ -34,6 +34,7 @@ #![feature(core_intrinsics)] #![feature(lang_items)] #![feature(libc)] +#![cfg_attr(not(stage0), feature(nll))] #![feature(panic_unwind)] #![feature(raw)] #![feature(staged_api)] From b340f563169c2a56e9ed5fd14e51ceb5acd7cd5a Mon Sep 17 00:00:00 2001 From: memoryruins Date: Thu, 9 Aug 2018 06:49:31 -0400 Subject: [PATCH 04/11] [nll] librustc_apfloat: enable feature(nll) for bootstrap --- src/librustc_apfloat/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustc_apfloat/lib.rs b/src/librustc_apfloat/lib.rs index 08438805a703e..d6e821d427d05 100644 --- a/src/librustc_apfloat/lib.rs +++ b/src/librustc_apfloat/lib.rs @@ -45,6 +45,7 @@ html_root_url = "https://doc.rust-lang.org/nightly/")] #![forbid(unsafe_code)] +#![cfg_attr(not(stage0), feature(nll))] #![feature(try_from)] // See librustc_cratesio_shim/Cargo.toml for a comment explaining this. #[allow(unused_extern_crates)] From c6be5551be6f04e18eba90650ff9cb36419b318b Mon Sep 17 00:00:00 2001 From: memoryruins Date: Thu, 9 Aug 2018 06:50:25 -0400 Subject: [PATCH 05/11] [nll] librustc_cratesio_shim: enable feature(nll) for bootstrap --- src/librustc_cratesio_shim/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/librustc_cratesio_shim/src/lib.rs b/src/librustc_cratesio_shim/src/lib.rs index 85a5b331d8c45..39087c5f74616 100644 --- a/src/librustc_cratesio_shim/src/lib.rs +++ b/src/librustc_cratesio_shim/src/lib.rs @@ -11,5 +11,7 @@ // See Cargo.toml for a comment explaining this crate. #![allow(unused_extern_crates)] +#![cfg_attr(not(stage0), feature(nll))] + extern crate bitflags; extern crate log; From fd4b1a73bf66a28acde7baf83ed53ed8d7ac0a99 Mon Sep 17 00:00:00 2001 From: memoryruins Date: Thu, 9 Aug 2018 06:50:40 -0400 Subject: [PATCH 06/11] [nll] librustc_driver: enable feature(nll) for bootstrap --- src/librustc_driver/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs index 556ee9f5716ea..c3bdf07cd2079 100644 --- a/src/librustc_driver/lib.rs +++ b/src/librustc_driver/lib.rs @@ -20,6 +20,7 @@ #![feature(box_syntax)] #![cfg_attr(unix, feature(libc))] +#![cfg_attr(not(stage0), feature(nll))] #![feature(option_replace)] #![feature(quote)] #![feature(rustc_diagnostic_macros)] From a37360c330280c1f98ddafb4def9ad5c4595f0b5 Mon Sep 17 00:00:00 2001 From: memoryruins Date: Thu, 9 Aug 2018 06:50:57 -0400 Subject: [PATCH 07/11] [nll] librustc_incremental: enable feature(nll) for bootstrap --- src/librustc_incremental/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustc_incremental/lib.rs b/src/librustc_incremental/lib.rs index 73886e5e2816c..22b260642e424 100644 --- a/src/librustc_incremental/lib.rs +++ b/src/librustc_incremental/lib.rs @@ -14,6 +14,7 @@ html_favicon_url = "https://doc.rust-lang.org/favicon.ico", html_root_url = "https://doc.rust-lang.org/nightly/")] +#![cfg_attr(not(stage0), feature(nll))] #![feature(specialization)] #![recursion_limit="256"] From f331401e1e5378894539f3dc5a260a084468573f Mon Sep 17 00:00:00 2001 From: memoryruins Date: Thu, 9 Aug 2018 06:51:13 -0400 Subject: [PATCH 08/11] [nll] librustc_target: enable feature(nll) for bootstrap --- src/librustc_target/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustc_target/lib.rs b/src/librustc_target/lib.rs index af2697f62f79e..5f5cc4c5ff7c8 100644 --- a/src/librustc_target/lib.rs +++ b/src/librustc_target/lib.rs @@ -23,6 +23,7 @@ #![feature(box_syntax)] #![feature(const_fn)] +#![cfg_attr(not(stage0), feature(nll))] #![feature(slice_patterns)] #[macro_use] From 01c598aa0da07243609eaa9a61b16cb6669b623e Mon Sep 17 00:00:00 2001 From: memoryruins Date: Thu, 9 Aug 2018 06:51:42 -0400 Subject: [PATCH 09/11] [nll] libsyntax_pos: enable feature(nll) for bootstrap --- src/libsyntax_pos/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libsyntax_pos/lib.rs b/src/libsyntax_pos/lib.rs index 44cd53282ec9f..98d7d77308f89 100644 --- a/src/libsyntax_pos/lib.rs +++ b/src/libsyntax_pos/lib.rs @@ -21,6 +21,7 @@ #![feature(const_fn)] #![feature(crate_visibility_modifier)] #![feature(custom_attribute)] +#![cfg_attr(not(stage0), feature(nll))] #![feature(non_exhaustive)] #![feature(optin_builtin_traits)] #![feature(specialization)] From 58836e8a6f3ea21b78084cf3e42ed8fbb18c4e17 Mon Sep 17 00:00:00 2001 From: memoryruins Date: Thu, 9 Aug 2018 06:51:56 -0400 Subject: [PATCH 10/11] [nll] libterm: enable feature(nll) for bootstrap --- src/libterm/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libterm/lib.rs b/src/libterm/lib.rs index cf92ce27ee587..a49fd67639dbe 100644 --- a/src/libterm/lib.rs +++ b/src/libterm/lib.rs @@ -50,6 +50,7 @@ #![cfg_attr(windows, feature(libc))] // Handle rustfmt skips #![feature(custom_attribute)] +#![cfg_attr(not(stage0), feature(nll))] #![allow(unused_attributes)] use std::io::prelude::*; From d25dbc5d84dbacc68a5246678974bec72c12bd04 Mon Sep 17 00:00:00 2001 From: memoryruins Date: Thu, 9 Aug 2018 06:52:12 -0400 Subject: [PATCH 11/11] [nll] libunwind: enable feature(nll) for bootstrap --- src/libunwind/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libunwind/lib.rs b/src/libunwind/lib.rs index 2b3c19c067ed4..424a7e3d009ec 100644 --- a/src/libunwind/lib.rs +++ b/src/libunwind/lib.rs @@ -13,6 +13,7 @@ #![feature(cfg_target_vendor)] #![feature(link_cfg)] +#![cfg_attr(not(stage0), feature(nll))] #![feature(staged_api)] #![feature(unwind_attributes)] #![feature(static_nobundle)]