-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 const parameter... out of range when substituting substs=[_, alloc::Global] #105573
Comments
Update: I've rebased off 657eefe to coop-rs@a2b34ee. It still fails to build. |
OUTDATED: Narrowed down to 1 file: https://github.com/coop-rs/rust/tree/vec_mvp_rustc_middle/src/ty/subst_internal_err_narrow_down_1 coop-rs@d3cb32a See below. |
Narrowed down more - the smallest change that triggers the error: https://github.com/coop-rs/rust/tree/vec_mvp_rustc_middle/src/ty/subst_internal_err_narrow_down_4 commit coop-rs@c094458 |
Is this low priority, but fairly easy to debug/fix? If so, please suggest which modules/structs/functions are worth investigating. |
Narrowed down in another way: |
But: https://github.com/coop-rs/rust/tree/vec_mvp_rustc_middle/src/ty/subst_internal_err_narrow_down_6 where I fixed (my) generics errors: coop-rs@143063b makes the compiler panic again! |
Reproducible in rust-lang/rust CI: #105673 |
Potentially related to #94846. |
I've minimized it as far as it'll minimize in #106473, so I'm gonna close this in favor of that one. |
Hi dear
rustc
team member. Thank you for Rust.SUMMARY
This error comes when compiling my proof-of-concept fork of Rust. I've extended
Vec, VecDeque, RawVec
and related internal structs to have an extra, optional, const generic parameter (COOP_PREFERRED
). I did modify some compiler tests, but only so that it passes to build (very hacky - work in progress). (The actual motivation & goal itself will be very controversial: cooperative allocations; but hopefully beneficial.)ENVIRONMENT
Current Manjaro (Arch sister) Linux on x86_64:
5.19.17-2-MANJARO #1 SMP PREEMPT_DYNAMIC
.rustup
as it comes from Manjaro packages. Nightly Rust (withrustup update
), failing in1.68.0-nightly
, both 70898e522 2022-12-05 and 70898e522 2022-12-05.config.toml
TRIGGERING COMMIT
Outdated: The actual commit that triggers this error is coop-rs@27a545d on https://github.com/coop-rs/rust/tree/vec_mvp_rustc_middle/src/ty/subst_internal_err.
See a comment below for a newer, narrowed down, commit.
Note: the triggering commit is not compilable. Its parent is not either. It's based off https://github.com/rust-lang/rust/ 0
master
a few days ago. I'll rebase off currentnightly
, and if I can bisect it any closer, I update here.ERROR OUTPUT - NON-VERBOSE
This is NON-verbose, because VERBOSE was over GitHub limit. I've put verbose one in an attached file (link below).
ERROR OUTPUT - VERBOSE
Output from
x check --verbose
based on the original triggering commit.The text was updated successfully, but these errors were encountered: