diff options
| author | beetrees <b@beetr.ee> | 2025-03-09 19:03:12 +0000 |
|---|---|---|
| committer | beetrees <b@beetr.ee> | 2025-05-28 15:14:34 +0100 |
| commit | 467eeabbb5e876abc6bf552670199695172ad07a (patch) | |
| tree | bf5cc8eaa4eb75a9bde790cf9735033d1cfb7374 /compiler/rustc_error_codes | |
| parent | 77101febcc9662a076ff43887497cd5b30674d93 (diff) | |
| download | rust-467eeabbb5e876abc6bf552670199695172ad07a.tar.gz rust-467eeabbb5e876abc6bf552670199695172ad07a.zip | |
Stabilise `repr128`
Diffstat (limited to 'compiler/rustc_error_codes')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0658.md | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0658.md b/compiler/rustc_error_codes/src/error_codes/E0658.md index 24245a38ae0..65c82e4fb6e 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0658.md +++ b/compiler/rustc_error_codes/src/error_codes/E0658.md @@ -3,10 +3,7 @@ An unstable feature was used. Erroneous code example: ```compile_fail,E0658 -#[repr(u128)] // error: use of unstable library feature 'repr128' -enum Foo { - Bar(u64), -} +use std::intrinsics; // error: use of unstable library feature `core_intrinsics` ``` If you're using a stable or a beta version of rustc, you won't be able to use @@ -17,12 +14,9 @@ If you're using a nightly version of rustc, just add the corresponding feature to be able to use it: ``` -#![feature(repr128)] +#![feature(core_intrinsics)] -#[repr(u128)] // ok! -enum Foo { - Bar(u64), -} +use std::intrinsics; // ok! ``` [rustup]: https://rust-lang.github.io/rustup/concepts/channels.html |
