about summary refs log tree commit diff
path: root/compiler/rustc_ty_utils/src
diff options
context:
space:
mode:
authorJubilee <workingjubilee@gmail.com>2024-10-30 14:01:38 -0700
committerGitHub <noreply@github.com>2024-10-30 14:01:38 -0700
commit7b19508abea5943266fa018466a4a044d0d2350c (patch)
tree85240c9b181766431b4f1d9f0dad50ebd50078fa /compiler/rustc_ty_utils/src
parentf90abe763b9aedfab0c12506e0a354b48bd0ca6d (diff)
parent802f3a78a6eea323617964a168a612d1b0826bd6 (diff)
downloadrust-7b19508abea5943266fa018466a4a044d0d2350c.tar.gz
rust-7b19508abea5943266fa018466a4a044d0d2350c.zip
Rollup merge of #132344 - compiler-errors:same-thing, r=lcnr
Merge `HostPolarity` and `BoundConstness`

They're basically the same thing, and I think `BoundConstness` is easier to use.

r? fee1-dead or reassign
Diffstat (limited to 'compiler/rustc_ty_utils/src')
-rw-r--r--compiler/rustc_ty_utils/src/ty.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/ty.rs b/compiler/rustc_ty_utils/src/ty.rs
index aa499995bcb..731d42fc006 100644
--- a/compiler/rustc_ty_utils/src/ty.rs
+++ b/compiler/rustc_ty_utils/src/ty.rs
@@ -155,7 +155,7 @@ fn param_env(tcx: TyCtxt<'_>, def_id: DefId) -> ty::ParamEnv<'_> {
     if tcx.is_conditionally_const(def_id) {
         predicates.extend(
             tcx.const_conditions(def_id).instantiate_identity(tcx).into_iter().map(
-                |(trait_ref, _)| trait_ref.to_host_effect_clause(tcx, ty::HostPolarity::Maybe),
+                |(trait_ref, _)| trait_ref.to_host_effect_clause(tcx, ty::BoundConstness::Maybe),
             ),
         );
     }