diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-03-30 16:13:11 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-03-30 16:37:13 +0200 |
| commit | f35e587db4039fc255c876e5568b5db407977411 (patch) | |
| tree | 3a410f9387a046e54b6ad41b31c81471c516d7f2 | |
| parent | aef11409b43a533f4e59ffb9b0efcb619c6e6879 (diff) | |
| download | rust-f35e587db4039fc255c876e5568b5db407977411.tar.gz rust-f35e587db4039fc255c876e5568b5db407977411.zip | |
Fix Self keyword doc URL conflict on case insensitive file systems
| -rw-r--r-- | library/std/src/keyword_docs.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/library/std/src/keyword_docs.rs b/library/std/src/keyword_docs.rs index e64cbc18bf7..890fa132bea 100644 --- a/library/std/src/keyword_docs.rs +++ b/library/std/src/keyword_docs.rs @@ -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. |
