about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection
diff options
context:
space:
mode:
authorDeadbeef <ent3rm4n@gmail.com>2022-07-21 07:45:49 +0000
committerDeadbeef <ent3rm4n@gmail.com>2022-07-21 07:45:49 +0000
commita0ebb2ed8b59e8eec9add6acda0673dcf468596f (patch)
treec276945c88caf20b706483b2192e6835e6fc8f60 /compiler/rustc_trait_selection
parent8464396a19da9cbba15a815eaa7448a2fc3b5fa8 (diff)
downloadrust-a0ebb2ed8b59e8eec9add6acda0673dcf468596f.tar.gz
rust-a0ebb2ed8b59e8eec9add6acda0673dcf468596f.zip
change `map_bound(|_| x` to `rebind(x`
Diffstat (limited to 'compiler/rustc_trait_selection')
-rw-r--r--compiler/rustc_trait_selection/src/traits/relationships.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/relationships.rs b/compiler/rustc_trait_selection/src/traits/relationships.rs
index 56bdeafeeca..8148e2b7871 100644
--- a/compiler/rustc_trait_selection/src/traits/relationships.rs
+++ b/compiler/rustc_trait_selection/src/traits/relationships.rs
@@ -31,14 +31,14 @@ pub(crate) fn update<'tcx, T>(
             obligation
                 .predicate
                 .kind()
-                .map_bound(|_| {
+                .rebind(
                     // (*) binder moved here
                     ty::PredicateKind::Trait(ty::TraitPredicate {
                         trait_ref,
                         constness: tpred.constness,
                         polarity: tpred.polarity,
                     })
-                })
+                )
                 .to_predicate(infcx.tcx),
         );
         // Don't report overflow errors. Otherwise equivalent to may_hold.