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

compiler nontermination after "error: bare CR not allowed in doc-comment" #62863

Closed
dwrensha opened this issue Jul 22, 2019 · 1 comment · Fixed by #62870
Closed

compiler nontermination after "error: bare CR not allowed in doc-comment" #62863

dwrensha opened this issue Jul 22, 2019 · 1 comment · Fixed by #62870
Assignees
Labels
A-attributes Area: #[attributes(..)] C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@dwrensha
Copy link
Contributor

dwrensha commented Jul 22, 2019

$ rustc -vV
rustc 1.38.0-nightly (273f42b59 2019-07-21)
binary: rustc
commit-hash: 273f42b5964c29dda2c5a349dd4655529767b07f
commit-date: 2019-07-21
host: x86_64-unknown-linux-gnu
release: 1.38.0-nightly
LLVM version: 9.0


$ echo cyAgaS8vL2cNLyBydW4tcA0vLyBhIHNi | base64 --decode > main.rs

$ rustc main.rs
error: bare CR not allowed in doc-comment
 --> main.rs:1:9
  |
// a sbi///g
  |         ^

error: bare CR not allowed in doc-comment
 --> main.rs:1:12
  |
// a sbi///g
  |           ^

... and rustc keeps running until I kill it.

This bad behavior did not exist on the previous nightly. I hypothesize that it has to do with #59706 (cc @matklad).

This issue was found with the help of fuzz-rustc.

This issue has been assigned to @matklad via this comment.

@matklad
Copy link
Member

matklad commented Jul 22, 2019

Oh, excellent, thanks @dwrensha !

@rustbot claim

@rustbot rustbot self-assigned this Jul 22, 2019
@jonas-schievink jonas-schievink added A-attributes Area: #[attributes(..)] T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. C-bug Category: This is a bug. labels Jul 22, 2019
matklad added a commit to matklad/rust that referenced this issue Jul 22, 2019
Centril added a commit to Centril/rust that referenced this issue Jul 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-attributes Area: #[attributes(..)] C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants