Skip to content

Stack overflow with simple incorrect code #13021

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
retep998 opened this issue Mar 20, 2014 · 1 comment
Closed

Stack overflow with simple incorrect code #13021

retep998 opened this issue Mar 20, 2014 · 1 comment

Comments

@retep998
Copy link
Member

Trying to compile the following code results in rustc stack overflowing

#[no_std];
#[lang="start"] fn main() {}

Tested using Rust 0.9. Other people on IRC reported they receive the same issue with master.

@retep998
Copy link
Member Author

Oh, it seems this is probably just a duplicate of #9307

JohnTitor pushed a commit to JohnTitor/rust that referenced this issue Aug 30, 2022
fix: Fix panics on GATs involving const generics

This workaround avoids constant crashing of rust analyzer when using GATs with const generics,
even when the const generics are only on the `impl` block.

The workaround treats GATs as non-existing if either itself or the parent has const generics and
removes relevant panicking code-paths.

Fixes rust-lang#11989, fixes rust-lang#12193
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant