Correct one case where the inference was detecting a looser result than the

explicit annotation, leading to "extra `mut` declaration" lint errors.
This commit is contained in:
Niko Matsakis 2015-02-03 13:14:29 -05:00
parent 0431134119
commit 68ad6949d4

View File

@ -66,7 +66,7 @@ fn rand_substructure(cx: &mut ExtCtxt, trait_span: Span, substr: &Substructure)
cx.ident_of("Rand"),
cx.ident_of("rand")
);
let mut rand_call = |&mut: cx: &mut ExtCtxt, span| {
let rand_call = |&: cx: &mut ExtCtxt, span| {
cx.expr_call_global(span,
rand_ident.clone(),
vec!(rng.clone()))