about summary refs log tree commit diff
path: root/compiler/rustc_driver_impl/src
diff options
context:
space:
mode:
authorObei Sideg <obei.sideg@gmail.com>2024-08-24 06:47:43 +0300
committerObei Sideg <obei.sideg@gmail.com>2024-09-13 13:33:43 +0300
commit74cab947f79045e34eb973199274ee5f3c132bd8 (patch)
treec785fec733ea83de04284bc2414ff95abe765ca4 /compiler/rustc_driver_impl/src
parentd0985bb5240317daaf7c7f8790479e5f08ac0dd5 (diff)
downloadrust-74cab947f79045e34eb973199274ee5f3c132bd8.tar.gz
rust-74cab947f79045e34eb973199274ee5f3c132bd8.zip
Disallow hidden references to mutable static
Diffstat (limited to 'compiler/rustc_driver_impl/src')
-rw-r--r--compiler/rustc_driver_impl/src/signal_handler.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_driver_impl/src/signal_handler.rs b/compiler/rustc_driver_impl/src/signal_handler.rs
index e1f868c2522..411661824f0 100644
--- a/compiler/rustc_driver_impl/src/signal_handler.rs
+++ b/compiler/rustc_driver_impl/src/signal_handler.rs
@@ -35,6 +35,8 @@ macro raw_errln($tokens:tt) {
 }
 
 /// Signal handler installed for SIGSEGV
+// FIXME(static_mut_refs): Do not allow `static_mut_refs` lint
+#[allow(static_mut_refs)]
 extern "C" fn print_stack_trace(_: libc::c_int) {
     const MAX_FRAMES: usize = 256;
     // Reserve data segment so we don't have to malloc in a signal handler, which might fail