rust/library/alloc/src/vec
bors e71f952912 Auto merge of #129063 - the8472:cold-opt-size, r=Amanieu
Apply size optimizations to panic machinery and some cold functions

* std dependencies gimli and addr2line are now built with opt-level=s
* various panic-related methods and `#[cold]` methods are now marked `#[optimize(size)]`

Panics should be cold enough that it doesn't make sense to optimize them for speed. The only tradeoff here is if someone does a lot of backtrace captures (without panics) and printing then the opt-level change might impact their perf.

Seems to be the first use of the optimize attribute. Tracking issue #54882
2024-09-02 00:58:50 +00:00
..
cow.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
drain.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
extract_if.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
in_place_collect.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
in_place_drop.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
into_iter.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
is_zero.rs Use generic NonZero everywhere in alloc. 2024-02-22 15:17:34 +01:00
mod.rs Auto merge of #129063 - the8472:cold-opt-size, r=Amanieu 2024-09-02 00:58:50 +00:00
partial_eq.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
set_len_on_drop.rs Tune RepeatWith::try_fold and Take::for_each and Vec::extend_trusted 2022-11-24 19:14:19 -08:00
spec_extend.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
spec_from_elem.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
spec_from_iter.rs Avoid more NonNull-raw-NonNull roundtrips in Vec 2024-04-12 18:14:29 -04:00
spec_from_iter_nested.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
splice.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00