From 0929201d605076ae03bddbeb3b3458e6eb4d338a Mon Sep 17 00:00:00 2001 From: Scott Olson Date: Sat, 26 Nov 2016 23:37:38 -0800 Subject: [PATCH] Remove useless binding. --- src/interpreter/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/interpreter/mod.rs b/src/interpreter/mod.rs index ac2e5cd7967..c5794e63e8f 100644 --- a/src/interpreter/mod.rs +++ b/src/interpreter/mod.rs @@ -282,8 +282,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> { pub fn monomorphize(&self, ty: Ty<'tcx>, substs: &'tcx Substs<'tcx>) -> Ty<'tcx> { let substituted = ty.subst(self.tcx, substs); - let new = self.tcx.normalize_associated_type(&substituted); - new + self.tcx.normalize_associated_type(&substituted) } fn type_size(&self, ty: Ty<'tcx>) -> EvalResult<'tcx, Option> {