Skip to content

Commit 3e9a1a1

Browse files
Rollup merge of rust-lang#53230 - memoryruins:nll_bootstrap_4, r=nikomatsakis
[nll] enable feature(nll) on various crates for bootstrap: part 4 rust-lang#53172 r? @nikomatsakis
2 parents f1ae95f + 0123ac1 commit 3e9a1a1

File tree

24 files changed

+25
-4
lines changed

24 files changed

+25
-4
lines changed

src/libcore/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
#![feature(lang_items)]
9393
#![feature(link_llvm_intrinsics)]
9494
#![feature(never_type)]
95+
#![cfg_attr(not(stage0), feature(nll))]
9596
#![feature(exhaustive_patterns)]
9697
#![feature(macro_at_most_once_rep)]
9798
#![feature(no_core)]

src/libproc_macro/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
test(no_crate_inject, attr(deny(warnings))),
3232
test(attr(allow(dead_code, deprecated, unused_variables, unused_mut))))]
3333

34+
#![cfg_attr(not(stage0), feature(nll))]
3435
#![feature(rustc_private)]
3536
#![feature(staged_api)]
3637
#![feature(lang_items)]

src/libprofiler_builtins/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@
1515
reason = "internal implementation detail of rustc right now",
1616
issue = "0")]
1717
#![allow(unused_features)]
18+
#![cfg_attr(not(stage0), feature(nll))]
1819
#![feature(staged_api)]

src/librustc/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
#![feature(never_type)]
5252
#![feature(exhaustive_patterns)]
5353
#![feature(extern_types)]
54+
#![cfg_attr(not(stage0), feature(nll))]
5455
#![feature(non_exhaustive)]
5556
#![feature(proc_macro_internals)]
5657
#![feature(quote)]

src/librustc_allocator/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![cfg_attr(not(stage0), feature(nll))]
1112
#![feature(rustc_private)]
1213

1314
#[macro_use] extern crate log;

src/librustc_codegen_llvm/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#![feature(in_band_lifetimes)]
2727
#![allow(unused_attributes)]
2828
#![feature(libc)]
29+
#![cfg_attr(not(stage0), feature(nll))]
2930
#![feature(quote)]
3031
#![feature(range_contains)]
3132
#![feature(rustc_diagnostic_macros)]

src/librustc_codegen_llvm/llvm/ffi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,7 @@ extern "C" {
15641564
-> LLVMRustResult;
15651565
pub fn LLVMRustArchiveMemberNew(Filename: *const c_char,
15661566
Name: *const c_char,
1567-
Child: Option<&'a ArchiveChild>)
1567+
Child: Option<&ArchiveChild<'a>>)
15681568
-> &'a mut RustArchiveMember<'a>;
15691569
pub fn LLVMRustArchiveMemberFree(Member: &'a mut RustArchiveMember<'a>);
15701570

src/librustc_codegen_llvm/type_of.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ fn uncached_llvm_type<'a, 'tcx>(cx: &CodegenCx<'a, 'tcx>,
8989
Type::struct_(cx, &[fill], packed)
9090
}
9191
Some(ref name) => {
92-
let mut llty = Type::named_struct(cx, name);
92+
let llty = Type::named_struct(cx, name);
9393
llty.set_struct_body(&[fill], packed);
9494
llty
9595
}

src/librustc_codegen_utils/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#![feature(box_patterns)]
2020
#![feature(box_syntax)]
2121
#![feature(custom_attribute)]
22+
#![cfg_attr(not(stage0), feature(nll))]
2223
#![allow(unused_attributes)]
2324
#![feature(quote)]
2425
#![feature(rustc_diagnostic_macros)]

src/librustc_data_structures/indexed_set.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ fn test_set_up_to() {
323323
#[test]
324324
fn test_new_filled() {
325325
for i in 0..128 {
326-
let mut idx_buf = IdxSetBuf::new_filled(i);
326+
let idx_buf = IdxSetBuf::new_filled(i);
327327
let elems: Vec<usize> = idx_buf.iter().collect();
328328
let expected: Vec<usize> = (0..i).collect();
329329
assert_eq!(elems, expected);

src/librustc_data_structures/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#![feature(specialization)]
2727
#![feature(optin_builtin_traits)]
2828
#![feature(macro_vis_matcher)]
29+
#![cfg_attr(not(stage0), feature(nll))]
2930
#![feature(allow_internal_unstable)]
3031
#![feature(vec_resize_with)]
3132

src/librustc_llvm/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![cfg_attr(not(stage0), feature(nll))]
1112
#![feature(static_nobundle)]
1213

1314
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/librustc_lsan/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#![sanitizer_runtime]
1212
#![feature(alloc_system)]
13+
#![cfg_attr(not(stage0), feature(nll))]
1314
#![feature(sanitizer_runtime)]
1415
#![feature(staged_api)]
1516
#![no_std]

src/librustc_mir/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Rust MIR: a lowered representation of Rust. Also: an experiment!
1414
1515
*/
1616

17+
#![cfg_attr(not(stage0), feature(nll))]
1718
#![feature(infer_outlives_requirements)]
1819
#![feature(in_band_lifetimes)]
1920
#![feature(slice_patterns)]

src/librustc_msan/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#![sanitizer_runtime]
1212
#![feature(alloc_system)]
13+
#![cfg_attr(not(stage0), feature(nll))]
1314
#![feature(sanitizer_runtime)]
1415
#![feature(staged_api)]
1516
#![no_std]

src/librustc_platform_intrinsics/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
#![allow(bad_style)]
1212

13+
#![cfg_attr(not(stage0), feature(nll))]
14+
1315
pub struct Intrinsic {
1416
pub inputs: &'static [&'static Type],
1517
pub output: &'static Type,

src/librustc_typeck/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ This API is completely unstable and subject to change.
7676
#![feature(crate_visibility_modifier)]
7777
#![feature(exhaustive_patterns)]
7878
#![feature(iterator_find_map)]
79+
#![cfg_attr(not(stage0), feature(nll))]
7980
#![feature(quote)]
8081
#![feature(refcell_replace_swap)]
8182
#![feature(rustc_diagnostic_macros)]

src/librustdoc/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#![feature(box_patterns)]
1818
#![feature(box_syntax)]
1919
#![feature(iterator_find_map)]
20+
#![cfg_attr(not(stage0), feature(nll))]
2021
#![feature(set_stdio)]
2122
#![feature(slice_sort_by_cached_key)]
2223
#![feature(test)]

src/libserialize/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Core encoding and decoding interfaces.
2424
#![feature(core_intrinsics)]
2525
#![feature(specialization)]
2626
#![feature(never_type)]
27+
#![cfg_attr(not(stage0), feature(nll))]
2728
#![cfg_attr(test, feature(test))]
2829

2930
pub use self::serialize::{Decoder, Encoder, Decodable, Encodable};

src/libstd/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@
273273
#![feature(macro_vis_matcher)]
274274
#![feature(needs_panic_runtime)]
275275
#![feature(never_type)]
276+
#![cfg_attr(not(stage0), feature(nll))]
276277
#![feature(exhaustive_patterns)]
277278
#![feature(on_unimplemented)]
278279
#![feature(optin_builtin_traits)]

src/libsyntax/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
#![feature(crate_visibility_modifier)]
2323
#![feature(macro_at_most_once_rep)]
24+
#![cfg_attr(not(stage0), feature(nll))]
2425
#![feature(rustc_attrs)]
2526
#![feature(rustc_diagnostic_macros)]
2627
#![feature(slice_sort_by_cached_key)]

src/libsyntax_ext/deriving/generic/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ impl<'a> TraitDef<'a> {
554554
GenericParamKind::Type { .. } => {
555555
// I don't think this can be moved out of the loop, since
556556
// a GenericBound requires an ast id
557-
let mut bounds: Vec<_> =
557+
let bounds: Vec<_> =
558558
// extra restrictions on the generics parameters to the
559559
// type being derived upon
560560
self.additional_bounds.iter().map(|p| {

src/libsyntax_ext/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#![feature(proc_macro_internals)]
1818
#![feature(decl_macro)]
19+
#![cfg_attr(not(stage0), feature(nll))]
1920
#![feature(str_escape)]
2021

2122
#![feature(rustc_diagnostic_macros)]

src/libtest/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#![feature(asm)]
3636
#![feature(fnbox)]
3737
#![cfg_attr(any(unix, target_os = "cloudabi"), feature(libc))]
38+
#![cfg_attr(not(stage0), feature(nll))]
3839
#![feature(set_stdio)]
3940
#![feature(panic_unwind)]
4041
#![feature(staged_api)]

0 commit comments

Comments
 (0)