]> git.lizzy.rs Git - rust.git/commitdiff
fix EUV delegate to take advantage of defaults. This also
authorNiko Matsakis <niko@alum.mit.edu>
Tue, 1 Sep 2015 15:31:09 +0000 (11:31 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Sun, 6 Sep 2015 11:27:23 +0000 (07:27 -0400)
works around a stage0 bug that has since been fixed.

src/librustc/middle/expr_use_visitor.rs

index 15f37d434d297b8220d458c6b07d467fbf3b1c08..d2bb31f10bd14025a1e93ff532589cbf349e21d9 100644 (file)
@@ -246,7 +246,7 @@ fn from_method_id(tcx: &ty::ctxt, method_id: DefId)
 pub struct ExprUseVisitor<'d, 't, 'a: 't, 'tcx:'a+'d+'t> {
     typer: &'t infer::InferCtxt<'a, 'tcx>,
     mc: mc::MemCategorizationContext<'t, 'a, 'tcx>,
-    delegate: &'d mut (Delegate<'tcx>+'d),
+    delegate: &'d mut Delegate<'tcx>,
 }
 
 // If the TYPER results in an error, it's because the type check