about summary refs log tree commit diff
path: root/compiler/rustc_ty_utils/src/ty.rs
diff options
context:
space:
mode:
authorOli Scherer <github333195615777966@oli-obk.de>2025-03-11 12:08:45 +0000
committerOli Scherer <github333195615777966@oli-obk.de>2025-06-26 13:46:45 +0000
commiteb7245a864613f290c5668f4f4e8376edd065dc6 (patch)
treec31fc679f821ab1d469de7324a71d91f72787cbb /compiler/rustc_ty_utils/src/ty.rs
parent18f4cb11108bbb3119d4ba2a7eb06c80adf6a438 (diff)
downloadrust-eb7245a864613f290c5668f4f4e8376edd065dc6.tar.gz
rust-eb7245a864613f290c5668f4f4e8376edd065dc6.zip
Change const trait bound syntax from ~const to [const]
Diffstat (limited to 'compiler/rustc_ty_utils/src/ty.rs')
-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 d996ee2b60a..553f5e0e1b5 100644
--- a/compiler/rustc_ty_utils/src/ty.rs
+++ b/compiler/rustc_ty_utils/src/ty.rs
@@ -175,7 +175,7 @@ fn param_env(tcx: TyCtxt<'_>, def_id: DefId) -> ty::ParamEnv<'_> {
     }
 
     // We extend the param-env of our item with the const conditions of the item,
-    // since we're allowed to assume `~const` bounds hold within the item itself.
+    // since we're allowed to assume `[const]` bounds hold within the item itself.
     if tcx.is_conditionally_const(def_id) {
         predicates.extend(
             tcx.const_conditions(def_id).instantiate_identity(tcx).into_iter().map(