We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4387e4b commit bf18310Copy full SHA for bf18310
compiler/rustc_trait_selection/src/traits/codegen.rs
@@ -23,8 +23,6 @@ pub fn codegen_fulfill_obligation<'tcx>(
23
tcx: TyCtxt<'tcx>,
24
(param_env, trait_ref): (ty::ParamEnv<'tcx>, ty::PolyTraitRef<'tcx>),
25
) -> Result<&'tcx ImplSource<'tcx, ()>, CodegenObligationError> {
26
- // Remove any references to regions; this helps improve caching.
27
- let trait_ref = tcx.erase_regions(trait_ref);
28
// We expect the input to be fully normalized.
29
debug_assert_eq!(trait_ref, tcx.normalize_erasing_regions(param_env, trait_ref));
30
0 commit comments