Uh oh!
There was an error while loading. Please reload this page.
Improve unknown external crate error - #81046
Conversation
rust-log-analyzer
commented
Jan 15, 2021
The job Click to see the possible cause of the failure (guessed by this bot) |
28d9ee4 to
d51df05Comparerust-log-analyzer
commented
Jan 15, 2021
The job Click to see the possible cause of the failure (guessed by this bot) |
There was a problem hiding this comment.
Rather than special casing this here, does it make sense to change in impl Display for Symbol instead? Then you don't have to worry about missing it somewhere (and everyone else using this benefits as well).
There was a problem hiding this comment.
This is certainly a possibility. I didn't do this because I was unsure of the ramifications of renaming the symbol's string representation (particularly around json serialization/deserialization). The change I made seems to be the central place for diagnostics around path resolution (i.e., there are not UI tests that still reference {{root}}).
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Should it be root crate instead?
There was a problem hiding this comment.
Hmmm, the path root is normally referred to as the crate root as you can see here. root crate makes it sound like this refers to a crate itself but it does not, it's the root of the namespace hierarchy.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
d51df05 to
d829e40Compareestebank
commented
Jan 19, 2021
@bors r+ rollup |
bors
commented
Jan 19, 2021
📌 Commit 38b7742 has been approved by |
…ebank Improve unknown external crate error This improves error messages when unknown items in the crate root are encountered. Fixesrust-lang#63799 r? `@estebank`
…ebank Improve unknown external crate error This improves error messages when unknown items in the crate root are encountered. Fixesrust-lang#63799 r? ``@estebank``
Rollup of 11 pull requests Successful merges: - rust-lang#79655 (Add Vec visualization to understand capacity) - rust-lang#80172 (Use consistent punctuation for 'Prelude contents' docs) - rust-lang#80429 (Add regression test for mutual recursion in obligation forest) - rust-lang#80601 (Improve grammar in documentation of format strings) - rust-lang#81046 (Improve unknown external crate error) - rust-lang#81178 (Visit only terminators when removing landing pads) - rust-lang#81179 (Fix broken links with `--document-private-items` in the standard library) - rust-lang#81184 (Remove unnecessary `after_run` function) - rust-lang#81185 (Fix ICE in mir when evaluating SizeOf on unsized type) - rust-lang#81187 (Fix typo in counters.rs) - rust-lang#81219 (Document security implications of std::env::temp_dir) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This improves error messages when unknown items in the crate root are encountered.
Fixes#63799
r? @estebank