-
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
Refiling "#[repr(simd)] struct(isize, isize) not allowed" #55078
Comments
@rfcbot merge |
Team member @Centril has proposed to merge this. The next step is review by the rest of the tagged teams:
Concerns:
Once a majority of reviewers approve (and none object), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
|
@rfcbot concern signoff-from-alex-and-andrew |
This is just adding another type to a feature that isn't on the path to stabilization, right? @rfcbot reviewed |
While The Lifting the restriction makes something that's already possible and useful a bit easier to do. Also, the current plan is to never stabilize Something like RFC2366 with support for packed SIMD vectors of pointers would need to be added to the language for this to land on stable. |
The I suspect, however, that fixing this is probably a few lines of a patch. While I wouldn't at all prioritize this I wouldn't stop it if someone were motivated. |
Namely, removing this line: Line 1748 in 423d810
|
I'll interpret #55078 (comment) as "signoff" :) @rfcbot resolve signoff-from-alex-and-andrew |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
FWIW I actually had forgotten that I filled the RFC issue that resulted in this one being open. I just wanted to know why did someone go through the trouble of preventing I'd guess the answer is that no, we didn't miss anything. Since this "bug" is easy to fix, maybe it should be E-Easy and mentoring available. But I wasn't suggesting that we should fix this. It is trivial to work around (and fix), and it only impacts perma-unstable internal rustc APIs. Having an FCP about this feels extremely overkill. |
The final comment period, with a disposition to merge, as per the review above, is now complete. |
Mentoring instructions:
|
As discussed in rust-lang#55078, there's no known reason for this restriction. It's unlikely that repr(simd) will be stabilized in its current form, but might as well remove some restrictions on it. This removes the branch in `is_machine` which returns false for these types. `is_machine` is only used for the repr(simd) type validation check.
…-restriction, r=alexcrichton Remove restriction on isize/usize in repr(simd) As discussed in rust-lang#55078, there's no known reason for this restriction. It's unlikely that repr(simd) will be stabilized in its current form, but might as well remove some restrictions on it. This removes the branch in `is_machine` which returns false for these types. `is_machine` is only used for the repr(simd) type validation check.
…-restriction, r=alexcrichton Remove restriction on isize/usize in repr(simd) As discussed in rust-lang#55078, there's no known reason for this restriction. It's unlikely that repr(simd) will be stabilized in its current form, but might as well remove some restrictions on it. This removes the branch in `is_machine` which returns false for these types. `is_machine` is only used for the repr(simd) type validation check.
Looks like this was fixed in PR #59201 and merged by bors. Should this issue be closed now? |
Refiling rust-lang/rfcs#2513 here.
This probably does not require an RFC (according to me and @nrc).
However, we'd like @BurntSushi and @alexcrichton to sign off on this.
cc @rust-lang/compiler
cc @gnzlbg
The text was updated successfully, but these errors were encountered: