Rollup merge of #142868 - klensy:dc, r=oli-obk

remove few allow(dead_code)

Few from serial/parallel compiler leftovers and few from bootstrap.
This commit is contained in:
Guillaume Gomez 2025-06-22 17:35:36 +02:00 committed by GitHub
commit f1fa46d3ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 1 additions and 6 deletions

View file

@ -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)]

View file

@ -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};

View file

@ -531,7 +531,7 @@ enum EditorKind {
impl EditorKind {
// Used in `./tests.rs`.
#[allow(dead_code)]
#[cfg(test)]
pub const ALL: &[EditorKind] = &[
EditorKind::Emacs,
EditorKind::Helix,

View file

@ -390,7 +390,6 @@ macro_rules! bootstrap_tool {
;
)+) => {
#[derive(PartialEq, Eq, Clone)]
#[allow(dead_code)]
pub enum Tool {
$(
$name,