Rollup merge of #84343 - camsteffen:closure-tree, r=varkor
Remove `ScopeTree::closure_tree` Seems to be dead code since #50649.
This commit is contained in:
commit
2f438e31f5
3 changed files with 2 additions and 47 deletions
|
@ -439,8 +439,7 @@ fn virtual_call_violation_for_method<'tcx>(
|
|||
return Some(MethodViolationCode::WhereClauseReferencesSelf);
|
||||
}
|
||||
|
||||
let receiver_ty =
|
||||
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));
|
||||
|
||||
// Until `unsized_locals` is fully implemented, `self: Self` can't be dispatched on.
|
||||
// However, this is already considered object-safe. We allow it as a special case here.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue