We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baf382e commit d25d79dCopy full SHA for d25d79d
compiler/rustc_infer/src/infer/outlives/test_type_match.rs
@@ -79,8 +79,7 @@ pub(super) fn can_match_erased_ty<'tcx>(
79
erased_ty: Ty<'tcx>,
80
) -> bool {
81
assert!(!outlives_predicate.has_escaping_bound_vars());
82
- let erased_outlives_predicate = tcx.erase_regions(outlives_predicate);
83
- let outlives_ty = erased_outlives_predicate.skip_binder().0;
+ let outlives_ty = tcx.erase_regions(outlives_predicate.skip_binder().0);
84
if outlives_ty == erased_ty {
85
// pointless micro-optimization
86
true
0 commit comments