-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ICE: explicit deref of non-derefable type
#125058
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
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
explicit deref of non-derefable type
explicit deref of non-derefable type
rustc repro: #![feature(ref_pat_everywhere)]
struct Foo;
fn main() {
|| if let Some(Some(&mut x)) = &mut Some(&mut Some(0)) {
let _: u32 = x;
};
} |
This ^ bisects to #124902 cc @compiler-errors |
This likely exposed a preexisting bug in previously |
#![feature(ref_pat_eat_one_layer_2024)]
struct Foo;
fn main() {
|| if let Some(Some(&mut x)) = &mut Some(&mut Some(0)) {
let _: u32 = x;
};
} @rustbot claim |
This was referenced May 13, 2024
jieyouxu
added a commit
to jieyouxu/rust
that referenced
this issue
May 14, 2024
…ieril `rustc_hir_typeck`: Account for `skipped_ref_pats` in `expr_use_visitor` Fixes rust-lang#125058 r? `@Nadrieril` cc rust-lang#123076 `@rustbot` label A-edition-2024 A-patterns
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
May 15, 2024
`rustc_hir_typeck`: Account for `skipped_ref_pats` in `expr_use_visitor` Fixes rust-lang#125058 r? `@Nadrieril` cc rust-lang#123076 `@rustbot` label A-edition-2024 A-patterns
# 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) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: