Skip to content

Commit

Permalink
Merge #974
Browse files Browse the repository at this point in the history
974: Sync with v0.8 branch r=taiki-e a=taiki-e



Co-authored-by: Taiki Endo <te316e89@gmail.com>
  • Loading branch information
bors[bot] and taiki-e authored Apr 9, 2023
2 parents 5b7499b + 9515bd1 commit 94e0400
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
14 changes: 14 additions & 0 deletions crossbeam-channel/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
# Version 0.5.8

- Fix race condition in unbounded channel. (#972)

# Version 0.5.7

**Note:** This release has been yanked due to bug fixed in 0.5.8.

- Improve handling of very large timeout. (#953)

# Version 0.5.6

**Note:** This release has been yanked due to bug fixed in 0.5.8.

- Bump the minimum supported Rust version to 1.38. (#877)

# Version 0.5.5

**Note:** This release has been yanked due to bug fixed in 0.5.8.

- Replace Spinlock with Mutex. (#835)

# Version 0.5.4

**Note:** This release has been yanked due to bug fixed in 0.5.8.

- Workaround a bug in upstream related to TLS access on AArch64 Linux. (#802)

# Version 0.5.3
Expand All @@ -28,6 +40,8 @@

# Version 0.5.1

**Note:** This release has been yanked due to bug fixed in 0.5.8.

- Fix memory leak in unbounded channel. (#669)

# Version 0.5.0
Expand Down
2 changes: 1 addition & 1 deletion crossbeam-channel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name = "crossbeam-channel"
# - Update CHANGELOG.md
# - Update README.md
# - Create "crossbeam-channel-X.Y.Z" git tag
version = "0.5.7"
version = "0.5.8"
edition = "2018"
rust-version = "1.38"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 2 additions & 0 deletions crossbeam-channel/tests/same_channel.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::redundant_clone)]

use std::time::Duration;

use crossbeam_channel::{after, bounded, never, tick, unbounded};
Expand Down
4 changes: 2 additions & 2 deletions crossbeam-queue/src/array_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,9 @@ impl<T> Iterator for IntoIter<T> {
lap.wrapping_add(value.one_lap)
};
*value.head.get_mut() = new;
Option::Some(val)
Some(val)
} else {
Option::None
None
}
}
}

0 comments on commit 94e0400

Please sign in to comment.