]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_trait_selection/src/traits/relationships.rs
Prevent the creation of `TraitRef` without dedicated methods
[rust.git] / compiler / rustc_trait_selection / src / traits / relationships.rs
index bfa318787e546869e2c0efe8ebcbb679579feaf0..34b5fc4891eb36643e65c2412e8ac70330559e55 100644 (file)
@@ -26,7 +26,7 @@ pub(crate) fn update<'tcx, T>(
                 .kind()
                 .rebind(
                     // (*) binder moved here
-                    ty::PredicateKind::Clause(ty::Clause::Trait(tpred.with_self_type(infcx.tcx, new_self_ty)))
+                    ty::PredicateKind::Clause(ty::Clause::Trait(tpred.with_self_ty(infcx.tcx, new_self_ty)))
                 ),
         );
         // Don't report overflow errors. Otherwise equivalent to may_hold.