-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ICE: self-type &unsafe<'a> &'a (dyn Bar + 'a)
for ObjectPick never dereferenced to an object
#141419
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
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
This doesn't have to do with unsafe binders:
|
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
May 23, 2025
…l, r=lcnr Do not try to confirm non-dyn compatible method See the comment I left in `compiler/rustc_hir_typeck/src/method/confirm.rs`. If we have a receiver that does not deref to the `dyn Trait` we're assembling the method from, then we used to ICE, but that's something that is possible to encounter with arbitrary self types. r? oli-obk Fixes rust-lang#141419
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
May 24, 2025
…l, r=lcnr Do not try to confirm non-dyn compatible method See the comment I left in `compiler/rustc_hir_typeck/src/method/confirm.rs`. If we have a receiver that does not deref to the `dyn Trait` we're assembling the method from, then we used to ICE, but that's something that is possible to encounter with arbitrary self types. r? oli-obk Fixes rust-lang#141419
rust-timer
added a commit
that referenced
this issue
May 24, 2025
Rollup merge of #141438 - compiler-errors:dyn-compatible-call, r=lcnr Do not try to confirm non-dyn compatible method See the comment I left in `compiler/rustc_hir_typeck/src/method/confirm.rs`. If we have a receiver that does not deref to the `dyn Trait` we're assembling the method from, then we used to ICE, but that's something that is possible to encounter with arbitrary self types. r? oli-obk Fixes #141419
github-actions bot
pushed a commit
to rust-lang/miri
that referenced
this issue
May 25, 2025
Do not try to confirm non-dyn compatible method See the comment I left in `compiler/rustc_hir_typeck/src/method/confirm.rs`. If we have a receiver that does not deref to the `dyn Trait` we're assembling the method from, then we used to ICE, but that's something that is possible to encounter with arbitrary self types. r? oli-obk Fixes rust-lang/rust#141419
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.
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
A mutant from
tests/ui/self/invalid-self-dyn-receiver.rs
Meta
rustc --version --verbose
:Error output
command:
rustc
Backtrace
Bisects to
searched nightlies: from nightly-2024-05-01 to nightly-2025-05-22
regressed nightly: nightly-2024-12-25
searched commit range: bdc6b3d...409998c
regressed commit: f334342
bisected with cargo-bisect-rustc v0.6.9
Host triple: x86_64-unknown-linux-gnu
Reproduce with:
Notes
compiler/rustc_hir_typeck/src/method/confirm.rs Line-378
rust/compiler/rustc_hir_typeck/src/method/confirm.rs
Lines 365 to 383 in 2eef478
@rustbot label +F-unsafe_binders
The text was updated successfully, but these errors were encountered: