Skip to content

Regression on beta: three dots in a trait leads to an infinite loop(?) #32446

Closed
@nodakai

Description

@nodakai
trait T { ... }

(Yes, just a single line.)

$ ulimit -t 3
$ multirust run stable rustc ~tmp/lone-incl-range-in-trait.rs
/tmp/nodakai//lone-incl-range-in-trait.rs:1:11: 1:14 error: expected one of `const`, `extern`, `fn`, `type`, or `unsafe`, found `...`
/tmp/nodakai//lone-incl-range-in-trait.rs:1 trait T { ... }
                                                      ^~~
error: aborting due to previous error
$ multirust run stable rustc --version
rustc 1.7.0 (a5d1e7a59 2016-02-29)
$ multirust run beta rustc ~tmp/lone-incl-range-in-trait.rs
zsh: cpu limit exceeded  multirust run beta rustc ~tmp/lone-incl-range-in-trait.rs
$ multirust run beta rustc --version
rustc 1.8.0-beta.1 (facbfdd71 2016-03-02)
$ multirust run nightly rustc ~tmp/lone-incl-range-in-trait.rs
zsh: cpu limit exceeded  multirust run nightly rustc ~tmp/lone-incl-range-in-trait.rs
$ multirust run nightly rustc --version
rustc 1.9.0-nightly (21922e1f4 2016-03-21)

Possibly related to #32245 ?

Like #32445 , it was found during make check-docs. One doctest contained three dots probably just to mean some codes had been omitted.

Metadata

Metadata

Assignees

Labels

P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions