diff options
| author | bors <bors@rust-lang.org> | 2024-09-15 11:19:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-09-15 11:19:28 +0000 |
| commit | dde7d6649e421d8b2f074fd3ddd0d712d3448e65 (patch) | |
| tree | f3624e6ef711faa0e975c21d76e82da3b5ab9b5d /compiler/rustc_error_codes | |
| parent | 1ae268816ca3f5f314ccbfd04affd61cb081e13f (diff) | |
| parent | 729aa49d0fbb9f5058e0633471091b430453ae33 (diff) | |
| download | rust-dde7d6649e421d8b2f074fd3ddd0d712d3448e65.tar.gz rust-dde7d6649e421d8b2f074fd3ddd0d712d3448e65.zip | |
Auto merge of #130390 - matthiaskrgr:rollup-evbfwe2, r=matthiaskrgr
Rollup of 5 pull requests Successful merges: - #129195 (Stabilize `&mut` (and `*mut`) as well as `&Cell` (and `*const Cell`) in const) - #130118 (move Option::unwrap_unchecked into const_option feature gate) - #130295 (Fix target-cpu fpu features on Armv8-R.) - #130371 (Correctly account for niche-optimized tags in rustc_transmute) - #130381 (library: Compute Rust exception class from its string repr) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_error_codes')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0764.md | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0764.md b/compiler/rustc_error_codes/src/error_codes/E0764.md index 152627cf654..4d5091cd954 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0764.md +++ b/compiler/rustc_error_codes/src/error_codes/E0764.md @@ -3,8 +3,6 @@ A mutable reference was used in a constant. Erroneous code example: ```compile_fail,E0764 -#![feature(const_mut_refs)] - fn main() { const OH_NO: &'static mut usize = &mut 1; // error! } @@ -26,8 +24,6 @@ Remember: you cannot use a function call inside a constant or static. However, you can totally use it in constant functions: ``` -#![feature(const_mut_refs)] - const fn foo(x: usize) -> usize { let mut y = 1; let z = &mut y; |
