-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Permit pre-evaluated constants in simd_shuffle #113529
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @wesleywiser (or someone else) soon. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
This comment has been minimized.
This comment has been minimized.
// simd_shuffle (passing as argument instead of as a generic param). | ||
rustc_type_ir::ConstKind::Value(valtree) => return Ok(Some(valtree)), | ||
other => span_bug!(constant.span, "{other:#?}"), | ||
}, | ||
other => span_bug!(constant.span, "{other:#?}"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also handle ConstantKind::Val
?
The fact that const-prop does not replace Unevaluated
by Val
in this very case is not documented, and may change by accident.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I specifically do not want to handle it. I removed the logic that allows destructuring ConstValue except for pretty printing. I am currently working on eliminating this simd_shuffle special case entirely by making it a real const generic. That should avoid any such issues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a comment about this.
c25c36b
to
5465748
Compare
tested this patch, it fixes issue for me, at least can build spidermonkey again |
…wesleywiser Permit pre-evaluated constants in simd_shuffle fixes rust-lang#113500
…wesleywiser Permit pre-evaluated constants in simd_shuffle fixes rust-lang#113500
5465748
to
c7428d5
Compare
@bors r=wesleywiser |
…wesleywiser Permit pre-evaluated constants in simd_shuffle fixes rust-lang#113500
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#110765 (rustdoc: fix position of `default` in method rendering) - rust-lang#113529 (Permit pre-evaluated constants in simd_shuffle) - rust-lang#113800 (Avoid another gha group nesting) - rust-lang#113827 (Add Foreign, Never, FnDef, Closure and Generator tys to SMIR) - rust-lang#113835 (new solver: don't consider blanket impls multiple times) - rust-lang#113883 (Remove outdated Firefox-specific CSS for search's crate selector appearance) - rust-lang#113884 (Don't translate compiler-internal bug messages) r? `@ghost` `@rustbot` modify labels: rollup
[beta] backports * Upgrade std to gimli 0.28.0 rust-lang#114825 * Partially revert rust-lang#107200 rust-lang#114897 * Permit pre-evaluated constants in simd_shuffle rust-lang#113529 r? cuviper
fixes #113500