Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions library/core/src/task/wake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ impl RawWaker {
/// pointers to *different* functions can compare equal (since identical functions can be
/// deduplicated within a codegen unit).
///
/// This struct is guaranteed to be aligned to at least 8 bytes.
///
/// # Thread safety
/// If the [`RawWaker`] will be used to construct a [`Waker`] then
/// these functions must all be thread-safe (even though [`RawWaker`] is
Expand All @@ -106,6 +108,8 @@ impl RawWaker {
#[stable(feature = "futures_api", since = "1.36.0")]
#[allow(unpredictable_function_pointer_comparisons)]
#[derive(PartialEq, Copy, Clone, Debug)]
// For bit-stuffing pointers we guarantee align >= 8.
#[repr(align(8))]
pub struct RawWakerVTable {
/// This function will be called when the [`RawWaker`] gets cloned, e.g. when
/// the [`Waker`] in which the [`RawWaker`] is stored gets cloned.
Expand Down
2 changes: 1 addition & 1 deletion src/bootstrap/stdlib-semver-check-stamp
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ Change this file to explicitly acknowledge making a breaking change to the Rust
If this file is modified in the same PR as the breaking change, then CI will not fail due to the
breaking change being detected by cargo-semver-checks.

Last change is for: https://github.com/rust-lang/rust/pull/162909
Last change is for: https://github.com/rust-lang/rust/pull/158186
2 changes: 1 addition & 1 deletion src/doc/reference
Loading