File tree Expand file tree Collapse file tree 4 files changed +1
-6
lines changed
compiler/rustc_data_structures/src/sync
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 4 files changed +1
-6
lines changed Original file line number Diff line number Diff line change 1
1
//! This module implements a lock which only uses synchronization if `might_be_dyn_thread_safe` is true.
2
2
//! It implements `DynSend` and `DynSync` instead of the typical `Send` and `Sync` traits.
3
3
4
- #![ allow( dead_code) ]
5
-
6
4
use std:: fmt;
7
5
8
6
#[ derive( Clone , Copy , PartialEq ) ]
Original file line number Diff line number Diff line change 1
1
//! This module defines parallel operations that are implemented in
2
2
//! one way for the serial compiler, and another way the parallel compiler.
3
3
4
- #![ allow( dead_code) ]
5
-
6
4
use std:: any:: Any ;
7
5
use std:: panic:: { AssertUnwindSafe , catch_unwind, resume_unwind} ;
8
6
Original file line number Diff line number Diff line change @@ -531,7 +531,7 @@ enum EditorKind {
531
531
532
532
impl EditorKind {
533
533
// Used in `./tests.rs`.
534
- #[ allow ( dead_code ) ]
534
+ #[ cfg ( test ) ]
535
535
pub const ALL : & [ EditorKind ] = & [
536
536
EditorKind :: Emacs ,
537
537
EditorKind :: Helix ,
Original file line number Diff line number Diff line change @@ -390,7 +390,6 @@ macro_rules! bootstrap_tool {
390
390
;
391
391
) +) => {
392
392
#[ derive( PartialEq , Eq , Clone ) ]
393
- #[ allow( dead_code) ]
394
393
pub enum Tool {
395
394
$(
396
395
$name,
You can’t perform that action at this time.
0 commit comments