Update library/std/src/sync/mpsc/shared.rs

This commit is contained in:
Mara Bos 2021-09-22 20:20:33 +02:00 committed by GitHub
parent f63096e4f2
commit 598e5b27be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,7 +251,7 @@ impl<T> Packet<T> {
assert_eq!(
self.to_wake.load(Ordering::SeqCst),
0,
"This is a known bug in rust. See https://github.com/rust-lang/rust/issues/39364"
"This is a known bug in the Rust standard library. See https://github.com/rust-lang/rust/issues/39364"
);
let ptr = token.cast_to_usize();
self.to_wake.store(ptr, Ordering::SeqCst);