1
Fork 0

Auto merge of #98770 - klensy:no-string-dupes-ugly, r=cjgillot

rmeta: avoid embedding `StabilityLevel::Unstable` reason multiple times into .rmeta\.rlib files

Avoids bloating size of some rmeta\rlib files by not placing default string for `StabilityLevel::Unstable` reason multiple times, affects only stdlib\rustc artifacts. For stdlib cuts about 3% (diff of total size for patched\unpatched *.rmeta files of stage1-std) of file size, depending on crates.

fixes #88180
This commit is contained in:
bors 2022-07-25 05:27:17 +00:00
commit 7f93d4aa0d
5 changed files with 46 additions and 9 deletions

View file

@ -1528,6 +1528,9 @@ symbols! {
unsized_locals,
unsized_tuple_coercion,
unstable,
unstable_location_reason_default: "this crate is being loaded from the sysroot, an \
unstable location; did you mean to load this crate \
from crates.io via `Cargo.toml` instead?",
untagged_unions,
unused_imports,
unused_qualifications,