about summary refs log tree commit diff
path: root/compiler/rustc_metadata
diff options
context:
space:
mode:
authorDeadbeef <ent3rm4n@gmail.com>2025-07-13 16:49:19 +0800
committerDeadbeef <ent3rm4n@gmail.com>2025-07-17 18:06:26 +0800
commit69326878eeabb713e2d4a85215b87f18e498313c (patch)
treebf785ce27bea3392a70c2af0f8c0f4e732c435b4 /compiler/rustc_metadata
parentf8f6997469237299c1d60814c7b9828602a1f8e4 (diff)
downloadrust-69326878eeabb713e2d4a85215b87f18e498313c.tar.gz
rust-69326878eeabb713e2d4a85215b87f18e498313c.zip
parse `const trait Trait`
Diffstat (limited to 'compiler/rustc_metadata')
-rw-r--r--compiler/rustc_metadata/src/rmeta/encoder.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_metadata/src/rmeta/encoder.rs b/compiler/rustc_metadata/src/rmeta/encoder.rs
index b50453cb0df..5cd98038fc6 100644
--- a/compiler/rustc_metadata/src/rmeta/encoder.rs
+++ b/compiler/rustc_metadata/src/rmeta/encoder.rs
@@ -1131,7 +1131,7 @@ fn should_encode_mir(
                     && reachable_set.contains(&def_id)
                     && (generics.requires_monomorphization(tcx)
                         || tcx.cross_crate_inlinable(def_id)));
-            // The function has a `const` modifier or is in a `#[const_trait]`.
+            // The function has a `const` modifier or is in a `const trait`.
             let is_const_fn = tcx.is_const_fn(def_id.to_def_id())
                 || tcx.is_const_default_method(def_id.to_def_id());
             (is_const_fn, opt)