std: Remove #[allow] directives in sys modules
These were suppressing lots of interesting warnings! Turns out there was also quite a bit of dead code.
This commit is contained in:
parent
206ee0e853
commit
c933d44f7b
35 changed files with 86 additions and 176 deletions
|
|
@ -281,17 +281,13 @@ impl Builder {
|
|||
let my_stack_top = addr as usize;
|
||||
let my_stack_bottom = my_stack_top - stack_size + 1024;
|
||||
unsafe {
|
||||
stack::record_os_managed_stack_bounds(my_stack_bottom, my_stack_top);
|
||||
if let Some(name) = their_thread.name() {
|
||||
imp::set_name(name);
|
||||
}
|
||||
stack::record_os_managed_stack_bounds(my_stack_bottom,
|
||||
my_stack_top);
|
||||
thread_info::set(imp::guard::current(), their_thread);
|
||||
}
|
||||
match their_thread.name() {
|
||||
Some(name) => unsafe { imp::set_name(name); },
|
||||
None => {}
|
||||
}
|
||||
thread_info::set(
|
||||
(my_stack_bottom, my_stack_top),
|
||||
unsafe { imp::guard::current() },
|
||||
their_thread
|
||||
);
|
||||
|
||||
let mut output = None;
|
||||
let f: Thunk<(), T> = if stdout.is_some() || stderr.is_some() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue