about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/traits/codegen.rs
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2022-07-06 13:26:06 +0200
committerlcnr <rust@lcnr.de>2022-07-11 16:26:12 +0200
commitbf183101dd2f5bfbc205207c254f53f8cc6e521c (patch)
treed910b238f09d733182698a8c2ebbea89b726b8a8 /compiler/rustc_trait_selection/src/traits/codegen.rs
parent4387e4b68fc3dfbe9c1ad2d11bd36847a2e129e2 (diff)
downloadrust-bf183101dd2f5bfbc205207c254f53f8cc6e521c.tar.gz
rust-bf183101dd2f5bfbc205207c254f53f8cc6e521c.zip
cg_fulfill_obligation: expect erased regions
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/codegen.rs')
-rw-r--r--compiler/rustc_trait_selection/src/traits/codegen.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/codegen.rs b/compiler/rustc_trait_selection/src/traits/codegen.rs
index 6ca630b74cc..4f0aadcda7d 100644
--- a/compiler/rustc_trait_selection/src/traits/codegen.rs
+++ b/compiler/rustc_trait_selection/src/traits/codegen.rs
@@ -23,8 +23,6 @@ pub fn codegen_fulfill_obligation<'tcx>(
     tcx: TyCtxt<'tcx>,
     (param_env, trait_ref): (ty::ParamEnv<'tcx>, ty::PolyTraitRef<'tcx>),
 ) -> Result<&'tcx ImplSource<'tcx, ()>, CodegenObligationError> {
-    // Remove any references to regions; this helps improve caching.
-    let trait_ref = tcx.erase_regions(trait_ref);
     // We expect the input to be fully normalized.
     debug_assert_eq!(trait_ref, tcx.normalize_erasing_regions(param_env, trait_ref));