Skip to content

Commit 7ed6bd9

Browse files
authored
Rollup merge of #143572 - yotamofek:pr/unused-allow-attrs, r=fee1-dead
Remove unused allow attrs These `#[allow]`s seem to be unused (at least according to `x check`, didn't run `x test` locally). Let's clean them up! 🧹
2 parents b6777b1 + 3b48407 commit 7ed6bd9

File tree

10 files changed

+0
-15
lines changed

10 files changed

+0
-15
lines changed

compiler/rustc_codegen_gcc/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#![doc(rust_logo)]
2020
#![feature(rustdoc_internals)]
2121
#![feature(rustc_private)]
22-
#![allow(broken_intra_doc_links)]
2322
#![recursion_limit = "256"]
2423
#![warn(rust_2018_idioms)]
2524
#![warn(unused_lifetimes)]

compiler/rustc_codegen_llvm/src/llvm/enzyme_ffi.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![allow(non_camel_case_types)]
21
#![expect(dead_code)]
32

43
use libc::{c_char, c_uint};

compiler/rustc_errors/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
//! This module contains the code for creating and emitting diagnostics.
44
55
// tidy-alphabetical-start
6-
#![allow(incomplete_features)]
76
#![allow(internal_features)]
87
#![allow(rustc::diagnostic_outside_of_impl)]
98
#![allow(rustc::direct_use_of_rustc_type_ir)]

compiler/rustc_infer/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
1515
// tidy-alphabetical-start
1616
#![allow(internal_features)]
17-
#![allow(rustc::diagnostic_outside_of_impl)]
1817
#![allow(rustc::direct_use_of_rustc_type_ir)]
19-
#![allow(rustc::untranslatable_diagnostic)]
2018
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
2119
#![doc(rust_logo)]
2220
#![feature(assert_matches)]

compiler/rustc_lint/src/early/diagnostics.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#![allow(rustc::diagnostic_outside_of_impl)]
2-
#![allow(rustc::untranslatable_diagnostic)]
3-
41
use std::borrow::Cow;
52

63
use rustc_ast::util::unicode::TEXT_FLOW_CONTROL_CHARS;

compiler/rustc_lint/src/lints.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![allow(rustc::diagnostic_outside_of_impl)]
21
#![allow(rustc::untranslatable_diagnostic)]
32
use std::num::NonZero;
43

compiler/rustc_middle/src/arena.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![allow(rustc::usage_of_ty_tykind)]
2-
31
/// This higher-order macro declares a list of types which can be allocated by `Arena`.
42
///
53
/// Specifying the `decode` modifier will add decode impls for `&T` and `&[T]` where `T` is the type

compiler/rustc_parse/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! The main parser interface.
22
33
// tidy-alphabetical-start
4-
#![allow(internal_features)]
54
#![allow(rustc::diagnostic_outside_of_impl)]
65
#![allow(rustc::untranslatable_diagnostic)]
76
#![feature(assert_matches)]

compiler/rustc_query_impl/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
33
// tidy-alphabetical-start
44
#![allow(internal_features)]
5-
#![allow(unused_parens)]
65
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
76
#![doc(rust_logo)]
87
#![feature(min_specialization)]

src/librustdoc/json/conversions.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
//! the `clean` types but with some fields removed or stringified to simplify the output and not
33
//! expose unstable compiler internals.
44
5-
#![allow(rustc::default_hash_types)]
6-
75
use rustc_abi::ExternAbi;
86
use rustc_ast::ast;
97
use rustc_attr_data_structures::{self as attrs, DeprecatedSince};

0 commit comments

Comments
 (0)