diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2022-07-21 07:45:49 +0000 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2022-07-21 07:45:49 +0000 |
| commit | a0ebb2ed8b59e8eec9add6acda0673dcf468596f (patch) | |
| tree | c276945c88caf20b706483b2192e6835e6fc8f60 /compiler/rustc_trait_selection/src | |
| parent | 8464396a19da9cbba15a815eaa7448a2fc3b5fa8 (diff) | |
| download | rust-a0ebb2ed8b59e8eec9add6acda0673dcf468596f.tar.gz rust-a0ebb2ed8b59e8eec9add6acda0673dcf468596f.zip | |
change `map_bound(|_| x` to `rebind(x`
Diffstat (limited to 'compiler/rustc_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/relationships.rs | 4 |
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. |
