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-04-23 05:44:06 +0000
committerbors <bors@rust-lang.org>2024-04-23 05:44:06 +0000
commit9120dc24fb1cd06d60dac5d9322171177897b7e0 (patch)
treeb32569375504b195ce038e858e98718dcb10814a /compiler/rustc_codegen_gcc/example
parent2ca55244a94e85f2b93d4b4351a115bce290da79 (diff)
parentcc1bf5e471ca1acdb33032849336b5af24fc46c9 (diff)
downloadrust-9120dc24fb1cd06d60dac5d9322171177897b7e0.tar.gz
rust-9120dc24fb1cd06d60dac5d9322171177897b7e0.zip
Auto merge of #3500 - rust-lang:rustup-2024-04-23, r=RalfJung
Automatic Rustup
Diffstat (limited to 'compiler/rustc_codegen_gcc/example')
-rw-r--r--compiler/rustc_codegen_gcc/example/mini_core_hello_world.rs6
1 files changed, 2 insertions, 4 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 add77880716..5a7ddc4cd7f 100644
--- a/compiler/rustc_codegen_gcc/example/mini_core_hello_world.rs
+++ b/compiler/rustc_codegen_gcc/example/mini_core_hello_world.rs
@@ -2,7 +2,7 @@
 
 #![feature(
     no_core, unboxed_closures, start, lang_items, never_type, linkage,
-    extern_types, thread_local
+    extern_types, thread_local, raw_ref_op
 )]
 #![no_core]
 #![allow(dead_code, internal_features, non_camel_case_types)]
@@ -99,9 +99,7 @@ fn start<T: Termination + 'static>(
 
 static mut NUM: u8 = 6 * 7;
 
-// FIXME: Use `SyncUnsafeCell` instead of allowing `static_mut_refs` lint
-#[allow(static_mut_refs)]
-static NUM_REF: &'static u8 = unsafe { &NUM };
+static NUM_REF: &'static u8 = unsafe { &* &raw const NUM };
 
 macro_rules! assert {
     ($e:expr) => {