]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_trait_selection/src/infer.rs
New upstream version 1.73.0+dfsg1
[rustc.git] / compiler / rustc_trait_selection / src / infer.rs
index 6efc1e7302c0a91243acb9daafaebc0eae838cde..38153cccfdded78ed603950e5018662e83bcc416 100644 (file)
@@ -72,7 +72,7 @@ impl<'tcx> InferCtxtExt<'tcx> for InferCtxt<'tcx> {
             cause: traits::ObligationCause::dummy(),
             param_env,
             recursion_depth: 0,
-            predicate: ty::Binder::dummy(trait_ref).without_const().to_predicate(self.tcx),
+            predicate: ty::Binder::dummy(trait_ref).to_predicate(self.tcx),
         };
         self.evaluate_obligation(&obligation).unwrap_or(traits::EvaluationResult::EvaluatedToErr)
     }