-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
'rustc' panicked at 'called Option::unwrap()
on a None
value', src/librustc_typeck/check/method/suggest.rs:550:46
#69725
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
The error is likely due to the fact that the trait bounds on |
Centril
added a commit
to Centril/rust
that referenced
this issue
Mar 6, 2020
Avoid using `unwrap()` in suggestions Addresses rust-lang#69725, still need a regression test. r? @estebank
Centril
added a commit
to Centril/rust
that referenced
this issue
Mar 6, 2020
Avoid using `unwrap()` in suggestions Addresses rust-lang#69725, still need a regression test. r? @estebank
I can't get it to work in the same crate, just with two crates, where the first one depends on the other: src/main.rs
other_crate/src/lib.rs
@rustbot modify labels: -E-needs-mcve |
Thanks @hellow554! I included a test in the PR. |
Centril
added a commit
to Centril/rust
that referenced
this issue
Mar 7, 2020
Avoid using `unwrap()` in suggestions Fixes rust-lang#69725 r? @estebank
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried code very similar to this:
and it produces some type of type checking error when uncommenting the line beginning with
let temp
.Meta
rustc --version --verbose
:Backtrace:
The text was updated successfully, but these errors were encountered: