Skip to content

Commit 68ad694

Browse files
committed
Correct one case where the inference was detecting a looser result than the
explicit annotation, leading to "extra `mut` declaration" lint errors.
1 parent 0431134 commit 68ad694

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/ext/deriving/rand.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fn rand_substructure(cx: &mut ExtCtxt, trait_span: Span, substr: &Substructure)
6666
cx.ident_of("Rand"),
6767
cx.ident_of("rand")
6868
);
69-
let mut rand_call = |&mut: cx: &mut ExtCtxt, span| {
69+
let rand_call = |&: cx: &mut ExtCtxt, span| {
7070
cx.expr_call_global(span,
7171
rand_ident.clone(),
7272
vec!(rng.clone()))

0 commit comments

Comments
 (0)