From 80254cd2f120eb50cceb771a8fbe16812e41e543 Mon Sep 17 00:00:00 2001 From: Miguel Ojeda Date: Sun, 28 Jul 2024 16:37:58 +0200 Subject: [PATCH] Warn on `rustdoc::unescaped_backticks` for `core/alloc/std/test/proc_macro` They are all clean now, so enable the lint to keep them clean going forward. Signed-off-by: Miguel Ojeda --- alloc/src/lib.rs | 1 + core/src/lib.rs | 1 + proc_macro/src/lib.rs | 1 + std/src/lib.rs | 1 + test/src/lib.rs | 1 + 5 files changed, 5 insertions(+) diff --git a/alloc/src/lib.rs b/alloc/src/lib.rs index 3b039786eb5e7..6c58594605004 100644 --- a/alloc/src/lib.rs +++ b/alloc/src/lib.rs @@ -86,6 +86,7 @@ #![warn(multiple_supertrait_upcastable)] #![allow(internal_features)] #![allow(rustdoc::redundant_explicit_links)] +#![warn(rustdoc::unescaped_backticks)] #![deny(ffi_unwind_calls)] // // Library features: diff --git a/core/src/lib.rs b/core/src/lib.rs index e8f08db94164d..a3eca34a35cfc 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -103,6 +103,7 @@ #![deny(ffi_unwind_calls)] // Do not check link redundancy on bootstraping phase #![allow(rustdoc::redundant_explicit_links)] +#![warn(rustdoc::unescaped_backticks)] // // Library features: // tidy-alphabetical-start diff --git a/proc_macro/src/lib.rs b/proc_macro/src/lib.rs index 57247359fbf29..10dcaa8cd3aaf 100644 --- a/proc_macro/src/lib.rs +++ b/proc_macro/src/lib.rs @@ -37,6 +37,7 @@ #![recursion_limit = "256"] #![allow(internal_features)] #![deny(ffi_unwind_calls)] +#![warn(rustdoc::unescaped_backticks)] #[unstable(feature = "proc_macro_internals", issue = "27812")] #[doc(hidden)] diff --git a/std/src/lib.rs b/std/src/lib.rs index 353fd8d2de8c0..7240605bfd654 100644 --- a/std/src/lib.rs +++ b/std/src/lib.rs @@ -254,6 +254,7 @@ #![deny(fuzzy_provenance_casts)] #![deny(unsafe_op_in_unsafe_fn)] #![allow(rustdoc::redundant_explicit_links)] +#![warn(rustdoc::unescaped_backticks)] // Ensure that std can be linked against panic_abort despite compiled with `-C panic=unwind` #![deny(ffi_unwind_calls)] // std may use features in a platform-specific way diff --git a/test/src/lib.rs b/test/src/lib.rs index 71cb796b93705..db87d923de0e5 100644 --- a/test/src/lib.rs +++ b/test/src/lib.rs @@ -24,6 +24,7 @@ #![feature(panic_can_unwind)] #![feature(test)] #![allow(internal_features)] +#![warn(rustdoc::unescaped_backticks)] pub use self::bench::{black_box, Bencher}; pub use self::console::run_tests_console;