#108714 slightly increased default binary size (checked on x86_64-pc-windows-msvc), the reason is now code
|
if let Some(path) = path |
|
&& let Ok(mut out) = crate::fs::File::options().create(true).append(true).open(&path) |
|
{ |
|
write(&mut out, BacktraceStyle::full()); |
|
} |
unconditionally includes File::open (~ 2kb out of 130) and friends. can be tracked back by new imports of
CreateFileW,
GetFullPathNameW for
rustc empty.rs -Copt-level=3 -Cdebuginfo=0 -Clto=yes -Ccodegen-units=1 -Cpanic=abort --edition=2018 where
empty.rs is
fn main(){}
Originally posted by @klensy in #108714 (comment)
#108714 slightly increased default binary size (checked on x86_64-pc-windows-msvc), the reason is now code
rust/library/std/src/panicking.rs
Lines 304 to 308 in a0c28cd
CreateFileW,GetFullPathNameWforrustc empty.rs -Copt-level=3 -Cdebuginfo=0 -Clto=yes -Ccodegen-units=1 -Cpanic=abort --edition=2018whereempty.rsisfn main(){}Originally posted by @klensy in #108714 (comment)