about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-04-22 18:14:32 +0200
committerGitHub <noreply@github.com>2021-04-22 18:14:32 +0200
commit2f438e31f577bbb9367b9abbcbb5ce77ce54e979 (patch)
tree3d6e13358dd6a850a644cd391f34af2e262465fe /compiler/rustc_trait_selection
parent25c15cdbe070f49d708f34750df2632e38bd4846 (diff)
parentc9c14d0c1f04f888fbd4ec8b254b61fff84db7d4 (diff)
downloadrust-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.rs3
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.