diff options
| author | The 8472 <git@infinite-source.de> | 2024-08-13 23:54:54 +0200 |
|---|---|---|
| committer | The 8472 <git@infinite-source.de> | 2024-08-14 20:50:04 +0200 |
| commit | 6d8f0bd930dc0ab9c72fc89583e74500a665e2ba (patch) | |
| tree | 662ba025725a0ef377a7e22388fb8527f2311e03 /library/alloc/src/alloc.rs | |
| parent | 80eb5a8e910e5185d47cdefe3732d839c78a5e7e (diff) | |
| download | rust-6d8f0bd930dc0ab9c72fc89583e74500a665e2ba.tar.gz rust-6d8f0bd930dc0ab9c72fc89583e74500a665e2ba.zip | |
apply #[optimize(size)] to #[cold] ones and part of the panick machinery
Diffstat (limited to 'library/alloc/src/alloc.rs')
| -rw-r--r-- | library/alloc/src/alloc.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/alloc/src/alloc.rs b/library/alloc/src/alloc.rs index db2d752cfde..cddf4f6f399 100644 --- a/library/alloc/src/alloc.rs +++ b/library/alloc/src/alloc.rs @@ -372,6 +372,7 @@ extern "Rust" { #[rustc_const_unstable(feature = "const_alloc_error", issue = "92523")] #[cfg(all(not(no_global_oom_handling), not(test)))] #[cold] +#[optimize(size)] pub const fn handle_alloc_error(layout: Layout) -> ! { const fn ct_error(_: Layout) -> ! { panic!("allocation failed"); |
