about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/check_consts/ops.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-11-01 22:53:59 +0100
committerRalf Jung <post@ralfj.de>2024-11-04 23:27:46 +0100
commit1f0ed2b0f54aff2dbc63ff72261b8acb2c186404 (patch)
treea8ba721db6b2a6cde839173c4e58a08f6bfd9fbe /compiler/rustc_const_eval/src/check_consts/ops.rs
parent10723c28964d582814ea8e07dbd8fa7367e0eaee (diff)
downloadrust-1f0ed2b0f54aff2dbc63ff72261b8acb2c186404.tar.gz
rust-1f0ed2b0f54aff2dbc63ff72261b8acb2c186404.zip
add new rustc_const_stable_intrinsic attribute for const-stable intrinsics
Diffstat (limited to 'compiler/rustc_const_eval/src/check_consts/ops.rs')
-rw-r--r--compiler/rustc_const_eval/src/check_consts/ops.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_const_eval/src/check_consts/ops.rs b/compiler/rustc_const_eval/src/check_consts/ops.rs
index d264cab1511..2931159842f 100644
--- a/compiler/rustc_const_eval/src/check_consts/ops.rs
+++ b/compiler/rustc_const_eval/src/check_consts/ops.rs
@@ -354,14 +354,14 @@ impl<'tcx> NonConstOp<'tcx> for IntrinsicNonConst {
 pub(crate) struct IntrinsicUnstable {
     pub name: Symbol,
     pub feature: Symbol,
-    pub const_stable_indirect: bool,
+    pub const_stable: bool,
 }
 
 impl<'tcx> NonConstOp<'tcx> for IntrinsicUnstable {
     fn status_in_item(&self, _ccx: &ConstCx<'_, 'tcx>) -> Status {
         Status::Unstable {
             gate: self.feature,
-            safe_to_expose_on_stable: self.const_stable_indirect,
+            safe_to_expose_on_stable: self.const_stable,
             // We do *not* want to suggest to mark the intrinsic as `const_stable_indirect`,
             // that's not a trivial change!
             is_function_call: false,