Skip to content

Commit df06c0c

Browse files
committed
AtomicCell: Use atomic-maybe-uninit
1 parent 03d68a2 commit df06c0c

23 files changed

Lines changed: 395 additions & 231 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ jobs:
4040
matrix:
4141
# aarch64/x86_64 macOS and aarch64 Linux are tested on Cirrus CI
4242
include:
43-
- rust: '1.38'
43+
- rust: '1.59'
4444
os: ubuntu-latest
45-
- rust: '1.38'
45+
- rust: '1.59'
4646
os: windows-latest
4747
- rust: stable
4848
os: ubuntu-latest
@@ -83,7 +83,7 @@ jobs:
8383
fail-fast: false
8484
matrix:
8585
rust:
86-
- '1.38'
86+
- '1.59'
8787
- nightly
8888
runs-on: ubuntu-latest
8989
steps:

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name = "crossbeam"
66
# - Create "crossbeam-X.Y.Z" git tag
77
version = "0.8.2"
88
edition = "2018"
9-
rust-version = "1.38"
9+
rust-version = "1.59"
1010
license = "MIT OR Apache-2.0"
1111
repository = "https://github.com/crossbeam-rs/crossbeam"
1212
homepage = "https://github.com/crossbeam-rs/crossbeam"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ https://github.com/crossbeam-rs/crossbeam#license)
88
https://crates.io/crates/crossbeam)
99
[![Documentation](https://docs.rs/crossbeam/badge.svg)](
1010
https://docs.rs/crossbeam)
11-
[![Rust 1.38+](https://img.shields.io/badge/rust-1.38+-lightgray.svg)](
11+
[![Rust 1.59+](https://img.shields.io/badge/rust-1.59+-lightgray.svg)](
1212
https://www.rust-lang.org)
1313
[![chat](https://img.shields.io/discord/569610676205781012.svg?logo=discord)](https://discord.com/invite/JXYwgWZ)
1414

@@ -94,7 +94,7 @@ crossbeam = "0.8"
9494

9595
Crossbeam supports stable Rust releases going back at least six months,
9696
and every time the minimum supported Rust version is increased, a new minor
97-
version is released. Currently, the minimum supported Rust version is 1.38.
97+
version is released. Currently, the minimum supported Rust version is 1.59.
9898

9999
## Contributing
100100

crossbeam-channel/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name = "crossbeam-channel"
66
# - Create "crossbeam-channel-X.Y.Z" git tag
77
version = "0.5.8"
88
edition = "2018"
9-
rust-version = "1.38"
9+
rust-version = "1.59"
1010
license = "MIT OR Apache-2.0"
1111
repository = "https://github.com/crossbeam-rs/crossbeam"
1212
homepage = "https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-channel"

crossbeam-channel/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-channel#license)
88
https://crates.io/crates/crossbeam-channel)
99
[![Documentation](https://docs.rs/crossbeam-channel/badge.svg)](
1010
https://docs.rs/crossbeam-channel)
11-
[![Rust 1.38+](https://img.shields.io/badge/rust-1.38+-lightgray.svg)](
11+
[![Rust 1.59+](https://img.shields.io/badge/rust-1.59+-lightgray.svg)](
1212
https://www.rust-lang.org)
1313
[![chat](https://img.shields.io/discord/569610676205781012.svg?logo=discord)](https://discord.com/invite/JXYwgWZ)
1414

@@ -48,7 +48,7 @@ crossbeam-channel = "0.5"
4848

4949
Crossbeam Channel supports stable Rust releases going back at least six months,
5050
and every time the minimum supported Rust version is increased, a new minor
51-
version is released. Currently, the minimum supported Rust version is 1.38.
51+
version is released. Currently, the minimum supported Rust version is 1.59.
5252

5353
## License
5454

crossbeam-channel/examples/stopwatch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fn main() {
1818
// Creates a channel that gets a message every time `SIGINT` is signalled.
1919
fn sigint_notifier() -> io::Result<Receiver<()>> {
2020
let (s, r) = bounded(100);
21-
let mut signals = Signals::new(&[SIGINT])?;
21+
let mut signals = Signals::new([SIGINT])?;
2222

2323
thread::spawn(move || {
2424
for _ in signals.forever() {

crossbeam-channel/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@
335335
unreachable_pub
336336
)]
337337
#![cfg_attr(not(feature = "std"), no_std)]
338+
#![allow(clippy::match_like_matches_macro)]
338339

339340
use cfg_if::cfg_if;
340341

crossbeam-channel/src/select.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ impl From<usize> for Selected {
7979
}
8080
}
8181

82-
impl Into<usize> for Selected {
82+
impl From<Selected> for usize {
8383
#[inline]
84-
fn into(self) -> usize {
85-
match self {
84+
fn from(val: Selected) -> Self {
85+
match val {
8686
Selected::Waiting => 0,
8787
Selected::Aborted => 1,
8888
Selected::Disconnected => 2,

crossbeam-deque/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name = "crossbeam-deque"
66
# - Create "crossbeam-deque-X.Y.Z" git tag
77
version = "0.8.3"
88
edition = "2018"
9-
rust-version = "1.38"
9+
rust-version = "1.59"
1010
license = "MIT OR Apache-2.0"
1111
repository = "https://github.com/crossbeam-rs/crossbeam"
1212
homepage = "https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-deque"

crossbeam-deque/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ https://github.com/crossbeam-rs/crossbeam/tree/master/crossbeam-deque#license)
88
https://crates.io/crates/crossbeam-deque)
99
[![Documentation](https://docs.rs/crossbeam-deque/badge.svg)](
1010
https://docs.rs/crossbeam-deque)
11-
[![Rust 1.38+](https://img.shields.io/badge/rust-1.38+-lightgray.svg)](
11+
[![Rust 1.59+](https://img.shields.io/badge/rust-1.59+-lightgray.svg)](
1212
https://www.rust-lang.org)
1313
[![chat](https://img.shields.io/discord/569610676205781012.svg?logo=discord)](https://discord.com/invite/JXYwgWZ)
1414

@@ -28,7 +28,7 @@ crossbeam-deque = "0.8"
2828

2929
Crossbeam Deque supports stable Rust releases going back at least six months,
3030
and every time the minimum supported Rust version is increased, a new minor
31-
version is released. Currently, the minimum supported Rust version is 1.38.
31+
version is released. Currently, the minimum supported Rust version is 1.59.
3232

3333
## License
3434

0 commit comments

Comments
 (0)