Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix WASI sleep impl #65617

Merged
merged 1 commit into from
Oct 23, 2019
Merged

Fix WASI sleep impl #65617

merged 1 commit into from
Oct 23, 2019

Conversation

newpavlov
Copy link
Contributor

@newpavlov newpavlov commented Oct 20, 2019

Closes #65607

@sunfishcode
Is it fine to use 0 for the identifier field? What is this field used for?

@rust-highfive
Copy link
Contributor

r? @cramertj

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 20, 2019
@cramertj
Copy link
Member

r? @alexcrichton

@sunfishcode
Copy link
Member

@newpavlov That identifier field is a historical artifact and isn't used by anything.

sunfishcode added a commit to sunfishcode/WASI that referenced this pull request Oct 21, 2019
As noticed in
rust-lang/rust#65617 (comment),
the `clock.identifier` field in `subscription_t` isn't used for
anything. It came from CloudABI, where it appears to be a holdover from
an earlier API feature which is no longer present.
@alexcrichton
Copy link
Member

@bors: r+ rollup

@bors
Copy link
Collaborator

bors commented Oct 22, 2019

📌 Commit 1e2b711 has been approved by alexcrichton

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 22, 2019
@newpavlov
Copy link
Contributor Author

newpavlov commented Oct 22, 2019

@sunfishcode
Are there plans to remove this field eventually? I think at the very least it's worth to add a deprecation notice to the Core docs. Some kind of semantic versioning for the Core API would've been nice as well.

P.S.: Slightly relevant to introducing changes to the Core API: can you please take a look at #64434? Are there indeed plans to change fd_prestat_* functions?

@sunfishcode
Copy link
Member

@newpavlov I just submitted WebAssembly/WASI#125 to start the process to remove it :-). And yes, we have just established a versioning scheme.

Concerning #64434, yes, there are changes to the fd_prestat functions planned, including adding support for pre-opened files and other resources.

JohnTitor added a commit to JohnTitor/rust that referenced this pull request Oct 22, 2019
Fix WASI sleep impl

Closes rust-lang#65607

@sunfishcode
Is it fine to use 0 for the `identifier` field? What is this field used for?
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Oct 23, 2019
Fix WASI sleep impl

Closes rust-lang#65607

@sunfishcode
Is it fine to use 0 for the `identifier` field? What is this field used for?
bors added a commit that referenced this pull request Oct 23, 2019
Rollup of 14 pull requests

Successful merges:

 - #64145 (Target-feature documented as unsafe)
 - #65007 (Mention keyword closing policy)
 - #65417 (Add more coherence tests)
 - #65507 (Fix test style in unused parentheses lint test)
 - #65591 (Add long error explanation for E0588)
 - #65617 (Fix WASI sleep impl)
 - #65656 (Add option to disable keyboard shortcuts in docs)
 - #65678 (Add long error explanation for E0728)
 - #65681 (Code cleanups following up on #65576.)
 - #65686 (refactor and move `maybe_append` )
 - #65688 (Add some tests for fixed ICEs)
 - #65689 (bring back some Debug instances for Miri)
 - #65695 (self-profiling: Remove module names from some event-ids in codegen backend.)
 - #65706 (Add missing space in librustdoc)

Failed merges:

r? @ghost
@bors bors merged commit 1e2b711 into rust-lang:master Oct 23, 2019
@newpavlov newpavlov deleted the patch-2 branch October 23, 2019 13:53
sunfishcode added a commit to WebAssembly/WASI that referenced this pull request Oct 31, 2019
As noticed in
rust-lang/rust#65617 (comment),
the `clock.identifier` field in `subscription_t` isn't used for
anything. It came from CloudABI, where it appears to be a holdover from
an earlier API feature which is no longer present.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WASI target: thread::sleep() is panicing: unexpected result of poll_oneoff
6 participants