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

Recursive mod include causes rustc to crash. #5855

Closed
acertain opened this issue Apr 12, 2013 · 1 comment
Closed

Recursive mod include causes rustc to crash. #5855

acertain opened this issue Apr 12, 2013 · 1 comment

Comments

@acertain
Copy link

test.rs:

mod test;
fn main(){}

causes

rust: task 7f855ac0c250 ran out of stack
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /private/tmp/rust-GCHx/rust-0.6/src/librustc/rustc.rc:357
rust: domain main @0x7f855b009810 root task failed
@jdm
Copy link
Contributor

jdm commented Apr 14, 2013

Duplicate of #5711.

@jdm jdm closed this as completed Apr 14, 2013
flip1995 pushed a commit to flip1995/rust that referenced this issue Aug 11, 2020
try_err: Consider Try impl for Poll when generating suggestions

There are two different implementation of `Try` trait for `Poll` type:
`Poll<Result<T, E>>` and `Poll<Option<Result<T, E>>>`. Take them into
account when generating suggestions.

For example, for `Err(e)?` suggest either `return Poll::Ready(Err(e))` or
`return Poll::Ready(Some(Err(e)))` as appropriate.

Fixes rust-lang#5855

changelog: try_err: Consider Try impl for Poll when generating suggestions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants