Skip to content

Commit b500b01

Browse files
committed
Add the rustc:: lint prefix
1 parent 848a6ad commit b500b01

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

library/alloc/src/alloc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ pub mod __alloc_error_handler {
419419
// called via generated `__rust_alloc_error_handler` if there is no
420420
// `#[alloc_error_handler]`.
421421
#[rustc_std_internal_symbol]
422-
#[allow(missing_panic_entrypoint)]
422+
#[allow(rustc::missing_panic_entrypoint)]
423423
pub unsafe fn __rdl_alloc_error_handler(size: usize, _align: usize) -> ! {
424424
core::panicking::panic_nounwind_fmt(
425425
format_args!("memory allocation of {size} bytes failed"),

library/alloc/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
#![warn(rustdoc::unescaped_backticks)]
8383
#![deny(ffi_unwind_calls)]
8484
#![warn(unreachable_pub)]
85-
#![warn(missing_panic_entrypoint)]
85+
#![warn(rustc::missing_panic_entrypoint)]
8686
//
8787
// Library features:
8888
// tidy-alphabetical-start

library/core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
#![warn(multiple_supertrait_upcastable)]
8989
#![allow(internal_features)]
9090
#![deny(ffi_unwind_calls)]
91-
#![warn(missing_panic_entrypoint)]
91+
#![warn(rustc::missing_panic_entrypoint)]
9292
#![warn(unreachable_pub)]
9393
// Do not check link redundancy on bootstrapping phase
9494
#![allow(rustdoc::redundant_explicit_links)]

library/core/src/panicking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ pub fn assert_matches_failed<T: fmt::Debug + ?Sized>(
372372

373373
/// Non-generic version of the above functions, to avoid code bloat.
374374
#[track_caller]
375-
#[allow(missing_panic_entrypoint)]
375+
#[rustc_panic_entrypoint]
376376
fn assert_failed_inner(
377377
kind: AssertKind,
378378
left: &dyn fmt::Debug,

0 commit comments

Comments
 (0)