-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
No universe checks for ty/const infer vars and placeholders #109505
Labels
C-bug
Category: This is a bug.
F-non_lifetime_binders
`#![feature(non_lifetime_binders)]`
glacier
ICE tracked in rust-lang/glacier.
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.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
Comments
BoxyUwU
added
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.
C-bug
Category: This is a bug.
F-non_lifetime_binders
`#![feature(non_lifetime_binders)]`
labels
Mar 22, 2023
compiler-errors
added
the
T-types
Relevant to the types team, which will review and decide on the PR/issue.
label
Mar 22, 2023
I believe you can save it into a dedicated public gist and post link here. |
Reproducible on playground Backtrace for reference
|
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-non_lifetime_binders
`#![feature(non_lifetime_binders)]`
glacier
ICE tracked in rust-lang/glacier.
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.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
rustc currently lacks any checks to ensure that relating ty/const infer vars with ty/const placeholders in higher universes fails. I am not entirely sure whether this is problematic for stable rust or just
feature(non_lifetime_binders)
I think exploiting this would require us to create obligations with type/const binders. We currently create param envs withfor<T>
predicates on stable for checking gat bounds, but I couldn't find anywhere that we create obligations with type/const bound vars.Code
Meta
rustc --version --verbose
:Error output
Backtrace
no backtrace because github claims "Comment is too long" 🙄
The text was updated successfully, but these errors were encountered: