forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#110648 - Dylan-DPC:rollup-em3ovcq, r=Dylan-DPC
Rollup of 5 pull requests Successful merges: - rust-lang#110333 (rustc_metadata: Split `children` into multiple tables) - rust-lang#110501 (rustdoc: fix ICE from rustc_resolve and librustdoc parse divergence) - rust-lang#110608 (Specialize some `io::Read` and `io::Write` methods for `VecDeque<u8>` and `&[u8]`) - rust-lang#110632 (Panic instead of truncating if the incremental on-disk cache is too big) - rust-lang#110633 (More `mem::take` in `library`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
14 changed files
with
153 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// this test used to ICE | ||
#![deny(rustdoc::broken_intra_doc_links)] | ||
//! [Clone ()]. //~ ERROR unresolved | ||
//! [Clone !]. //~ ERROR incompatible | ||
//! [`Clone ()`]. //~ ERROR unresolved | ||
//! [`Clone !`]. //~ ERROR incompatible |
54 changes: 54 additions & 0 deletions
54
tests/rustdoc-ui/intra-doc/issue-110495-suffix-with-space.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
error: unresolved link to `Clone` | ||
--> $DIR/issue-110495-suffix-with-space.rs:3:6 | ||
| | ||
LL | //! [Clone ()]. | ||
| ^^^^^^^^ this link resolves to the trait `Clone`, which is not in the value namespace | ||
| | ||
note: the lint level is defined here | ||
--> $DIR/issue-110495-suffix-with-space.rs:2:9 | ||
| | ||
LL | #![deny(rustdoc::broken_intra_doc_links)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
help: to link to the trait, prefix with `trait@` | ||
| | ||
LL - //! [Clone ()]. | ||
LL + //! [trait@Clone ]. | ||
| | ||
|
||
error: incompatible link kind for `Clone` | ||
--> $DIR/issue-110495-suffix-with-space.rs:4:6 | ||
| | ||
LL | //! [Clone !]. | ||
| ^^^^^^^ this link resolved to a derive macro, which is not a macro | ||
| | ||
help: to link to the derive macro, prefix with `derive@` | ||
| | ||
LL - //! [Clone !]. | ||
LL + //! [derive@Clone ]. | ||
| | ||
|
||
error: unresolved link to `Clone` | ||
--> $DIR/issue-110495-suffix-with-space.rs:5:7 | ||
| | ||
LL | //! [`Clone ()`]. | ||
| ^^^^^^^^ this link resolves to the trait `Clone`, which is not in the value namespace | ||
| | ||
help: to link to the trait, prefix with `trait@` | ||
| | ||
LL - //! [`Clone ()`]. | ||
LL + //! [`trait@Clone (`]. | ||
| | ||
|
||
error: incompatible link kind for `Clone` | ||
--> $DIR/issue-110495-suffix-with-space.rs:6:7 | ||
| | ||
LL | //! [`Clone !`]. | ||
| ^^^^^^^ this link resolved to a derive macro, which is not a macro | ||
| | ||
help: to link to the derive macro, prefix with `derive@` | ||
| | ||
LL | //! [`derive@Clone !`]. | ||
| +++++++ | ||
|
||
error: aborting due to 4 previous errors | ||
|