-
-
Notifications
You must be signed in to change notification settings - Fork 15k
rustc panics when doctest cannot compile #48394
Copy link
Copy link
Closed
Labels
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
Metadata
Metadata
Assignees
Labels
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I'm not sure if this is really a bug or not, but in
CONTRIBUTING.mdthere isso I might as well open this issue.
Basically, my MCVE is the following: run
cargo init hello, and inlib.rs, and add the following:So, this doc comment should not compile, but when I run
cargo test, I get (among other things) the following:If I understood things well, I think
rustcshould never panics (but I could be wrong) and that's why I opened this issue.