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>>>;
2020
2121thread_local ! {
2222 /// 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 {
2424 Cell :: new( None )
2525 }
2626}
Original file line number Diff line number Diff line change @@ -204,6 +204,6 @@ impl Drop for SyncWaker {
204204pub fn current_thread_id ( ) -> usize {
205205 // `u8` is not drop so this variable will be available during thread destruction,
206206 // whereas `thread::current()` would not be
207- thread_local ! { static DUMMY : u8 = 0 }
207+ thread_local ! { static DUMMY : u8 = const { 0 } }
208208 DUMMY . with ( |x| ( x as * const u8 ) . addr ( ) )
209209}
You can’t perform that action at this time.
0 commit comments