Skip to content

Commit 3484706

Browse files
author
Jorge Aparicio
committed
remove unused mut qualifiers
1 parent fd70270 commit 3484706

File tree

36 files changed

+40
-53
lines changed

36 files changed

+40
-53
lines changed

src/libcollections/binary_heap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ impl<'a, T> IntoIterator for &'a BinaryHeap<T> where T: Ord {
673673

674674
#[stable(feature = "rust1", since = "1.0.0")]
675675
impl<T: Ord> Extend<T> for BinaryHeap<T> {
676-
fn extend<Iter: Iterator<Item=T>>(&mut self, mut iter: Iter) {
676+
fn extend<Iter: Iterator<Item=T>>(&mut self, iter: Iter) {
677677
let (lower, _) = iter.size_hint();
678678

679679
self.reserve(lower);

src/libcollections/bit.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ impl FromIterator<bool> for Bitv {
934934
#[stable(feature = "rust1", since = "1.0.0")]
935935
impl Extend<bool> for Bitv {
936936
#[inline]
937-
fn extend<I: Iterator<Item=bool>>(&mut self, mut iterator: I) {
937+
fn extend<I: Iterator<Item=bool>>(&mut self, iterator: I) {
938938
let (min, _) = iterator.size_hint();
939939
self.reserve(min);
940940
for element in iterator {
@@ -1141,7 +1141,7 @@ impl FromIterator<uint> for BitvSet {
11411141
#[stable(feature = "rust1", since = "1.0.0")]
11421142
impl Extend<uint> for BitvSet {
11431143
#[inline]
1144-
fn extend<I: Iterator<Item=uint>>(&mut self, mut iterator: I) {
1144+
fn extend<I: Iterator<Item=uint>>(&mut self, iterator: I) {
11451145
for i in iterator {
11461146
self.insert(i);
11471147
}
@@ -1353,7 +1353,7 @@ impl BitvSet {
13531353
}
13541354

13551355
// virtually pad other with 0's for equal lengths
1356-
let mut other_words = {
1356+
let other_words = {
13571357
let (_, result) = match_words(self_bitv, other_bitv);
13581358
result
13591359
};

src/libcollections/btree/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ impl<K: Ord, V> FromIterator<(K, V)> for BTreeMap<K, V> {
846846
#[stable(feature = "rust1", since = "1.0.0")]
847847
impl<K: Ord, V> Extend<(K, V)> for BTreeMap<K, V> {
848848
#[inline]
849-
fn extend<T: Iterator<Item=(K, V)>>(&mut self, mut iter: T) {
849+
fn extend<T: Iterator<Item=(K, V)>>(&mut self, iter: T) {
850850
for (k, v) in iter {
851851
self.insert(k, v);
852852
}

src/libcollections/btree/set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ impl<'a, T> IntoIterator for &'a BTreeSet<T> {
499499
#[stable(feature = "rust1", since = "1.0.0")]
500500
impl<T: Ord> Extend<T> for BTreeSet<T> {
501501
#[inline]
502-
fn extend<Iter: Iterator<Item=T>>(&mut self, mut iter: Iter) {
502+
fn extend<Iter: Iterator<Item=T>>(&mut self, iter: Iter) {
503503
for elem in iter {
504504
self.insert(elem);
505505
}

src/libcollections/dlist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ impl<'a, T> IntoIterator for &'a mut DList<T> {
856856

857857
#[stable(feature = "rust1", since = "1.0.0")]
858858
impl<A> Extend<A> for DList<A> {
859-
fn extend<T: Iterator<Item=A>>(&mut self, mut iterator: T) {
859+
fn extend<T: Iterator<Item=A>>(&mut self, iterator: T) {
860860
for elt in iterator { self.push_back(elt); }
861861
}
862862
}

src/libcollections/enum_set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ impl<'a, E> IntoIterator for &'a EnumSet<E> where E: CLike {
266266
}
267267

268268
impl<E:CLike> Extend<E> for EnumSet<E> {
269-
fn extend<I: Iterator<Item=E>>(&mut self, mut iterator: I) {
269+
fn extend<I: Iterator<Item=E>>(&mut self, iterator: I) {
270270
for element in iterator {
271271
self.insert(element);
272272
}

src/libcollections/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
html_root_url = "http://doc.rust-lang.org/nightly/",
2323
html_playground_url = "http://play.rust-lang.org/")]
2424

25-
#![cfg_attr(not(stage0), allow(unused_mut))] // NOTE: remove after stage0 snap
26-
2725
#![feature(alloc)]
2826
#![feature(box_syntax)]
2927
#![feature(core)]

src/libcollections/ring_buf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1635,7 +1635,7 @@ impl<'a, T> IntoIterator for &'a mut RingBuf<T> {
16351635

16361636
#[stable(feature = "rust1", since = "1.0.0")]
16371637
impl<A> Extend<A> for RingBuf<A> {
1638-
fn extend<T: Iterator<Item=A>>(&mut self, mut iterator: T) {
1638+
fn extend<T: Iterator<Item=A>>(&mut self, iterator: T) {
16391639
for elt in iterator {
16401640
self.push_back(elt);
16411641
}

src/libcollections/string.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ impl<'a> FromIterator<&'a str> for String {
729729
#[unstable(feature = "collections",
730730
reason = "waiting on Extend stabilization")]
731731
impl Extend<char> for String {
732-
fn extend<I:Iterator<Item=char>>(&mut self, mut iterator: I) {
732+
fn extend<I:Iterator<Item=char>>(&mut self, iterator: I) {
733733
let (lower_bound, _) = iterator.size_hint();
734734
self.reserve(lower_bound);
735735
for ch in iterator {
@@ -741,7 +741,7 @@ impl Extend<char> for String {
741741
#[unstable(feature = "collections",
742742
reason = "waiting on Extend stabilization")]
743743
impl<'a> Extend<&'a str> for String {
744-
fn extend<I: Iterator<Item=&'a str>>(&mut self, mut iterator: I) {
744+
fn extend<I: Iterator<Item=&'a str>>(&mut self, iterator: I) {
745745
// A guess that at least one byte per iterator element will be needed.
746746
let (lower_bound, _) = iterator.size_hint();
747747
self.reserve(lower_bound);

src/libcollections/vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ impl<T> ops::DerefMut for Vec<T> {
13751375
#[stable(feature = "rust1", since = "1.0.0")]
13761376
impl<T> FromIterator<T> for Vec<T> {
13771377
#[inline]
1378-
fn from_iter<I:Iterator<Item=T>>(mut iterator: I) -> Vec<T> {
1378+
fn from_iter<I:Iterator<Item=T>>(iterator: I) -> Vec<T> {
13791379
let (lower, _) = iterator.size_hint();
13801380
let mut vector = Vec::with_capacity(lower);
13811381
for element in iterator {
@@ -1412,7 +1412,7 @@ impl<'a, T> IntoIterator for &'a mut Vec<T> {
14121412
#[unstable(feature = "collections", reason = "waiting on Extend stability")]
14131413
impl<T> Extend<T> for Vec<T> {
14141414
#[inline]
1415-
fn extend<I: Iterator<Item=T>>(&mut self, mut iterator: I) {
1415+
fn extend<I: Iterator<Item=T>>(&mut self, iterator: I) {
14161416
let (lower, _) = iterator.size_hint();
14171417
self.reserve(lower);
14181418
for element in iterator {

src/libcollections/vec_map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ impl<'a, T> IntoIterator for &'a mut VecMap<T> {
562562

563563
#[stable(feature = "rust1", since = "1.0.0")]
564564
impl<V> Extend<(uint, V)> for VecMap<V> {
565-
fn extend<Iter: Iterator<Item=(uint, V)>>(&mut self, mut iter: Iter) {
565+
fn extend<Iter: Iterator<Item=(uint, V)>>(&mut self, iter: Iter) {
566566
for (k, v) in iter {
567567
self.insert(k, v);
568568
}

src/libcore/iter.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ pub trait IteratorExt: Iterator + Sized {
174174
/// ```
175175
#[inline]
176176
#[stable(feature = "rust1", since = "1.0.0")]
177-
fn last(mut self) -> Option<Self::Item> {
177+
fn last(self) -> Option<Self::Item> {
178178
let mut last = None;
179179
for x in self { last = Some(x); }
180180
last
@@ -588,7 +588,7 @@ pub trait IteratorExt: Iterator + Sized {
588588
/// ```
589589
#[unstable(feature = "core",
590590
reason = "recently added as part of collections reform")]
591-
fn partition<B, F>(mut self, mut f: F) -> (B, B) where
591+
fn partition<B, F>(self, mut f: F) -> (B, B) where
592592
B: Default + Extend<Self::Item>,
593593
F: FnMut(&Self::Item) -> bool
594594
{
@@ -617,7 +617,7 @@ pub trait IteratorExt: Iterator + Sized {
617617
/// ```
618618
#[inline]
619619
#[stable(feature = "rust1", since = "1.0.0")]
620-
fn fold<B, F>(mut self, init: B, mut f: F) -> B where
620+
fn fold<B, F>(self, init: B, mut f: F) -> B where
621621
F: FnMut(B, Self::Item) -> B,
622622
{
623623
let mut accum = init;
@@ -638,7 +638,7 @@ pub trait IteratorExt: Iterator + Sized {
638638
/// ```
639639
#[inline]
640640
#[stable(feature = "rust1", since = "1.0.0")]
641-
fn all<F>(mut self, mut f: F) -> bool where F: FnMut(Self::Item) -> bool {
641+
fn all<F>(self, mut f: F) -> bool where F: FnMut(Self::Item) -> bool {
642642
for x in self { if !f(x) { return false; } }
643643
true
644644
}
@@ -946,7 +946,7 @@ pub trait IteratorExt: Iterator + Sized {
946946
/// assert_eq!([2, 4], right);
947947
/// ```
948948
#[unstable(feature = "core", reason = "recent addition")]
949-
fn unzip<A, B, FromA, FromB>(mut self) -> (FromA, FromB) where
949+
fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB) where
950950
FromA: Default + Extend<A>,
951951
FromB: Default + Extend<B>,
952952
Self: Iterator<Item=(A, B)>,

src/libcore/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
#![no_std]
6060
#![allow(raw_pointer_derive)]
6161
#![deny(missing_docs)]
62-
#![cfg_attr(not(stage0), allow(unused_mut))] // NOTE: remove after stage0 snap
6362

6463
#![feature(int_uint)]
6564
#![feature(intrinsics, lang_items)]

src/libcore/result.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ pub fn fold<T,
956956
E,
957957
F: FnMut(V, T) -> V,
958958
Iter: Iterator<Item=Result<T, E>>>(
959-
mut iterator: Iter,
959+
iterator: Iter,
960960
mut init: V,
961961
mut f: F)
962962
-> Result<V, E> {

src/librustc/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2424
html_root_url = "http://doc.rust-lang.org/nightly/")]
2525

26-
#![cfg_attr(not(stage0), allow(unused_mut))] // NOTE: remove after stage0 snap
27-
2826
#![feature(box_syntax)]
2927
#![feature(collections)]
3028
#![feature(core)]

src/librustc/metadata/loader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ impl<'a> Context<'a> {
610610
let mut rlibs = HashMap::new();
611611
let mut dylibs = HashMap::new();
612612
{
613-
let mut locs = locs.iter().map(|l| Path::new(&l[])).filter(|loc| {
613+
let locs = locs.iter().map(|l| Path::new(&l[])).filter(|loc| {
614614
if !loc.exists() {
615615
sess.err(&format!("extern location for {} does not exist: {}",
616616
self.crate_name, loc.display())[]);

src/librustc/middle/subst.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ impl<T> VecPerParamSpace<T> {
317317
///
318318
/// Unlike the `extend` method in `Vec`, this should not be assumed
319319
/// to be a cheap operation (even when amortized over many calls).
320-
pub fn extend<I:Iterator<Item=T>>(&mut self, space: ParamSpace, mut values: I) {
320+
pub fn extend<I:Iterator<Item=T>>(&mut self, space: ParamSpace, values: I) {
321321
// This could be made more efficient, obviously.
322322
for item in values {
323323
self.push(space, item);

src/librustc/middle/traits/select.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
295295

296296
fn evaluate_predicates_recursively<'a,'o,I>(&mut self,
297297
stack: Option<&TraitObligationStack<'o, 'tcx>>,
298-
mut predicates: I)
298+
predicates: I)
299299
-> EvaluationResult<'tcx>
300300
where I : Iterator<Item=&'a PredicateObligation<'tcx>>, 'tcx:'a
301301
{

src/librustc_trans/back/link.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ pub fn sanitize(s: &str) -> String {
265265
return result;
266266
}
267267

268-
pub fn mangle<PI: Iterator<Item=PathElem>>(mut path: PI,
268+
pub fn mangle<PI: Iterator<Item=PathElem>>(path: PI,
269269
hash: Option<&str>) -> String {
270270
// Follow C++ namespace-mangling style, see
271271
// http://en.wikipedia.org/wiki/Name_mangling for more info.
@@ -1055,10 +1055,10 @@ fn add_local_native_libraries(cmd: &mut Command, sess: &Session) {
10551055
let libs = sess.cstore.get_used_libraries();
10561056
let libs = libs.borrow();
10571057

1058-
let mut staticlibs = libs.iter().filter_map(|&(ref l, kind)| {
1058+
let staticlibs = libs.iter().filter_map(|&(ref l, kind)| {
10591059
if kind == cstore::NativeStatic {Some(l)} else {None}
10601060
});
1061-
let mut others = libs.iter().filter(|&&(_, kind)| {
1061+
let others = libs.iter().filter(|&&(_, kind)| {
10621062
kind != cstore::NativeStatic
10631063
});
10641064

src/librustc_trans/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2424
html_root_url = "http://doc.rust-lang.org/nightly/")]
2525

26-
#![cfg_attr(not(stage0), allow(unused_mut))] // NOTE: remove after stage0 snap
27-
2826
#![feature(alloc)]
2927
#![feature(box_syntax)]
3028
#![feature(collections)]

src/librustc_trans/trans/debuginfo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3848,7 +3848,7 @@ fn push_debuginfo_type_name<'a, 'tcx>(cx: &CrateContext<'a, 'tcx>,
38483848
def_id: ast::DefId,
38493849
qualified: bool,
38503850
output: &mut String) {
3851-
ty::with_path(cx.tcx(), def_id, |mut path| {
3851+
ty::with_path(cx.tcx(), def_id, |path| {
38523852
if qualified {
38533853
if def_id.krate == ast::LOCAL_CRATE {
38543854
output.push_str(crate_root_namespace(cx));

src/librustc_typeck/check/coercion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ impl<'f, 'tcx> Coerce<'f, 'tcx> {
353353
assert!(ty_substs_a.len() == ty_substs_b.len());
354354

355355
let mut result = None;
356-
let mut tps = ty_substs_a.iter().zip(ty_substs_b.iter()).enumerate();
356+
let tps = ty_substs_a.iter().zip(ty_substs_b.iter()).enumerate();
357357
for (i, (tp_a, tp_b)) in tps {
358358
if self.fcx.infcx().try(|_| self.subtype(*tp_a, *tp_b)).is_ok() {
359359
continue;

src/librustc_typeck/check/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ fn check_trait_on_unimplemented<'a, 'tcx>(ccx: &CrateCtxt<'a, 'tcx>,
805805
a.check_name("rustc_on_unimplemented")
806806
}) {
807807
if let Some(ref istring) = attr.value_str() {
808-
let mut parser = Parser::new(istring.get());
808+
let parser = Parser::new(istring.get());
809809
let types = generics.ty_params.as_slice();
810810
for token in parser {
811811
match token {

src/librustc_typeck/check/regionck.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ fn constrain_callee(rcx: &mut Rcx,
854854
fn constrain_call<'a, I: Iterator<Item=&'a ast::Expr>>(rcx: &mut Rcx,
855855
call_expr: &ast::Expr,
856856
receiver: Option<&ast::Expr>,
857-
mut arg_exprs: I,
857+
arg_exprs: I,
858858
implicitly_ref_args: bool) {
859859
//! Invoked on every call site (i.e., normal calls, method calls,
860860
//! and overloaded operators). Constrains the regions which appear

src/librustc_typeck/collect.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ fn convert_associated_type<'a, 'tcx>(ccx: &CollectCtxt<'a, 'tcx>,
439439

440440
fn convert_methods<'a,'tcx,'i,I>(ccx: &CollectCtxt<'a, 'tcx>,
441441
container: ImplOrTraitItemContainer,
442-
mut ms: I,
442+
ms: I,
443443
untransformed_rcvr_ty: Ty<'tcx>,
444444
rcvr_ty_generics: &ty::Generics<'tcx>,
445445
rcvr_visibility: ast::Visibility)
@@ -1655,7 +1655,7 @@ fn enforce_impl_ty_params_are_constrained<'tcx>(tcx: &ty::ctxt<'tcx>,
16551655
loop {
16561656
let num_inputs = input_parameters.len();
16571657

1658-
let mut projection_predicates =
1658+
let projection_predicates =
16591659
impl_scheme.generics.predicates
16601660
.iter()
16611661
.filter_map(|predicate| {

src/librustc_typeck/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ This API is completely unstable and subject to change.
7373
html_root_url = "http://doc.rust-lang.org/nightly/")]
7474

7575
#![allow(non_camel_case_types)]
76-
#![cfg_attr(not(stage0), allow(unused_mut))] // NOTE: remove after stage0 snap
7776

7877
#![feature(box_syntax)]
7978
#![feature(collections)]

src/libstd/collections/hash/map.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@ impl<K, V, S, H> IntoIterator for HashMap<K, V, S>
14161416
{
14171417
type Iter = IntoIter<K, V>;
14181418

1419-
fn into_iter(mut self) -> IntoIter<K, V> {
1419+
fn into_iter(self) -> IntoIter<K, V> {
14201420
self.into_iter()
14211421
}
14221422
}
@@ -1575,7 +1575,7 @@ impl<K, V, S, H> Extend<(K, V)> for HashMap<K, V, S>
15751575
S: HashState<Hasher=H>,
15761576
H: hash::Hasher<Output=u64>
15771577
{
1578-
fn extend<T: Iterator<Item=(K, V)>>(&mut self, mut iter: T) {
1578+
fn extend<T: Iterator<Item=(K, V)>>(&mut self, iter: T) {
15791579
for (k, v) in iter {
15801580
self.insert(k, v);
15811581
}

src/libstd/collections/hash/set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ impl<T, S, H> Extend<T> for HashSet<T, S>
636636
S: HashState<Hasher=H>,
637637
H: hash::Hasher<Output=u64>
638638
{
639-
fn extend<I: Iterator<Item=T>>(&mut self, mut iter: I) {
639+
fn extend<I: Iterator<Item=T>>(&mut self, iter: I) {
640640
for k in iter {
641641
self.insert(k);
642642
}

src/libstd/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@
127127
#![no_std]
128128

129129
#![deny(missing_docs)]
130-
#![cfg_attr(not(stage0), allow(unused_mut))] // NOTE: remove after stage0 snap
131130

132131
#[cfg(test)]
133132
#[macro_use]

src/libstd/old_io/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ pub fn mkdir_recursive(path: &Path, mode: FilePermission) -> IoResult<()> {
597597
return Ok(())
598598
}
599599

600-
let mut comps = path.components();
600+
let comps = path.components();
601601
let mut curpath = path.root_path().unwrap_or(Path::new("."));
602602

603603
for c in comps {

src/libstd/sys/common/wtf8.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ impl FromIterator<CodePoint> for Wtf8Buf {
366366
/// This replaces surrogate code point pairs with supplementary code points,
367367
/// like concatenating ill-formed UTF-16 strings effectively would.
368368
impl Extend<CodePoint> for Wtf8Buf {
369-
fn extend<T: Iterator<Item=CodePoint>>(&mut self, mut iterator: T) {
369+
fn extend<T: Iterator<Item=CodePoint>>(&mut self, iterator: T) {
370370
let (low, _high) = iterator.size_hint();
371371
// Lower bound of one byte per code point (ASCII only)
372372
self.bytes.reserve(low);

src/libsyntax/attr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ impl fmt::Display for StabilityLevel {
373373
fn find_stability_generic<'a,
374374
AM: AttrMetaMethods,
375375
I: Iterator<Item=&'a AM>>
376-
(diagnostic: &SpanHandler, mut attrs: I, item_sp: Span)
376+
(diagnostic: &SpanHandler, attrs: I, item_sp: Span)
377377
-> (Option<Stability>, Vec<&'a AM>) {
378378

379379
let mut stab: Option<Stability> = None;

src/libsyntax/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2424
html_root_url = "http://doc.rust-lang.org/nightly/")]
2525

26-
#![cfg_attr(not(stage0), allow(unused_mut))] // NOTE: remove after stage0 snap
27-
2826
#![feature(box_syntax)]
2927
#![feature(collections)]
3028
#![feature(core)]

0 commit comments

Comments
 (0)