We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98a11e0 commit c9c14d0Copy full SHA for c9c14d0
compiler/rustc_trait_selection/src/traits/object_safety.rs
@@ -439,8 +439,7 @@ fn virtual_call_violation_for_method<'tcx>(
439
return Some(MethodViolationCode::WhereClauseReferencesSelf);
440
}
441
442
- let receiver_ty =
443
- tcx.liberate_late_bound_regions(method.def_id, sig.map_bound(|sig| sig.inputs()[0]));
+ let receiver_ty = tcx.liberate_late_bound_regions(method.def_id, sig.input(0));
444
445
// Until `unsized_locals` is fully implemented, `self: Self` can't be dispatched on.
446
// However, this is already considered object-safe. We allow it as a special case here.
0 commit comments