diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2024-11-18 02:24:35 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-18 02:24:35 -0500 |
| commit | 72a8d536ef28ba6f7c185b905dbcefee7536fc72 (patch) | |
| tree | 4d636d3663f2a87eb19559df39c9a0a8f35b233b /tests | |
| parent | 21654a2f4478127f3751582c3f912246866d154d (diff) | |
| parent | 9d4b1b2db497102257c6f372f308492089d689b4 (diff) | |
| download | rust-72a8d536ef28ba6f7c185b905dbcefee7536fc72.tar.gz rust-72a8d536ef28ba6f7c185b905dbcefee7536fc72.zip | |
Rollup merge of #133142 - RalfJung:naming-is-hard, r=compiler-errors
rename rustc_const_stable_intrinsic -> rustc_intrinsic_const_stable_indirect In https://github.com/rust-lang/rust/pull/120370 this name caused confusion as the author thought the intrinsic was stable. So let's try a different name... If we can land this before the beta cutoff we can avoid needing `cfg(bootstrap)` for this. ;) Cc `@compiler-errors` `@saethlin`
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/consts/const-unstable-intrinsic.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/consts/const-unstable-intrinsic.stderr b/tests/ui/consts/const-unstable-intrinsic.stderr index 8b61b0904a9..dfca04bef07 100644 --- a/tests/ui/consts/const-unstable-intrinsic.stderr +++ b/tests/ui/consts/const-unstable-intrinsic.stderr @@ -74,7 +74,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_intrinsic]` (but this requires team approval) + = help: mark the caller as `#[rustc_const_unstable]`, or mark the intrinsic `#[rustc_intrinsic_const_stable_indirect]` (but this requires team approval) error: const function that might be (indirectly) exposed to stable cannot use `#[feature(local)]` --> $DIR/const-unstable-intrinsic.rs:61:9 |
