Skip to content

Commit c77d2ca

Browse files
committed
Warn on rustdoc::unescaped_backticks for core/alloc/std/test/proc_macro
Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 1b56d02 commit c77d2ca

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

library/alloc/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
#![warn(multiple_supertrait_upcastable)]
8787
#![allow(internal_features)]
8888
#![allow(rustdoc::redundant_explicit_links)]
89+
#![warn(rustdoc::unescaped_backticks)]
8990
#![deny(ffi_unwind_calls)]
9091
//
9192
// Library features:

library/core/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
#![deny(ffi_unwind_calls)]
104104
// Do not check link redundancy on bootstraping phase
105105
#![allow(rustdoc::redundant_explicit_links)]
106+
#![warn(rustdoc::unescaped_backticks)]
106107
//
107108
// Library features:
108109
// tidy-alphabetical-start

library/proc_macro/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#![recursion_limit = "256"]
3838
#![allow(internal_features)]
3939
#![deny(ffi_unwind_calls)]
40+
#![warn(rustdoc::unescaped_backticks)]
4041

4142
#[unstable(feature = "proc_macro_internals", issue = "27812")]
4243
#[doc(hidden)]

library/std/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@
254254
#![deny(fuzzy_provenance_casts)]
255255
#![deny(unsafe_op_in_unsafe_fn)]
256256
#![allow(rustdoc::redundant_explicit_links)]
257+
#![warn(rustdoc::unescaped_backticks)]
257258
// Ensure that std can be linked against panic_abort despite compiled with `-C panic=unwind`
258259
#![deny(ffi_unwind_calls)]
259260
// std may use features in a platform-specific way

library/test/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#![feature(panic_can_unwind)]
2525
#![feature(test)]
2626
#![allow(internal_features)]
27+
#![warn(rustdoc::unescaped_backticks)]
2728

2829
pub use self::bench::{black_box, Bencher};
2930
pub use self::console::run_tests_console;

0 commit comments

Comments
 (0)