about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-10 05:13:51 +0000
committerbors <bors@rust-lang.org>2024-01-10 05:13:51 +0000
commit2dc23e7952089efd24d0becc126067ae694b6ba8 (patch)
treef776335f51ac4d7e9b0e338d10cb15923747cbb5 /compiler/rustc_codegen_gcc/example
parent707db44ade898bfe3bcebc1c0d10796894964e7c (diff)
parent7e9da57c9ed96069295a35f2e95ecf9266c693a8 (diff)
downloadrust-2dc23e7952089efd24d0becc126067ae694b6ba8.tar.gz
rust-2dc23e7952089efd24d0becc126067ae694b6ba8.zip
Auto merge of #3263 - rust-lang:rustup-2024-01-10, r=saethlin
Automatic Rustup
Diffstat (limited to 'compiler/rustc_codegen_gcc/example')
-rw-r--r--compiler/rustc_codegen_gcc/example/mini_core_hello_world.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_gcc/example/mini_core_hello_world.rs b/compiler/rustc_codegen_gcc/example/mini_core_hello_world.rs
index 40a1ad22c0e..9827e299f2a 100644
--- a/compiler/rustc_codegen_gcc/example/mini_core_hello_world.rs
+++ b/compiler/rustc_codegen_gcc/example/mini_core_hello_world.rs
@@ -98,6 +98,9 @@ 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)]
 static NUM_REF: &'static u8 = unsafe { &NUM };
 
 macro_rules! assert {