Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Rename
wasm32-wasi
towasm32-wasi-preview1
#110596Rename
wasm32-wasi
towasm32-wasi-preview1
#110596Changes from all commits
23b66f2
6afae81
7bb19c4
24347f2
e2cef50
7080065
fa04cc1
07d3b4b
fae26c9
f066a51
a04c8a0
e9f5aaa
453bc91
734c8c9
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Is it able to find wasi-libc sysroot? My understanding wasi-libc targets doesn't mention
-preview1
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 tried to compile a simple file with
rustc +stage1 -v --target=wasm32-wasi-preview1 main2.rs
And it failed with
Also I ran the tests the same way I did here #112922 (comment)
and many more tests(almost 4k) failed due to the same error that I showed above.
Without this change I'm able to compile the same file to
wasm32-wasi
and only 191 test fails without this change instead of 4007 with this change.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.
Also I might be doing something wrong though, but could you try to run it yourself please @yoshuawuyts
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.
tried to fix it by removing
-preview1
from here, but it doesn't fix the problemThere 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.
You most likely have to revert the other change in the same file (line 411) as well.
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.
Yeah I did, stiil the same
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.
Okay, several lines above it should check for containing wasi instead of ending with it. I will send a patch
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 think I don't have permissions to update your branch @yoshuawuyts , here's the fix + merge master branch and resolving of conflicts https://github.com/rust-lang/rust/compare/master...g0djan:rust:rename-wasm32-wasi?expand=1
I also reran ui tests and now your pr doesn't break or fix any tests compared to running tests without your pr.
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've spoken to the maintainers of wasi-libc, and they indeed haven't updated the target yet to include the
-preview1
suffix. This is coming down the pipeline at some point in the near future, but hasn't happened yet.So thank you for catching and fixing this; we indeed should land this change!
This file was deleted.