about summary refs log tree commit diff
path: root/tests/ui/consts
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 /tests/ui/consts
parent10723c28964d582814ea8e07dbd8fa7367e0eaee (diff)
downloadrust-1f0ed2b0f54aff2dbc63ff72261b8acb2c186404.tar.gz
rust-1f0ed2b0f54aff2dbc63ff72261b8acb2c186404.zip
add new rustc_const_stable_intrinsic attribute for const-stable intrinsics
Diffstat (limited to 'tests/ui/consts')
-rw-r--r--tests/ui/consts/const-unstable-intrinsic.stderr6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/consts/const-unstable-intrinsic.stderr b/tests/ui/consts/const-unstable-intrinsic.stderr
index a997379663d..2cf76732cf2 100644
--- a/tests/ui/consts/const-unstable-intrinsic.stderr
+++ b/tests/ui/consts/const-unstable-intrinsic.stderr
@@ -24,7 +24,7 @@ error: intrinsic `unstable_intrinsic::size_of_val` cannot be (indirectly) expose
 LL |         unstable_intrinsic::size_of_val(&x);
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
-   = help: mark the caller as `#[rustc_const_unstable]`, or mark the intrinsic `#[rustc_const_stable_indirect]` (but this requires team approval)
+   = help: mark the caller as `#[rustc_const_unstable]`, or mark the intrinsic `#[rustc_const_stable_intrinsic]` (but this requires team approval)
 
 error: `min_align_of_val` is not yet stable as a const intrinsic
   --> $DIR/const-unstable-intrinsic.rs:20:9
@@ -40,7 +40,7 @@ error: intrinsic `size_of_val` cannot be (indirectly) exposed to stable
 LL |         size_of_val(&x);
    |         ^^^^^^^^^^^^^^^
    |
-   = help: mark the caller as `#[rustc_const_unstable]`, or mark the intrinsic `#[rustc_const_stable_indirect]` (but this requires team approval)
+   = help: mark the caller as `#[rustc_const_unstable]`, or mark the intrinsic `#[rustc_const_stable_intrinsic]` (but this requires team approval)
 
 error: const function that might be (indirectly) exposed to stable cannot use `#[feature(local)]`
   --> $DIR/const-unstable-intrinsic.rs:26:9
@@ -65,7 +65,7 @@ error: intrinsic `copy::copy` cannot be (indirectly) exposed to stable
 LL |     unsafe { copy(src, dst, count) }
    |              ^^^^^^^^^^^^^^^^^^^^^
    |
-   = help: mark the caller as `#[rustc_const_unstable]`, or mark the intrinsic `#[rustc_const_stable_indirect]` (but this requires team approval)
+   = help: mark the caller as `#[rustc_const_unstable]`, or mark the intrinsic `#[rustc_const_stable_intrinsic]` (but this requires team approval)
 
 error: aborting due to 7 previous errors