diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-04-22 18:14:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-22 18:14:32 +0200 |
| commit | 2f438e31f577bbb9367b9abbcbb5ce77ce54e979 (patch) | |
| tree | 3d6e13358dd6a850a644cd391f34af2e262465fe /compiler/rustc_trait_selection | |
| parent | 25c15cdbe070f49d708f34750df2632e38bd4846 (diff) | |
| parent | c9c14d0c1f04f888fbd4ec8b254b61fff84db7d4 (diff) | |
| download | rust-2f438e31f577bbb9367b9abbcbb5ce77ce54e979.tar.gz rust-2f438e31f577bbb9367b9abbcbb5ce77ce54e979.zip | |
Rollup merge of #84343 - camsteffen:closure-tree, r=varkor
Remove `ScopeTree::closure_tree` Seems to be dead code since #50649.
Diffstat (limited to 'compiler/rustc_trait_selection')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/object_safety.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/object_safety.rs b/compiler/rustc_trait_selection/src/traits/object_safety.rs index b5a458db607..ac5ec24eeee 100644 --- a/compiler/rustc_trait_selection/src/traits/object_safety.rs +++ b/compiler/rustc_trait_selection/src/traits/object_safety.rs @@ -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. |
