-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Wrapping simd call results in compiler panic (nightly) #59469
Comments
Also happens on beta, not on stable |
Stable says:
|
For reference, the function signature as defined here is exactly the same. |
The actual ICE occurs first in nightly-2019-03-03 (c1d2d83...0ea2271). But interesting enough, stable (as jonas pointed out) procuces an error, saying, that the third argument must be a constant. Since nightly-2019-02-16 (f47ec2a...a9410cd) this does not emit an error anymore, but also does not ICE. |
triage: P-high |
@dignifiedquire Note that because of the @hellow554 I don't think this is intentional, but I'm not sure why it would happen, maybe arguments are treated incorrectly in the qualifier. cc @oli-obk @gnzlbg |
So I agree that this code can't compile, that's the expected behavior; @dignifiedquire if you want to wrap it, you have to use a macro - Rust functions aren't able to abstract over this type of hardware operations yet. The ICE is a regression over the error message that was being produced before. We should definitely add an ui test for that. |
triage, assigning to self to fix the stable-to-beta regression. |
The behavior here varies with edition as well as channel.
I think the most immediate thing to address is the unexpected compile-pass that has leaked into beta. |
The easiest thing might be to revert #58403 |
I have an actual fix in #59724 (also easier to backport than a revert) |
Okay then I'm reassigning to @oli-obk |
Function arguments should never get promoted fixes #59469
Function arguments should never get promoted fixes #59469
Expected the following code to compile
But getting
Repro:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=36e55f5180a9cf903585dead5b4c2a8d
The text was updated successfully, but these errors were encountered: