Skip to content

Commit

Permalink
Fix Self keyword doc URL conflict on case insensitive file systems
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Mar 30, 2021
1 parent aef1140 commit f35e587
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion library/std/src/keyword_docs.rs
Expand Up @@ -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.
Expand Down

0 comments on commit f35e587

Please sign in to comment.