mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-28 00:00:11 +02:00
chore: bump to newer nightly (#1284)
This commit is contained in:
@@ -362,6 +362,7 @@ fn is_tx_closed(bits: usize) -> bool {
|
||||
|
||||
impl<T> Values<T> {
|
||||
unsafe fn uninitialized() -> Values<T> {
|
||||
#[allow(deprecated)]
|
||||
let mut vals = mem::uninitialized();
|
||||
|
||||
// When fuzzing, `CausalCell` needs to be initialized.
|
||||
|
||||
@@ -112,6 +112,7 @@ struct State(usize);
|
||||
/// # t.join().unwrap().wait().unwrap();
|
||||
/// ```
|
||||
pub fn channel<T>() -> (Sender<T>, Receiver<T>) {
|
||||
#[allow(deprecated)]
|
||||
let inner = Arc::new(Inner {
|
||||
state: AtomicUsize::new(State::new().as_usize()),
|
||||
value: CausalCell::new(None),
|
||||
|
||||
Reference in New Issue
Block a user