Skip to content

Commit 88c274f

Browse files
authored
Unrolled build for rust-lang#127484
Rollup merge of rust-lang#127484 - ShE3py:rustdoc-doc-alias-whitespace-doc, r=fmease `#[doc(alias)]`'s doc: say that ASCII spaces are allowed PR rust-lang#77570 allowed ASCII spaces in doc aliases, but the documentation wasn't updated to say so. The code checking the aliases: https://github.com/rust-lang/rust/blob/7fdefb804ec300fb605039522a7c0dfc9e7dc366/compiler/rustc_passes/src/check_attr.rs#L693-L704 ``````@rustbot`````` label +A-docs
2 parents 7caf672 + ec662e7 commit 88c274f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/doc/rustdoc/src/advanced-features.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ pub struct BigX;
8080
Then, when looking for it through the `rustdoc` search, if you enter "x" or
8181
"big", search will show the `BigX` struct first.
8282

83-
There are some limitations on the doc alias names though: you can't use `"` or whitespace.
83+
There are some limitations on the doc alias names though: they cannot contain quotes (`'`, `"`)
84+
or most whitespace. ASCII space is allowed if it does not start or end the alias.
8485

8586
You can add multiple aliases at the same time by using a list:
8687

0 commit comments

Comments
 (0)