File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ type LocalStream = Arc<Mutex<Vec<u8>>>;
20
20
21
21
thread_local ! {
22
22
/// Used by the test crate to capture the output of the print macros and panics.
23
- static OUTPUT_CAPTURE : Cell <Option <LocalStream >> = {
23
+ static OUTPUT_CAPTURE : Cell <Option <LocalStream >> = const {
24
24
Cell :: new( None )
25
25
}
26
26
}
Original file line number Diff line number Diff line change @@ -204,6 +204,6 @@ impl Drop for SyncWaker {
204
204
pub fn current_thread_id ( ) -> usize {
205
205
// `u8` is not drop so this variable will be available during thread destruction,
206
206
// whereas `thread::current()` would not be
207
- thread_local ! { static DUMMY : u8 = 0 }
207
+ thread_local ! { static DUMMY : u8 = const { 0 } }
208
208
DUMMY . with ( |x| ( x as * const u8 ) . addr ( ) )
209
209
}
You can’t perform that action at this time.
0 commit comments