Skip to content
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

updated toolchain #12

Merged
merged 26 commits into from
Sep 21, 2024
Merged

updated toolchain #12

merged 26 commits into from
Sep 21, 2024

Conversation

Firestar99
Copy link
Member

@Firestar99 Firestar99 commented Sep 19, 2024

cherry-picking some of eddyb's nightly updates

For this one the PR's diff is fine

@LegNeato
Copy link
Collaborator

You'll need something like this (or the proper fix):

b99259d

Copy link
Collaborator

@LegNeato LegNeato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test failures

LegNeato and others added 8 commits September 19, 2024 19:17
Without this the skip directives weren't working. This looks to
largely be legacy anyway, but tests now run and pass in the
correct environments.
We have specific code to handle the path mangling on windows, but
for some reason it isn't working for these tests.

This is a hack to make them pass on windows.
@Firestar99 Firestar99 marked this pull request as draft September 19, 2024 18:38
@Firestar99
Copy link
Member Author

Firestar99 commented Sep 20, 2024

This PR breaks for loops using signed integers, for example the following will not compile anymore:

#[spirv(fragment)]
pub fn main(#[spirv(flat)] i: i32) {
    for _ in 0..i {}
}

This is likely due to a change in core's Step trait now using checked_add_unsigned in nightly-2024-03-21, which we do not yet support. A compiletest called for_range_signed has been added to track the regression.

As a workaround one can use unsigned for loops and casting the index back to a signed integer.

I'd suggest merging this for now and addressing the regression later. I've also added it to the changelog so it can't be forgotten.

@Firestar99 Firestar99 marked this pull request as ready for review September 20, 2024 10:54
@Firestar99 Firestar99 mentioned this pull request Sep 20, 2024
@LegNeato LegNeato merged commit de7ba8e into Rust-GPU:main Sep 21, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants