-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
ICE: called Result::unwrap() on an Err value: NoSolution
in rustc_borrowck/src/type_check/mod.rs
#137579
Labels
C-bug
Category: This is a bug.
F-dyn_star
`#![feature(dyn_star)]`
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
Smaller: #![allow(incomplete_features)]
#![feature(dyn_star)]
trait Foo {}
trait Bar {}
fn cast(x: *const dyn Foo) {
x as *const dyn* Bar;
} Error output
|
jieyouxu
added a commit
to jieyouxu/rust
that referenced
this issue
Mar 5, 2025
…star, r=oli-obk Check dyn flavor before registering upcast goal on wide pointer cast in MIR typeck See the comment on the test :) Fixes rust-lang#137579
jieyouxu
added a commit
to jieyouxu/rust
that referenced
this issue
Mar 5, 2025
…star, r=oli-obk Check dyn flavor before registering upcast goal on wide pointer cast in MIR typeck See the comment on the test :) Fixes rust-lang#137579
jieyouxu
added a commit
to jieyouxu/rust
that referenced
this issue
Mar 5, 2025
…star, r=oli-obk Check dyn flavor before registering upcast goal on wide pointer cast in MIR typeck See the comment on the test :) Fixes rust-lang#137579
compiler-errors
added a commit
to compiler-errors/rust
that referenced
this issue
Mar 6, 2025
…star, r=oli-obk Check dyn flavor before registering upcast goal on wide pointer cast in MIR typeck See the comment on the test :) Fixes rust-lang#137579
Noratrieb
added a commit
to Noratrieb/rust
that referenced
this issue
Mar 6, 2025
…star, r=oli-obk Check dyn flavor before registering upcast goal on wide pointer cast in MIR typeck See the comment on the test :) Fixes rust-lang#137579
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Mar 7, 2025
Rollup merge of rust-lang#137637 - compiler-errors:dyn-cast-from-dyn-star, r=oli-obk Check dyn flavor before registering upcast goal on wide pointer cast in MIR typeck See the comment on the test :) Fixes rust-lang#137579
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.
F-dyn_star
`#![feature(dyn_star)]`
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.
Code
Original Code (Mutant from Fuzzing)
Meta
rustc --version --verbose
:Error output
Backtrace
Note
compiler/rustc_borrowck/src/type_check/mod.rs Line-2165
rust/compiler/rustc_borrowck/src/type_check/mod.rs
Lines 2156 to 2165 in 617aad8
@rustbot label +F-dyn_star
The text was updated successfully, but these errors were encountered: