Skip to content

Commit cc96bda

Browse files
Rollup merge of rust-lang#128307 - ojeda:unescaped_backticks, r=GuillaumeGomez
Clean and enable `rustdoc::unescaped_backticks` for `core/alloc/std/test/proc_macro` I am not sure if the lint is supposed to be "ready enough" (since it is `allow` by default), but it does catch a couple issues in `core` (`alloc`, `std`, `test` and `proc_macro` are already clean), so I propose making it `warn` in all the crates rendered in the website. Cc: `@GuillaumeGomez`
2 parents 46f58aa + c77d2ca commit cc96bda

File tree

7 files changed

+7
-2
lines changed

7 files changed

+7
-2
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/core/src/ops/deref.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ impl<T: ?Sized> DerefMut for &mut T {
282282
/// FIXME(deref_patterns): The precise semantics are undecided; the rough idea is that
283283
/// successive calls to `deref`/`deref_mut` without intermediate mutation should be
284284
/// idempotent, in the sense that they return the same value as far as pattern-matching
285-
/// is concerned. Calls to `deref`/`deref_mut`` must leave the pointer itself likewise
285+
/// is concerned. Calls to `deref`/`deref_mut` must leave the pointer itself likewise
286286
/// unchanged.
287287
#[unstable(feature = "deref_pure_trait", issue = "87121")]
288288
#[lang = "deref_pure"]

library/core/src/ptr/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ where
786786
///
787787
/// The caller must also ensure that the memory the pointer (non-transitively) points to is never
788788
/// written to (except inside an `UnsafeCell`) using this pointer or any pointer derived from it. If
789-
/// you need to mutate the pointee, use [`from_mut`]`. Specifically, to turn a mutable reference `m:
789+
/// you need to mutate the pointee, use [`from_mut`]. Specifically, to turn a mutable reference `m:
790790
/// &mut T` into `*const T`, prefer `from_mut(m).cast_const()` to obtain a pointer that can later be
791791
/// used for mutation.
792792
///

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)