Skip to content

Commit 9d956e0

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 167727 b: refs/heads/master c: 06408b4 h: refs/heads/master i: 167725: 6f9b87a 167723: fd9f0d8 167719: 01a4003 167711: 96e1481 v: v3
1 parent 11c4b8f commit 9d956e0

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 16a4ba8fa5c717bd62a094210ad5926227d7ea95
2+
refs/heads/master: 06408b4dd3801f8eba32ef775ad013b56627dcf9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: c89417130f042c58adc60012e7cddc4ef70b70b9
55
refs/heads/try: 5204084bd2e46af7cc6e0147430e44dd0d657bbb

trunk/src/librustc/metadata/creader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ fn extract_crate_info(e: &Env, i: &ast::ViewItem) -> Option<CrateInfo> {
177177
}
178178

179179
pub fn validate_crate_name(sess: Option<&Session>, s: &str, sp: Option<Span>) {
180-
let err = |s: &str| {
180+
let err = |&: s: &str| {
181181
match (sp, sess) {
182182
(_, None) => panic!("{}", s),
183183
(Some(sp), Some(sess)) => sess.span_err(sp, s),

trunk/src/librustc/metadata/encoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@ fn encode_info_for_item(ecx: &EncodeContext,
14171417
encode_parent_sort(rbml_w, 't');
14181418

14191419
let trait_item = &ms[i];
1420-
let encode_trait_item = |rbml_w: &mut Encoder| {
1420+
let encode_trait_item = |&: rbml_w: &mut Encoder| {
14211421
// If this is a static method, we've already
14221422
// encoded this.
14231423
if is_nonstatic_method {

trunk/src/librustc/middle/check_const.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ fn check_expr(v: &mut CheckCrateVisitor, e: &ast::Expr) -> bool {
185185
ast::ExprBlock(ref block) => {
186186
// Check all statements in the block
187187
for stmt in block.stmts.iter() {
188-
let block_span_err = |span|
188+
let block_span_err = |&: span|
189189
span_err!(v.tcx.sess, span, E0016,
190190
"blocks in constants are limited to items and \
191191
tail expressions");

trunk/src/librustc/middle/check_match.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ fn check_legality_of_move_bindings(cx: &MatchCheckCtxt,
10121012
})
10131013
}
10141014

1015-
let check_move: |&Pat, Option<&Pat>| = |p, sub| {
1015+
let check_move = |&: p: &Pat, sub: Option<&Pat>| {
10161016
// check legality of moving out of the enum
10171017

10181018
// x @ Foo(..) is legal, but x @ Foo(y) isn't.

trunk/src/librustc/middle/infer/region_inference/graphviz.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ impl<'a, 'tcx> ConstraintGraph<'a, 'tcx> {
136136
let mut i = 0;
137137
let mut node_ids = FnvHashMap::new();
138138
{
139-
let add_node = |node| {
139+
let mut add_node = |&mut : node| {
140140
if let Vacant(e) = node_ids.entry(node) {
141141
e.set(i);
142142
i += 1;

trunk/src/librustc/middle/privacy.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ impl<'a, 'tcx> PrivacyVisitor<'a, 'tcx> {
749749
fn check_path(&mut self, span: Span, path_id: ast::NodeId, path: &ast::Path) {
750750
debug!("privacy - path {}", self.nodestr(path_id));
751751
let orig_def = self.tcx.def_map.borrow()[path_id].clone();
752-
let ck = |tyname: &str| {
752+
let ck = |&: tyname: &str| {
753753
let ck_public = |def: ast::DefId| {
754754
let name = token::get_ident(path.segments.last().unwrap().identifier);
755755
let origdid = orig_def.def_id();
@@ -921,7 +921,7 @@ impl<'a, 'tcx, 'v> Visitor<'v> for PrivacyVisitor<'a, 'tcx> {
921921
}
922922
}
923923
ast::ExprPath(..) => {
924-
let guard = |did: ast::DefId| {
924+
let guard = |&: did: ast::DefId| {
925925
let fields = ty::lookup_struct_fields(self.tcx, did);
926926
let any_priv = fields.iter().any(|f| {
927927
f.vis != ast::Public && (
@@ -1126,7 +1126,7 @@ impl<'a, 'tcx> SanePrivacyVisitor<'a, 'tcx> {
11261126
/// later on down the road...
11271127
fn check_sane_privacy(&self, item: &ast::Item) {
11281128
let tcx = self.tcx;
1129-
let check_inherited = |sp: Span, vis: ast::Visibility, note: &str| {
1129+
let check_inherited = |&: sp: Span, vis: ast::Visibility, note: &str| {
11301130
if vis != ast::Inherited {
11311131
tcx.sess.span_err(sp, "unnecessary visibility qualifier");
11321132
if note.len() > 0 {
@@ -1206,7 +1206,7 @@ impl<'a, 'tcx> SanePrivacyVisitor<'a, 'tcx> {
12061206
tcx.sess.span_err(sp, "visibility has no effect inside functions");
12071207
}
12081208
}
1209-
let check_struct = |def: &ast::StructDef| {
1209+
let check_struct = |&: def: &ast::StructDef| {
12101210
for f in def.fields.iter() {
12111211
match f.node.kind {
12121212
ast::NamedField(_, p) => check_inherited(tcx, f.span, p),

trunk/src/librustc/middle/region.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ fn resolve_expr(visitor: &mut RegionResolutionVisitor, expr: &ast::Expr) {
488488

489489
{
490490
let region_maps = &mut visitor.region_maps;
491-
let terminating = |id| {
491+
let terminating = |&: id| {
492492
let scope = CodeExtent::from_node_id(id);
493493
region_maps.mark_as_terminating_scope(scope)
494494
};

trunk/src/librustc/middle/ty.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6156,7 +6156,7 @@ pub fn hash_crate_independent<'tcx>(tcx: &ctxt<'tcx>, ty: Ty<'tcx>, svh: &Svh) -
61566156
macro_rules! byte( ($b:expr) => { ($b as u8).hash(state) } );
61576157
macro_rules! hash( ($e:expr) => { $e.hash(state) } );
61586158

6159-
let region = |state: &mut sip::SipState, r: Region| {
6159+
let region = |&: state: &mut sip::SipState, r: Region| {
61606160
match r {
61616161
ReStatic => {}
61626162
ReLateBound(db, BrAnon(i)) => {
@@ -6173,7 +6173,7 @@ pub fn hash_crate_independent<'tcx>(tcx: &ctxt<'tcx>, ty: Ty<'tcx>, svh: &Svh) -
61736173
}
61746174
}
61756175
};
6176-
let did = |state: &mut sip::SipState, did: DefId| {
6176+
let did = |&: state: &mut sip::SipState, did: DefId| {
61776177
let h = if ast_util::is_local(did) {
61786178
svh.clone()
61796179
} else {
@@ -6182,10 +6182,10 @@ pub fn hash_crate_independent<'tcx>(tcx: &ctxt<'tcx>, ty: Ty<'tcx>, svh: &Svh) -
61826182
h.as_str().hash(state);
61836183
did.node.hash(state);
61846184
};
6185-
let mt = |state: &mut sip::SipState, mt: mt| {
6185+
let mt = |&: state: &mut sip::SipState, mt: mt| {
61866186
mt.mutbl.hash(state);
61876187
};
6188-
let fn_sig = |state: &mut sip::SipState, sig: &Binder<FnSig<'tcx>>| {
6188+
let fn_sig = |&: state: &mut sip::SipState, sig: &Binder<FnSig<'tcx>>| {
61896189
let sig = anonymize_late_bound_regions(tcx, sig);
61906190
for a in sig.inputs.iter() { helper(tcx, *a, svh, state); }
61916191
if let ty::FnConverging(output) = sig.output {

0 commit comments

Comments
 (0)