Skip to content

Commit ca912ec

Browse files
authored
Unrolled build for #142868
Rollup merge of #142868 - klensy:dc, r=oli-obk remove few allow(dead_code) Few from serial/parallel compiler leftovers and few from bootstrap.
2 parents c2ec753 + d092dc9 commit ca912ec

File tree

4 files changed

+1
-6
lines changed

4 files changed

+1
-6
lines changed

compiler/rustc_data_structures/src/sync/lock.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//! This module implements a lock which only uses synchronization if `might_be_dyn_thread_safe` is true.
22
//! It implements `DynSend` and `DynSync` instead of the typical `Send` and `Sync` traits.
33
4-
#![allow(dead_code)]
5-
64
use std::fmt;
75

86
#[derive(Clone, Copy, PartialEq)]

compiler/rustc_data_structures/src/sync/parallel.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//! This module defines parallel operations that are implemented in
22
//! one way for the serial compiler, and another way the parallel compiler.
33
4-
#![allow(dead_code)]
5-
64
use std::any::Any;
75
use std::panic::{AssertUnwindSafe, catch_unwind, resume_unwind};
86

src/bootstrap/src/core/build_steps/setup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ enum EditorKind {
531531

532532
impl EditorKind {
533533
// Used in `./tests.rs`.
534-
#[allow(dead_code)]
534+
#[cfg(test)]
535535
pub const ALL: &[EditorKind] = &[
536536
EditorKind::Emacs,
537537
EditorKind::Helix,

src/bootstrap/src/core/build_steps/tool.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,6 @@ macro_rules! bootstrap_tool {
390390
;
391391
)+) => {
392392
#[derive(PartialEq, Eq, Clone)]
393-
#[allow(dead_code)]
394393
pub enum Tool {
395394
$(
396395
$name,

0 commit comments

Comments
 (0)