Skip to content

Commit 923f22a

Browse files
Rollup merge of #163136 - mejrs:lint_maintenance, r=jhpratt
library: prune allowed lints
2 parents 1c6030f + 16ede10 commit 923f22a

13 files changed

Lines changed: 19 additions & 31 deletions

File tree

‎library/alloc/src/alloc.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,6 @@ pub const fn handle_alloc_error(layout: Layout) -> ! {
663663

664664
#[cfg(not(no_global_oom_handling))]
665665
#[doc(hidden)]
666-
#[allow(unused_attributes)]
667666
#[unstable(feature = "alloc_internals", issue = "none")]
668667
pub mod __alloc_error_handler {
669668
// called via generated `__rust_alloc_error_handler` if there is no

‎library/alloc/src/lib.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
5959
#![allow(unused_features)]
6060
#![allow(incomplete_features)]
61-
#![allow(unused_attributes)]
6261
#![expect(clippy::partialeq_ne_impl, reason = "we need to implement ne for a lot of alloc types")]
6362
#![stable(feature = "alloc", since = "1.36.0")]
6463
#![doc(

‎library/alloctests/lib.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![cfg(test)]
2-
#![allow(unused_attributes)]
32
#![unstable(feature = "alloctests", issue = "none")]
43
#![no_std]
54
// Lints:

‎library/core/src/alloc/mod.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub use self::layout::Layout;
1515
note = "Name does not follow std convention, use LayoutError",
1616
suggestion = "LayoutError"
1717
)]
18-
#[allow(deprecated, deprecated_in_future)]
18+
#[allow(deprecated)]
1919
pub use self::layout::LayoutErr;
2020
#[stable(feature = "alloc_layout_error", since = "1.50.0")]
2121
pub use self::layout::LayoutError;

‎library/core/src/lib.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,6 @@ pub mod primitive;
367367
unused_imports,
368368
unsafe_op_in_unsafe_fn,
369369
ambiguous_glob_reexports,
370-
deprecated_in_future,
371370
unreachable_pub,
372371
// FIXME: stdach is a submodule so clippy lints should be fixed (and ideally enforced) there
373372
clippy::all,

‎library/core/src/num/int_macros.rs‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2485,7 +2485,6 @@ macro_rules! int_impl {
24852485
#[rustc_const_stable(feature = "const_int_methods", since = "1.32.0")]
24862486
#[must_use = "this returns the result of the operation, \
24872487
without modifying the original"]
2488-
#[allow(unused_attributes)]
24892488
#[inline]
24902489
pub const fn wrapping_abs(self) -> Self {
24912490
if self.is_negative() {
@@ -2978,7 +2977,6 @@ macro_rules! int_impl {
29782977
#[rustc_const_stable(feature = "const_int_methods", since = "1.32.0")]
29792978
#[must_use = "this returns the result of the operation, \
29802979
without modifying the original"]
2981-
#[allow(unused_attributes)]
29822980
pub const fn overflowing_neg(self) -> (Self, bool) {
29832981
if intrinsics::unlikely(self == Self::MIN) {
29842982
(Self::MIN, true)
@@ -3630,7 +3628,6 @@ macro_rules! int_impl {
36303628
/// ```
36313629
#[stable(feature = "rust1", since = "1.0.0")]
36323630
#[rustc_const_stable(feature = "const_int_methods", since = "1.32.0")]
3633-
#[allow(unused_attributes)]
36343631
#[must_use = "this returns the result of the operation, \
36353632
without modifying the original"]
36363633
#[inline]

‎library/core/src/panic/panic_info.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl<'a> PanicInfo<'a> {
106106
/// [`std::panic::PanicHookInfo::payload`]: ../../std/panic/struct.PanicHookInfo.html#method.payload
107107
#[deprecated(since = "1.81.0", note = "this never returns anything useful")]
108108
#[stable(feature = "panic_hooks", since = "1.10.0")]
109-
#[allow(deprecated, deprecated_in_future)]
109+
#[allow(deprecated)]
110110
pub fn payload(&self) -> &(dyn crate::any::Any + Send) {
111111
struct NoPayload;
112112
&NoPayload

‎library/core/src/str/mod.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,6 @@ impl str {
510510
#[rustc_const_stable(feature = "str_as_bytes", since = "1.39.0")]
511511
#[must_use]
512512
#[inline(always)]
513-
#[allow(unused_attributes)]
514513
pub const fn as_bytes(&self) -> &[u8] {
515514
// SAFETY: const sound because we transmute two types with the same layout
516515
unsafe { mem::transmute(self) }

‎library/std/src/alloc.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,6 @@ pub fn rust_oom(layout: Layout) -> ! {
444444

445445
#[cfg(not(test))]
446446
#[doc(hidden)]
447-
#[allow(unused_attributes)]
448447
#[unstable(feature = "alloc_internals", issue = "none")]
449448
pub mod __default_lib_allocator {
450449
use super::Layout;

‎library/std/src/env.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ impl fmt::Display for JoinPathsError {
592592

593593
#[stable(feature = "env", since = "1.0.0")]
594594
impl Error for JoinPathsError {
595-
#[allow(deprecated, deprecated_in_future)]
595+
#[allow(deprecated)]
596596
fn description(&self) -> &str {
597597
self.inner.description()
598598
}

0 commit comments

Comments
 (0)