remove temporary variable

This commit is contained in:
Niko Matsakis 2017-05-02 06:34:29 -04:00
parent 0afcfce8d8
commit 15bc2f4ca0

View File

@ -114,8 +114,7 @@ fn make_shim<'a, 'tcx>(tcx: ty::TyCtxt<'a, 'tcx, 'tcx>,
add_call_guards::add_call_guards(&mut result);
debug!("make_shim({:?}) = {:?}", instance, result);
let result = tcx.alloc_mir(result);
result
tcx.alloc_mir(result)
}
#[derive(Copy, Clone, Debug, PartialEq)]