summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorklensy <klensy@users.noreply.github.com>2025-06-22 13:05:09 +0300
committerklensy <klensy@users.noreply.github.com>2025-06-22 13:05:09 +0300
commit2ddbe39bfb2fd906ade40d622c0135c3d4bfbad0 (patch)
tree2bf23664e91e061e2e622c160677876360e04229 /compiler
parent3b97f1308ff72016a4aaa93fbe6d09d4d6427815 (diff)
downloadrust-2ddbe39bfb2fd906ade40d622c0135c3d4bfbad0.tar.gz
rust-2ddbe39bfb2fd906ade40d622c0135c3d4bfbad0.zip
remove allow(dead_code) leftovers from serial/parallel compiler
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_data_structures/src/sync/lock.rs2
-rw-r--r--compiler/rustc_data_structures/src/sync/parallel.rs2
2 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_data_structures/src/sync/lock.rs b/compiler/rustc_data_structures/src/sync/lock.rs
index 2ccf06ccd4f..a8161c51511 100644
--- a/compiler/rustc_data_structures/src/sync/lock.rs
+++ b/compiler/rustc_data_structures/src/sync/lock.rs
@@ -1,8 +1,6 @@
 //! This module implements a lock which only uses synchronization if `might_be_dyn_thread_safe` is true.
 //! It implements `DynSend` and `DynSync` instead of the typical `Send` and `Sync` traits.
 
-#![allow(dead_code)]
-
 use std::fmt;
 
 #[derive(Clone, Copy, PartialEq)]
diff --git a/compiler/rustc_data_structures/src/sync/parallel.rs b/compiler/rustc_data_structures/src/sync/parallel.rs
index ab65c7f3a6b..e5778428d47 100644
--- a/compiler/rustc_data_structures/src/sync/parallel.rs
+++ b/compiler/rustc_data_structures/src/sync/parallel.rs
@@ -1,8 +1,6 @@
 //! This module defines parallel operations that are implemented in
 //! one way for the serial compiler, and another way the parallel compiler.
 
-#![allow(dead_code)]
-
 use std::any::Any;
 use std::panic::{AssertUnwindSafe, catch_unwind, resume_unwind};