Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stabilize #[doc_alias = "..."] #63236

Closed

Conversation

GuillaumeGomez
Copy link
Member

Fixes #63222

cc @rust-lang/rustdoc
r? @ollie27

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 3, 2019
@rust-highfive
Copy link
Collaborator

The job mingw-check of your PR failed (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
2019-08-03T12:00:03.6012108Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-08-03T12:00:03.6214963Z ##[command]git config gc.auto 0
2019-08-03T12:00:03.6283877Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-08-03T12:00:03.6352742Z ##[command]git config --get-all http.proxy
2019-08-03T12:00:03.6486654Z ##[command]git -c http.extraheader="AUTHORIZATION: basic ***" fetch --force --tags --prune --progress --no-recurse-submodules --depth=2 origin +refs/heads/*:refs/remotes/origin/* +refs/pull/63236/merge:refs/remotes/pull/63236/merge
---
2019-08-03T12:00:43.5201273Z do so (now or later) by using -b with the checkout command again. Example:
2019-08-03T12:00:43.5201312Z 
2019-08-03T12:00:43.5201561Z   git checkout -b <new-branch-name>
2019-08-03T12:00:43.5201615Z 
2019-08-03T12:00:43.5201673Z HEAD is now at 23c235e38 Merge 95f9be04b530c0ea162cea7fb2b05a2d546e4a3c into d7270712cb446aad0817040bbca73a8d024f67b0
2019-08-03T12:00:43.5370163Z ##[section]Starting: Collect CPU-usage statistics in the background
2019-08-03T12:00:43.5373546Z ==============================================================================
2019-08-03T12:00:43.5373617Z Task         : Bash
2019-08-03T12:00:43.5373674Z Description  : Run a Bash script on macOS, Linux, or Windows
---
2019-08-03T12:05:39.7285431Z    |
2019-08-03T12:05:39.7285905Z 76 | #![feature(const_generics)]
2019-08-03T12:05:39.7286351Z    |            ^^^^^^^^^^^^^^
2019-08-03T12:05:39.7286564Z 
2019-08-03T12:05:41.6161491Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6162153Z     |
2019-08-03T12:05:41.6162153Z     |
2019-08-03T12:05:41.6162418Z 305 | #[doc(alias = "?")]
2019-08-03T12:05:41.6163019Z     |
2019-08-03T12:05:41.6163019Z     |
2019-08-03T12:05:41.6163499Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6163841Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6163886Z 
2019-08-03T12:05:41.6521678Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6522078Z   --> src/libcore/ops/arith.rs:80:1
2019-08-03T12:05:41.6522304Z    |
2019-08-03T12:05:41.6522669Z 80 | #[doc(alias = "+")]
2019-08-03T12:05:41.6523266Z    |
2019-08-03T12:05:41.6523266Z    |
2019-08-03T12:05:41.6523701Z    = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6524057Z    = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6524098Z 
2019-08-03T12:05:41.6524352Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6524715Z    --> src/libcore/ops/arith.rs:178:1
2019-08-03T12:05:41.6524921Z     |
2019-08-03T12:05:41.6525171Z 178 | #[doc(alias = "-")]
2019-08-03T12:05:41.6525643Z     |
2019-08-03T12:05:41.6525643Z     |
2019-08-03T12:05:41.6538544Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6539653Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6539906Z 
2019-08-03T12:05:41.6540270Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6540535Z    --> src/libcore/ops/arith.rs:298:1
2019-08-03T12:05:41.6540753Z     |
2019-08-03T12:05:41.6597977Z 298 | #[doc(alias = "*")]
2019-08-03T12:05:41.6598730Z     |
2019-08-03T12:05:41.6598730Z     |
2019-08-03T12:05:41.6599597Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6599958Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6600002Z 
2019-08-03T12:05:41.6600423Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6600893Z    --> src/libcore/ops/arith.rs:422:1
2019-08-03T12:05:41.6601172Z     |
2019-08-03T12:05:41.6601430Z 422 | #[doc(alias = "/")]
2019-08-03T12:05:41.6601923Z     |
2019-08-03T12:05:41.6601923Z     |
2019-08-03T12:05:41.6602390Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6602790Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6602826Z 
2019-08-03T12:05:41.6603048Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6603286Z    --> src/libcore/ops/arith.rs:507:1
2019-08-03T12:05:41.6603493Z     |
2019-08-03T12:05:41.6603719Z 507 | #[doc(alias = "%")]
2019-08-03T12:05:41.6604141Z     |
2019-08-03T12:05:41.6604141Z     |
2019-08-03T12:05:41.6604430Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6604717Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6604753Z 
2019-08-03T12:05:41.6604973Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6605211Z    --> src/libcore/ops/arith.rs:607:1
2019-08-03T12:05:41.6605396Z     |
2019-08-03T12:05:41.6605621Z 607 | #[doc(alias = "-")]
2019-08-03T12:05:41.6606066Z     |
2019-08-03T12:05:41.6606066Z     |
2019-08-03T12:05:41.6606352Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6606641Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6606676Z 
2019-08-03T12:05:41.6606896Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6607132Z    --> src/libcore/ops/arith.rs:684:1
2019-08-03T12:05:41.6607316Z     |
2019-08-03T12:05:41.6607541Z 684 | #[doc(alias = "+")]
2019-08-03T12:05:41.6608110Z     |
2019-08-03T12:05:41.6608110Z     |
2019-08-03T12:05:41.6608424Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6608936Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6608976Z 
2019-08-03T12:05:41.6609716Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6610003Z    --> src/libcore/ops/arith.rs:685:1
2019-08-03T12:05:41.6610216Z     |
2019-08-03T12:05:41.6610473Z 685 | #[doc(alias = "+=")]
2019-08-03T12:05:41.6610962Z     |
2019-08-03T12:05:41.6610962Z     |
2019-08-03T12:05:41.6611464Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6611847Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6611889Z 
2019-08-03T12:05:41.6612164Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6612649Z    --> src/libcore/ops/arith.rs:740:1
2019-08-03T12:05:41.6612845Z     |
2019-08-03T12:05:41.6613193Z 740 | #[doc(alias = "-")]
2019-08-03T12:05:41.6613617Z     |
2019-08-03T12:05:41.6613617Z     |
2019-08-03T12:05:41.6613929Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6614322Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6614367Z 
2019-08-03T12:05:41.6614620Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6614857Z    --> src/libcore/ops/arith.rs:741:1
2019-08-03T12:05:41.6618703Z     |
2019-08-03T12:05:41.6619624Z 741 | #[doc(alias = "-=")]
2019-08-03T12:05:41.6620115Z     |
2019-08-03T12:05:41.6620115Z     |
2019-08-03T12:05:41.6620497Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6620816Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6620858Z 
2019-08-03T12:05:41.6621146Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6621412Z    --> src/libcore/ops/arith.rs:787:1
2019-08-03T12:05:41.6621629Z     |
2019-08-03T12:05:41.6621904Z 787 | #[doc(alias = "*")]
2019-08-03T12:05:41.6622601Z     |
2019-08-03T12:05:41.6622601Z     |
2019-08-03T12:05:41.6622906Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6623174Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6623209Z 
2019-08-03T12:05:41.6623447Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6623674Z    --> src/libcore/ops/arith.rs:788:1
2019-08-03T12:05:41.6624047Z     |
2019-08-03T12:05:41.6624296Z 788 | #[doc(alias = "*=")]
2019-08-03T12:05:41.6624700Z     |
2019-08-03T12:05:41.6624700Z     |
2019-08-03T12:05:41.6625016Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6625288Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6625323Z 
2019-08-03T12:05:41.6625560Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6626048Z    --> src/libcore/ops/arith.rs:834:1
2019-08-03T12:05:41.6626246Z     |
2019-08-03T12:05:41.6626765Z 834 | #[doc(alias = "/")]
2019-08-03T12:05:41.6627246Z     |
2019-08-03T12:05:41.6627246Z     |
2019-08-03T12:05:41.6627588Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6627876Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6627936Z 
2019-08-03T12:05:41.6628181Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6628416Z    --> src/libcore/ops/arith.rs:835:1
2019-08-03T12:05:41.6628730Z     |
2019-08-03T12:05:41.6629514Z 835 | #[doc(alias = "/=")]
2019-08-03T12:05:41.6630045Z     |
2019-08-03T12:05:41.6630045Z     |
2019-08-03T12:05:41.6630419Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6630732Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6630790Z 
2019-08-03T12:05:41.6631046Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6631299Z    --> src/libcore/ops/arith.rs:884:1
2019-08-03T12:05:41.6631531Z     |
2019-08-03T12:05:41.6631792Z 884 | #[doc(alias = "%")]
2019-08-03T12:05:41.6632270Z     |
2019-08-03T12:05:41.6632270Z     |
2019-08-03T12:05:41.6632816Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6633086Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6633140Z 
2019-08-03T12:05:41.6633364Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6633584Z    --> src/libcore/ops/arith.rs:885:1
2019-08-03T12:05:41.6633783Z     |
2019-08-03T12:05:41.6634010Z 885 | #[doc(alias = "%=")]
2019-08-03T12:05:41.6634430Z     |
2019-08-03T12:05:41.6634430Z     |
2019-08-03T12:05:41.6634718Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6635159Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6635219Z 
2019-08-03T12:05:41.6635448Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6635666Z    --> src/libcore/ops/bit.rs:113:1
2019-08-03T12:05:41.6635868Z     |
2019-08-03T12:05:41.6636091Z 113 | #[doc(alias = "&")]
2019-08-03T12:05:41.6636517Z     |
2019-08-03T12:05:41.6636517Z     |
2019-08-03T12:05:41.6636806Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6637091Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6637134Z 
2019-08-03T12:05:41.6637441Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6637694Z    --> src/libcore/ops/bit.rs:197:1
2019-08-03T12:05:41.6638021Z     |
2019-08-03T12:05:41.6638260Z 197 | #[doc(alias = "|")]
2019-08-03T12:05:41.6638831Z     |
2019-08-03T12:05:41.6638831Z     |
2019-08-03T12:05:41.6639612Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6639957Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6639998Z 
2019-08-03T12:05:41.6640251Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6640527Z    --> src/libcore/ops/bit.rs:284:1
2019-08-03T12:05:41.6640766Z     |
2019-08-03T12:05:41.6641024Z 284 | #[doc(alias = "^")]
2019-08-03T12:05:41.6641510Z     |
2019-08-03T12:05:41.6641510Z     |
2019-08-03T12:05:41.6641835Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6642155Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6642195Z 
2019-08-03T12:05:41.6642449Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6642817Z    --> src/libcore/ops/bit.rs:372:1
2019-08-03T12:05:41.6643026Z     |
2019-08-03T12:05:41.6643295Z 372 | #[doc(alias = "<<")]
2019-08-03T12:05:41.6643767Z     |
2019-08-03T12:05:41.6643767Z     |
2019-08-03T12:05:41.6644203Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6644527Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6644567Z 
2019-08-03T12:05:41.6657969Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6667691Z    --> src/libcore/ops/bit.rs:481:1
2019-08-03T12:05:41.6668225Z     |
2019-08-03T12:05:41.6668760Z 481 | #[doc(alias = ">>")]
2019-08-03T12:05:41.6687832Z     |
2019-08-03T12:05:41.6687832Z     |
2019-08-03T12:05:41.6688536Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6689418Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6689685Z 
2019-08-03T12:05:41.6690247Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6690697Z    --> src/libcore/ops/bit.rs:597:1
2019-08-03T12:05:41.6691086Z     |
2019-08-03T12:05:41.6691554Z 597 | #[doc(alias = "&=")]
2019-08-03T12:05:41.6692411Z     |
2019-08-03T12:05:41.6692411Z     |
2019-08-03T12:05:41.6693117Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6693723Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6693908Z 
2019-08-03T12:05:41.6694308Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6694748Z    --> src/libcore/ops/bit.rs:646:1
2019-08-03T12:05:41.6695132Z     |
2019-08-03T12:05:41.6695555Z 646 | #[doc(alias = "|=")]
2019-08-03T12:05:41.6696386Z     |
2019-08-03T12:05:41.6696386Z     |
2019-08-03T12:05:41.6697138Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6697658Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6697823Z 
2019-08-03T12:05:41.6698218Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6698728Z    --> src/libcore/ops/bit.rs:695:1
2019-08-03T12:05:41.6699633Z     |
2019-08-03T12:05:41.6700193Z 695 | #[doc(alias = "^=")]
2019-08-03T12:05:41.6701029Z     |
2019-08-03T12:05:41.6701029Z     |
2019-08-03T12:05:41.6701551Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6702079Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6702263Z 
2019-08-03T12:05:41.6712202Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6712677Z    --> src/libcore/ops/bit.rs:742:1
2019-08-03T12:05:41.6712956Z     |
2019-08-03T12:05:41.6713230Z 742 | #[doc(alias = "<<=")]
2019-08-03T12:05:41.6713728Z     |
2019-08-03T12:05:41.6713728Z     |
2019-08-03T12:05:41.6714082Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6714414Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6714461Z 
2019-08-03T12:05:41.6714734Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6715191Z    --> src/libcore/ops/bit.rs:810:1
2019-08-03T12:05:41.6715429Z     |
2019-08-03T12:05:41.6715684Z 810 | #[doc(alias = ">>=")]
2019-08-03T12:05:41.6716166Z     |
2019-08-03T12:05:41.6716166Z     |
2019-08-03T12:05:41.6716501Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6716829Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6716870Z 
2019-08-03T12:05:41.6743661Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6744034Z   --> src/libcore/ops/deref.rs:61:1
2019-08-03T12:05:41.6744446Z    |
2019-08-03T12:05:41.6744770Z 61 | #[doc(alias = "*")]
2019-08-03T12:05:41.6745322Z    |
2019-08-03T12:05:41.6745322Z    |
2019-08-03T12:05:41.6745840Z    = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6746322Z    = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6746365Z 
2019-08-03T12:05:41.6746609Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6746868Z   --> src/libcore/ops/deref.rs:62:1
2019-08-03T12:05:41.6747069Z    |
2019-08-03T12:05:41.6747324Z 62 | #[doc(alias = "&*")]
2019-08-03T12:05:41.6747852Z    |
2019-08-03T12:05:41.6747852Z    |
2019-08-03T12:05:41.6748197Z    = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6748491Z    = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6748529Z 
2019-08-03T12:05:41.6755713Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6756051Z    --> src/libcore/ops/deref.rs:158:1
2019-08-03T12:05:41.6756269Z     |
2019-08-03T12:05:41.6756524Z 158 | #[doc(alias = "*")]
2019-08-03T12:05:41.6757160Z     |
2019-08-03T12:05:41.6757160Z     |
2019-08-03T12:05:41.6757552Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6757879Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6757922Z 
2019-08-03T12:05:41.6838431Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6838902Z   --> src/libcore/ops/index.rs:58:1
2019-08-03T12:05:41.6855909Z    |
2019-08-03T12:05:41.6856347Z 58 | #[doc(alias = "]")]
2019-08-03T12:05:41.6856867Z    |
2019-08-03T12:05:41.6856867Z    |
2019-08-03T12:05:41.6857273Z    = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6857823Z    = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6857872Z 
2019-08-03T12:05:41.6858148Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6858523Z   --> src/libcore/ops/index.rs:59:1
2019-08-03T12:05:41.6858742Z    |
2019-08-03T12:05:41.6859366Z 59 | #[doc(alias = "[")]
2019-08-03T12:05:41.6859884Z    |
2019-08-03T12:05:41.6859884Z    |
2019-08-03T12:05:41.6860260Z    = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6860717Z    = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6860779Z 
2019-08-03T12:05:41.6861099Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6861356Z   --> src/libcore/ops/index.rs:60:1
2019-08-03T12:05:41.6861569Z    |
2019-08-03T12:05:41.6861846Z 60 | #[doc(alias = "[]")]
2019-08-03T12:05:41.6862320Z    |
2019-08-03T12:05:41.6862320Z    |
2019-08-03T12:05:41.6862683Z    = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6862998Z    = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6863039Z 
2019-08-03T12:05:41.6863335Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6863597Z    --> src/libcore/ops/index.rs:163:1
2019-08-03T12:05:41.6863923Z     |
2019-08-03T12:05:41.6864191Z 163 | #[doc(alias = "[")]
2019-08-03T12:05:41.6864650Z     |
2019-08-03T12:05:41.6864650Z     |
2019-08-03T12:05:41.6864989Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6865417Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6865457Z 
2019-08-03T12:05:41.6865903Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6866212Z    --> src/libcore/ops/index.rs:164:1
2019-08-03T12:05:41.6866442Z     |
2019-08-03T12:05:41.6866727Z 164 | #[doc(alias = "]")]
2019-08-03T12:05:41.6867199Z     |
2019-08-03T12:05:41.6867199Z     |
2019-08-03T12:05:41.6867555Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6867869Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6867911Z 
2019-08-03T12:05:41.6868185Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6868440Z    --> src/libcore/ops/index.rs:165:1
2019-08-03T12:05:41.6868654Z     |
2019-08-03T12:05:41.6870329Z 165 | #[doc(alias = "[]")]
2019-08-03T12:05:41.6870908Z     |
2019-08-03T12:05:41.6870908Z     |
2019-08-03T12:05:41.6871291Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6871610Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6871651Z 
2019-08-03T12:05:41.6871929Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6872183Z   --> src/libcore/ops/range.rs:41:1
2019-08-03T12:05:41.6872508Z    |
2019-08-03T12:05:41.6872781Z 41 | #[doc(alias = "..")]
2019-08-03T12:05:41.6873424Z    |
2019-08-03T12:05:41.6873424Z    |
2019-08-03T12:05:41.6873774Z    = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6874076Z    = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6874132Z 
2019-08-03T12:05:41.6874379Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6874622Z   --> src/libcore/ops/range.rs:73:1
2019-08-03T12:05:41.6874971Z    |
2019-08-03T12:05:41.6875238Z 73 | #[doc(alias = "..")]
2019-08-03T12:05:41.6875705Z    |
2019-08-03T12:05:41.6875705Z    |
2019-08-03T12:05:41.6876081Z    = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6876397Z    = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6876454Z 
2019-08-03T12:05:41.6876712Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6876965Z    --> src/libcore/ops/range.rs:178:1
2019-08-03T12:05:41.6877196Z     |
2019-08-03T12:05:41.6877460Z 178 | #[doc(alias = "..")]
2019-08-03T12:05:41.6877944Z     |
2019-08-03T12:05:41.6877944Z     |
2019-08-03T12:05:41.6878341Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6878682Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6878743Z 
2019-08-03T12:05:41.6879288Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6879577Z    --> src/libcore/ops/range.rs:262:1
2019-08-03T12:05:41.6879814Z     |
2019-08-03T12:05:41.6880079Z 262 | #[doc(alias = "..")]
2019-08-03T12:05:41.6880563Z     |
2019-08-03T12:05:41.6880563Z     |
2019-08-03T12:05:41.6880910Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6881224Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6881414Z 
2019-08-03T12:05:41.6881721Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6881983Z    --> src/libcore/ops/range.rs:332:1
2019-08-03T12:05:41.6882325Z     |
2019-08-03T12:05:41.6882582Z 332 | #[doc(alias = "..=")]
2019-08-03T12:05:41.6883056Z     |
2019-08-03T12:05:41.6883056Z     |
2019-08-03T12:05:41.6883382Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6883702Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6883741Z 
2019-08-03T12:05:41.6883988Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6884329Z    --> src/libcore/ops/range.rs:603:1
2019-08-03T12:05:41.6884598Z     |
2019-08-03T12:05:41.6884852Z 603 | #[doc(alias = "..=")]
2019-08-03T12:05:41.6885328Z     |
2019-08-03T12:05:41.6885328Z     |
2019-08-03T12:05:41.6885653Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6885974Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6886013Z 
2019-08-03T12:05:41.6886259Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6886501Z   --> src/libcore/ops/try.rs:21:1
2019-08-03T12:05:41.6886743Z    |
2019-08-03T12:05:41.6887001Z 21 | #[doc(alias = "?")]
2019-08-03T12:05:41.6887472Z    |
2019-08-03T12:05:41.6887472Z    |
2019-08-03T12:05:41.6887790Z    = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6888230Z    = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6888269Z 
2019-08-03T12:05:41.6888525Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6888791Z    --> src/libcore/cmp.rs:183:1
2019-08-03T12:05:41.6889298Z     |
2019-08-03T12:05:41.6889577Z 183 | #[doc(alias = "==")]
2019-08-03T12:05:41.6890104Z     |
2019-08-03T12:05:41.6890104Z     |
2019-08-03T12:05:41.6890451Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6890786Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6890828Z 
2019-08-03T12:05:41.6891084Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6891349Z    --> src/libcore/cmp.rs:184:1
2019-08-03T12:05:41.6891566Z     |
2019-08-03T12:05:41.6891826Z 184 | #[doc(alias = "!=")]
2019-08-03T12:05:41.6892315Z     |
2019-08-03T12:05:41.6892315Z     |
2019-08-03T12:05:41.6892827Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6893171Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6893212Z 
2019-08-03T12:05:41.6893568Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6893827Z    --> src/libcore/cmp.rs:242:1
2019-08-03T12:05:41.6894033Z     |
2019-08-03T12:05:41.6894283Z 242 | #[doc(alias = "==")]
2019-08-03T12:05:41.6894753Z     |
2019-08-03T12:05:41.6894753Z     |
2019-08-03T12:05:41.6895391Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6895885Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6895936Z 
2019-08-03T12:05:41.6896222Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6896493Z    --> src/libcore/cmp.rs:243:1
2019-08-03T12:05:41.6896708Z     |
2019-08-03T12:05:41.6896968Z 243 | #[doc(alias = "!=")]
2019-08-03T12:05:41.6897456Z     |
2019-08-03T12:05:41.6897456Z     |
2019-08-03T12:05:41.6897810Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6898236Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6898291Z 
2019-08-03T12:05:41.6898540Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6898921Z    --> src/libcore/cmp.rs:514:1
2019-08-03T12:05:41.6904039Z     |
2019-08-03T12:05:41.6904317Z 514 | #[doc(alias = "<")]
2019-08-03T12:05:41.6904816Z     |
2019-08-03T12:05:41.6904816Z     |
2019-08-03T12:05:41.6905464Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6947578Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6947653Z 
2019-08-03T12:05:41.6948014Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6948350Z    --> src/libcore/cmp.rs:515:1
2019-08-03T12:05:41.6948580Z     |
2019-08-03T12:05:41.6948849Z 515 | #[doc(alias = ">")]
2019-08-03T12:05:41.6949713Z     |
2019-08-03T12:05:41.6949713Z     |
2019-08-03T12:05:41.6950115Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6950448Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6950492Z 
2019-08-03T12:05:41.6950768Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6951023Z    --> src/libcore/cmp.rs:516:1
2019-08-03T12:05:41.6951506Z     |
2019-08-03T12:05:41.6951799Z 516 | #[doc(alias = "<=")]
2019-08-03T12:05:41.6952284Z     |
2019-08-03T12:05:41.6952284Z     |
2019-08-03T12:05:41.6952648Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6952969Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6953010Z 
2019-08-03T12:05:41.6953286Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6953541Z    --> src/libcore/cmp.rs:517:1
2019-08-03T12:05:41.6953761Z     |
2019-08-03T12:05:41.6954045Z 517 | #[doc(alias = ">=")]
2019-08-03T12:05:41.6954683Z     |
2019-08-03T12:05:41.6954683Z     |
2019-08-03T12:05:41.6955048Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6955366Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6955406Z 
2019-08-03T12:05:41.6955763Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6956019Z    --> src/libcore/cmp.rs:722:1
2019-08-03T12:05:41.6956238Z     |
2019-08-03T12:05:41.6956524Z 722 | #[doc(alias = ">")]
2019-08-03T12:05:41.6957021Z     |
2019-08-03T12:05:41.6957021Z     |
2019-08-03T12:05:41.6957385Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6957699Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6957756Z 
2019-08-03T12:05:41.6958017Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6958271Z    --> src/libcore/cmp.rs:723:1
2019-08-03T12:05:41.6958505Z     |
2019-08-03T12:05:41.6958771Z 723 | #[doc(alias = "<")]
2019-08-03T12:05:41.6959607Z     |
2019-08-03T12:05:41.6959607Z     |
2019-08-03T12:05:41.6959959Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6960297Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6960357Z 
2019-08-03T12:05:41.6960621Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6960874Z    --> src/libcore/cmp.rs:724:1
2019-08-03T12:05:41.6961109Z     |
2019-08-03T12:05:41.6961375Z 724 | #[doc(alias = "<=")]
2019-08-03T12:05:41.6961870Z     |
2019-08-03T12:05:41.6961870Z     |
2019-08-03T12:05:41.6962206Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6962531Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6962720Z 
2019-08-03T12:05:41.6963022Z error[E0658]: #[doc(alias = "...")] is experimental
2019-08-03T12:05:41.6963274Z    --> src/libcore/cmp.rs:725:1
2019-08-03T12:05:41.6963513Z     |
2019-08-03T12:05:41.6963778Z 725 | #[doc(alias = ">=")]
2019-08-03T12:05:41.6964272Z     |
2019-08-03T12:05:41.6964272Z     |
2019-08-03T12:05:41.6964615Z     = note: for more information, see ***/issues/50146
2019-08-03T12:05:41.6964944Z     = help: add #![feature(doc_alias)] to the crate attributes to enable
2019-08-03T12:05:41.6964985Z 
2019-08-03T12:05:41.7281044Z error[E0658]: #[doc(alias = "...")] is experimental

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@GuillaumeGomez
Copy link
Member Author

Hum, interesting issue: we need doc_alias to be stabilized before being able to stabilize it. Is there any way to not fail tests in such case?

cc @rust-lang/compiler

@Mark-Simulacrum
Copy link
Member

#[cfg_attr(bootstrap, doc(alias(...))] is the way to go to avoid the boostrap compiler complaining about the feature not being stabilized.

I would also expect stabilization PRs to come with a report of the usage of the feature, even if brief -- how long has it been unstable for, what is the usage like in the wild. In particular, in this case it seems like this feature is missing documentation about the namespace we're aliasing items in the documentation to. If this is purely for search, then naming it simply "alias" feels too broad.

@Centril
Copy link
Contributor

Centril commented Aug 3, 2019

I would also expect stabilization PRs to come with a report of the usage of the feature, even if brief -- how long has it been unstable for, what is the usage like in the wild. In particular, in this case it seems like this feature is missing documentation about the namespace we're aliasing items in the documentation to. If this is purely for search, then naming it simply "alias" feels too broad.

I think it's up to the rustdoc team to decide how they want to do stabilizations. They do not have to follow how the language team does things. But in case they want to do that, here's a sample stabilization report: #61682 (comment). I agree it's good in general to have such reports (maybe not as long tho... ^^).

@crlf0710
Copy link
Member

crlf0710 commented Aug 3, 2019

Admittedly i've not have any experience on this, but how does this feature works? I mean, if in a crate X there a Foo that aliased to Y, does this mean when i search either X::Y or Y, X::Foo will be given high priority in the search result? And does it take modules into account?

@GuillaumeGomez
Copy link
Member Author

@crlf0710 Aliases work at the crate level. So if you can a crate A providing a type A::Foo and a crate B aliasing a type to Foo as well, then the search will return both results. You can already check how aliases work by looking for "[]" in the std docs for example.

@JohnTitor
Copy link
Member

Ping from triage: @ollie27 @GuillaumeGomez any updates on this?

@GuillaumeGomez
Copy link
Member Author

I still need to check how to be able to actually stabilize this since we need it to be stable to stabilize it (I love paradoxes).

@Dylan-DPC-zz Dylan-DPC-zz added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 12, 2019
@joelpalmer
Copy link

Ping from Triage: Hi @GuillaumeGomez - what is the status of your paradox?

@GuillaumeGomez
Copy link
Member Author

Didn't check yet (going through my other PRs for the moment).

@hdhoang hdhoang added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Aug 30, 2019
@JohnCSimon
Copy link
Member

Ping from triage
@GuillaumeGomez Can you please resolve the merge conflict?

Thank you!

@GuillaumeGomez
Copy link
Member Author

The merge conflict is minor. What I need to do is fix the paradox issue first. Will do as soon as I have enough time!

@jonas-schievink jonas-schievink added the relnotes Marks issues that should be documented in the release notes of the next release. label Sep 15, 2019
@jonas-schievink jonas-schievink added this to the 1.39 milestone Sep 15, 2019
@jonas-schievink jonas-schievink added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Sep 15, 2019
@JohnCSimon
Copy link
Member

Ping from triage:
@GuillaumeGomez Can you please address the merge conflicts?
Thank you.

@GuillaumeGomez
Copy link
Member Author

Waiting for approval first. A bit annoying to keep updating whereas there is no review...

@Centril Centril modified the milestones: 1.39, 1.40 Sep 26, 2019
@QuietMisdreavus
Copy link
Member

Does anyone want to use this outside the standard library? I was under the impression that the purpose of this feature was to search for the operator traits via the operator itself. I could see this being used to associate a type with a common misnomer for it, but i'm not sure if anyone has thought to properly encode something like that. I'm just not sure this feature will see much use outside the standard library, and if that's the case we should just keep it perma-unstable.

As for your "paradox", @Mark-Simulacrum already solved it for you. Replace the #![feature(doc_alias)] attributes you deleted with #![cfg_attr(bootstrap, feature(doc_alias))] instead. That will keep it declared for the bootstrap compiler, which is the one that's complaining, but take it out in the final one, since that one will have declared it stable.

@GuillaumeGomez
Copy link
Member Author

@QuietMisdreavus Yes, @Mark-Simulacrum told me but thanks for the update! As for its usage outside of libstd, I'd like to use it on gtk-rs (because we have to prepend some types with the lib name to avoid conflicts).

@QuietMisdreavus QuietMisdreavus added the needs-fcp This change is insta-stable, so needs a completed FCP to proceed. label Oct 7, 2019
@QuietMisdreavus
Copy link
Member

@GuillaumeGomez So you need to name the item something like gtk_something but you want to alias it to just something so people can find it easier? Wouldn't that already be taken care of by restricting the crate you search for and/or having our search logic favor items that contain the search string as an exact substring (which i thought we already did)? Am i understanding this wrong?

@GuillaumeGomez
Copy link
Member Author

The naming won't change, even if you limit the search to a specific crate. For example, we have GtkWindowExt and I'd like to alias it to WindowsExt. We have a few examples like this. It's a detail at this point but something I'd like to have to.

However, for crates heavily using proc macros, it'd make much more sense since they can provide a completely new syntax.

@Dylan-DPC-zz Dylan-DPC-zz added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 11, 2019
@JohnTitor
Copy link
Member

Ping from triage: @ollie27 could you review this?

@Centril Centril modified the milestones: 1.40, 1.41 Nov 7, 2019
@@ -854,6 +851,8 @@ declare_features! (
(accepted, repr_align_enum, "1.37.0", Some(57996), None),
// Allows `const _: TYPE = VALUE`.
(accepted, underscore_const_names, "1.37.0", Some(54912), None),
// Allows `#[doc(alias = "...")]`.
(accepted, doc_alias, "1.27.0", Some(50146), None),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
(accepted, doc_alias, "1.27.0", Some(50146), None),
(accepted, doc_alias, "1.41.0", Some(50146), None),

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sill waiting for approval before rebasing. It's just one of the conflicts. ;)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hehe; I just did this for all 1.40.0 PRs that were relevant ^^

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:p

@JohnTitor
Copy link
Member

Ping from triage: assigning another reviewer randomly...
r? @QuietMisdreavus
CC: @rust-lang/rustdoc

@ollie27
Copy link
Member

ollie27 commented Nov 23, 2019

I think this should be closed for now to keep the PR queue clean. It needs a FCP anyway which can happen on the tracking issue (#50146).

@GuillaumeGomez
Copy link
Member Author

@ollie27 Ok, then please start the FCP on the issue. :)

@ollie27
Copy link
Member

ollie27 commented Nov 25, 2019

Ok, then please start the FCP on the issue. :)

@GuillaumeGomez as you're the one proposing stabilization it would be better if you propose the FCP. Make sure you include an explanation as to why you think it should be stabilized and more specifically what it would be used for outside of std. That's what was missing from this PR.

@GuillaumeGomez
Copy link
Member Author

Sure!

@Centril Centril removed this from the 1.41 milestone Dec 20, 2019
@Centril Centril removed the relnotes Marks issues that should be documented in the release notes of the next release. label Dec 20, 2019
@GuillaumeGomez GuillaumeGomez deleted the stabilize-doc-alias branch April 28, 2020 13:03
@jyn514 jyn514 added the A-doc-alias Area: `#[doc(alias)]` label Sep 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-doc-alias Area: `#[doc(alias)]` needs-fcp This change is insta-stable, so needs a completed FCP to proceed. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[rustdoc] stabilize #[doc(alias = ...)]