Skip to content

Commit eb83aba

Browse files
CoAlloc: std: minor tidy
1 parent 1a84ad6 commit eb83aba

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

library/std/src/io/impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#[cfg(test)]
22
mod tests;
33

4-
use crate::alloc::{Allocator, self};
4+
use crate::alloc::{self, Allocator};
55
use crate::cmp;
66
use crate::collections::VecDeque;
77
use crate::fmt;

library/std/src/sys/hermit/thread_local_dtor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
// The this solution works like the implementation of macOS and
77
// doesn't additional OS support
88

9-
use core::alloc::PlVec;
109
use crate::mem;
10+
use core::alloc::PlVec;
1111

1212
#[thread_local]
1313
static mut DTORS: PlVec<(*mut u8, unsafe extern "C" fn(*mut u8))> = PlVec::new();

library/std/src/sys/solid/thread_local_dtor.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![cfg(target_thread_local)]
2-
#![unstable(feature = "thread_local_internals", issue = "none")]#![feature(global_co_alloc_plvec)]
2+
#![unstable(feature = "thread_local_internals", issue = "none")]
3+
#![feature(global_co_alloc_plvec)]
34
#![feature(global_co_alloc_plvec)]
45

56
// Simplify dtor registration by using a list of destructors.

0 commit comments

Comments
 (0)