-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-panicArea: Panicking machineryArea: Panicking machineryI-heavyIssue: Problems and improvements with respect to binary size of generated code.Issue: Problems and improvements with respect to binary size of generated code.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Description
#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
if let Some(path) = path | |
&& let Ok(mut out) = crate::fs::File::options().create(true).append(true).open(&path) | |
{ | |
write(&mut out, BacktraceStyle::full()); | |
} |
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)
Metadata
Metadata
Assignees
Labels
A-panicArea: Panicking machineryArea: Panicking machineryI-heavyIssue: Problems and improvements with respect to binary size of generated code.Issue: Problems and improvements with respect to binary size of generated code.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.