-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Apparent infinite loop in AST validation with nested extern crate declaration #37887
Labels
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Comments
This is fixed in beta and nightly. |
jseyfried
added
the
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
label
Nov 20, 2016
On the latest nightly: rustc 1.15.0-nightly (daf8c1d 2016-12-05) fn main() {
extern crate libc;
use libc::*;
} doesn't compile:
The code: #![feature(libc)]
fn main() {
extern crate libc;
use libc::*;
} doesn't compile:
The code: #![feature(libc)]
extern crate libc;
fn main() {
use libc::*;
} compiles:
So I think the problem is fixed. |
MaloJaffre
added a commit
to MaloJaffre/rust
that referenced
this issue
Oct 4, 2017
Also ignore `attr-on-trait` test on stage-1 to keep `./x.py test --stage 1` successful. Fixes rust-lang#30355. Fixes rust-lang#33241. Fixes rust-lang#36400. Fixes rust-lang#37887. Fixes rust-lang#44578.
Noratrieb
added a commit
to Noratrieb/rust
that referenced
this issue
Aug 2, 2023
Add regression test for resolving `--extern libc=test.rlib` Closes rust-lang#26043 I could not find a test for this particular use case. The closest I got was [`tests/ui/imports/issue-37887.rs`](https://github.com/rust-lang/rust/blob/master/tests/ui/imports/issue-37887.rs), but that is a regression test for a different use case (see rust-lang#37887).
Noratrieb
added a commit
to Noratrieb/rust
that referenced
this issue
Aug 2, 2023
Add regression test for resolving `--extern libc=test.rlib` Closes rust-lang#26043 I could not find a test for this particular use case. The closest I got was [`tests/ui/imports/issue-37887.rs`](https://github.com/rust-lang/rust/blob/master/tests/ui/imports/issue-37887.rs), but that is a regression test for a different use case (see rust-lang#37887).
github-actions bot
pushed a commit
to rust-lang/miri
that referenced
this issue
Aug 3, 2023
Add regression test for resolving `--extern libc=test.rlib` Closes #26043 I could not find a test for this particular use case. The closest I got was [`tests/ui/imports/issue-37887.rs`](https://github.com/rust-lang/rust/blob/master/tests/ui/imports/issue-37887.rs), but that is a regression test for a different use case (see rust-lang/rust#37887).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
This program
seems to cause the compiler too loop endlessly in AST validation, allocating more and more memory:
The text was updated successfully, but these errors were encountered: