From 2cb91dad9fa5b2c82cf29828a727fde3f40507d3 Mon Sep 17 00:00:00 2001 From: memoryruins Date: Thu, 9 Aug 2018 15:28:39 -0400 Subject: [nll] libsyntax_ext: enable feature(nll) for bootstrap --- src/libsyntax_ext/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libsyntax_ext') diff --git a/src/libsyntax_ext/lib.rs b/src/libsyntax_ext/lib.rs index f0d33835cd0..1ba4ab47425 100644 --- a/src/libsyntax_ext/lib.rs +++ b/src/libsyntax_ext/lib.rs @@ -16,6 +16,7 @@ #![feature(proc_macro_internals)] #![feature(decl_macro)] +#![cfg_attr(not(stage0), feature(nll))] #![feature(str_escape)] #![feature(rustc_diagnostic_macros)] -- cgit 1.4.1-3-g733a5 From ce5b9c662f2ee203fb08c6a07f0a3f059f1697f4 Mon Sep 17 00:00:00 2001 From: memoryruins Date: Thu, 9 Aug 2018 15:32:23 -0400 Subject: [nll] libsyntax_ext: remove unnecessary mut annotation on variable Pointed out by nll. It is correct that the mut annotation is not needed. --- src/libsyntax_ext/deriving/generic/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax_ext') diff --git a/src/libsyntax_ext/deriving/generic/mod.rs b/src/libsyntax_ext/deriving/generic/mod.rs index e0f985c26c7..f5e607fc23d 100644 --- a/src/libsyntax_ext/deriving/generic/mod.rs +++ b/src/libsyntax_ext/deriving/generic/mod.rs @@ -554,7 +554,7 @@ impl<'a> TraitDef<'a> { GenericParamKind::Type { .. } => { // I don't think this can be moved out of the loop, since // a GenericBound requires an ast id - let mut bounds: Vec<_> = + let bounds: Vec<_> = // extra restrictions on the generics parameters to the // type being derived upon self.additional_bounds.iter().map(|p| { -- cgit 1.4.1-3-g733a5