Fix Self keyword doc URL conflict on case insensitive file systems
This commit is contained in:
parent
aef11409b4
commit
f35e587db4
1 changed files with 5 additions and 1 deletions
|
@ -1310,7 +1310,11 @@ mod return_keyword {}
|
|||
/// [Reference]: ../reference/items/associated-items.html#methods
|
||||
mod self_keyword {}
|
||||
|
||||
#[doc(keyword = "Self")]
|
||||
// FIXME: Once rustdoc can handle URL conflicts on case insensitive file systems, we can remove the
|
||||
// three next lines and put back: `#[doc(keyword = "Self")]`.
|
||||
#[doc(alias = "Self")]
|
||||
#[allow(rustc::existing_doc_keyword)]
|
||||
#[doc(keyword = "SelfTy")]
|
||||
//
|
||||
/// The implementing type within a [`trait`] or [`impl`] block, or the current type within a type
|
||||
/// definition.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue