]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #89011 - bjorn3:restructure_rt, r=dtolnay
authorbors <bors@rust-lang.org>
Wed, 29 Sep 2021 17:58:08 +0000 (17:58 +0000)
committerbors <bors@rust-lang.org>
Wed, 29 Sep 2021 17:58:08 +0000 (17:58 +0000)
commit11491938f80988c7261a1179cf71a25c379c8783
treea9d9fa6a784d7eb409400b627ff6ac1aee6722c5
parent50f9f7810c975234ce4730488d32661a76a00428
parent37608c7c501b12b634834363827e314f6750946f
Auto merge of #89011 - bjorn3:restructure_rt, r=dtolnay

Restructure std::rt

These changes should reduce binary size slightly while at the same slightly improving performance of startup, thread spawning and `std::thread::current()`. I haven't verified if the compiler is able to optimize some of these cases already, but at least for some others the compiler is unable to do these optimizations as they slightly change behavior in cases where program startup would crash anyway by omitting a backtrace and panic location.

I can remove 6f6bb16 if preferred.
library/std/src/lib.rs
library/std/src/rt.rs