-
Notifications
You must be signed in to change notification settings - Fork 627
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use cfg(target_has_atomic) on no-std targets
- Loading branch information
Showing
24 changed files
with
89 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -230,42 +230,6 @@ jobs: | |
--workspace --exclude futures-test \ | ||
--features unstable --ignore-unknown-features | ||
# When this job failed, run ci/no_atomic_cas.sh and commit result changes. | ||
codegen: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust | ||
run: rustup update nightly && rustup default nightly | ||
- run: ci/no_atomic_cas.sh | ||
- run: git add -N . && git diff --exit-code | ||
if: github.repository_owner != 'rust-lang' || github.event_name != 'schedule' | ||
- id: diff | ||
run: | | ||
git config user.name "Taiki Endo" | ||
git config user.email "[email protected]" | ||
git add -N . | ||
if ! git diff --exit-code; then | ||
git add . | ||
git commit -m "Update no_atomic_cas.rs" | ||
echo "::set-output name=success::false" | ||
fi | ||
if: github.repository_owner == 'rust-lang' && github.event_name == 'schedule' | ||
- uses: peter-evans/create-pull-request@v5 | ||
with: | ||
title: Update no_atomic_cas.rs | ||
body: | | ||
Auto-generated by [create-pull-request][1] | ||
[Please close and immediately reopen this pull request to run CI.][2] | ||
[1]: https://github.com/peter-evans/create-pull-request | ||
[2]: https://github.com/peter-evans/create-pull-request/blob/HEAD/docs/concepts-guidelines.md#workarounds-to-trigger-further-workflow-runs | ||
branch: update-no-atomic-cas-rs | ||
if: github.repository_owner == 'rust-lang' && github.event_name == 'schedule' && steps.diff.outputs.success == 'false' | ||
|
||
miri: | ||
name: cargo miri test | ||
runs-on: ubuntu-latest | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
#[cfg(any(not(futures_no_atomic_cas), feature = "portable-atomic"))] | ||
#[cfg_attr(target_os = "none", cfg(any(target_has_atomic = "ptr", feature = "portable-atomic")))] | ||
mod atomic_waker; | ||
#[cfg(any(not(futures_no_atomic_cas), feature = "portable-atomic"))] | ||
#[cfg_attr( | ||
target_os = "none", | ||
cfg(any(target_has_atomic = "ptr", feature = "portable-atomic")) | ||
)] | ||
pub use self::atomic_waker::AtomicWaker; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.