diff options
| author | bors <bors@rust-lang.org> | 2024-02-18 08:00:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-18 08:00:34 +0000 |
| commit | c350ae83e87519090f94e6a6d2f94ed5ca5f28ba (patch) | |
| tree | 3c902940d85325d67872e68e7d78ad3a17baed20 | |
| parent | bd53510a9f593496638cfe7cb9fb342501762970 (diff) | |
| parent | b959fc1d0ae090301fa204f37bec8891957243b3 (diff) | |
| download | rust-c350ae83e87519090f94e6a6d2f94ed5ca5f28ba.tar.gz rust-c350ae83e87519090f94e6a6d2f94ed5ca5f28ba.zip | |
Auto merge of #121034 - obeis:improve-static-mut-ref, r=RalfJung
Improve wording of `static_mut_ref` Close #120964
| -rw-r--r-- | example/mini_core_hello_world.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/mini_core_hello_world.rs b/example/mini_core_hello_world.rs index 9827e299f2a..add77880716 100644 --- a/example/mini_core_hello_world.rs +++ b/example/mini_core_hello_world.rs @@ -99,8 +99,8 @@ fn start<T: Termination + 'static>( static mut NUM: u8 = 6 * 7; -// FIXME: Use `SyncUnsafeCell` instead of allowing `static_mut_ref` lint -#[allow(static_mut_ref)] +// FIXME: Use `SyncUnsafeCell` instead of allowing `static_mut_refs` lint +#[allow(static_mut_refs)] static NUM_REF: &'static u8 = unsafe { &NUM }; macro_rules! assert { |
