about summary refs log tree commit diff
path: root/library/alloc/src/alloc.rs
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2023-03-23 23:39:41 +0000
committerAmanieu d'Antras <amanieu@gmail.com>2023-04-16 11:50:32 -0700
commit4b981c26487ebe56de6b3000fcd98713804beefc (patch)
treed50840628110d5d096f4dfca8fc8636f8adddae9 /library/alloc/src/alloc.rs
parentabc0660118cc95f47445fd33502a11dd448f5968 (diff)
downloadrust-4b981c26487ebe56de6b3000fcd98713804beefc.tar.gz
rust-4b981c26487ebe56de6b3000fcd98713804beefc.zip
Rename -Zoom=panic to -Zoom=unwind
Diffstat (limited to 'library/alloc/src/alloc.rs')
-rw-r--r--library/alloc/src/alloc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/alloc.rs b/library/alloc/src/alloc.rs
index 97bedc604da..0db23e55a86 100644
--- a/library/alloc/src/alloc.rs
+++ b/library/alloc/src/alloc.rs
@@ -398,7 +398,7 @@ fn rust_oom(layout: Layout) -> ! {
         fn panic_impl(pi: &core::panic::PanicInfo<'_>) -> !;
 
         // This symbol is emitted by rustc .
-        // Its value depends on the -Zoom={panic,abort} compiler option.
+        // Its value depends on the -Zoom={unwind,abort} compiler option.
         static __rust_alloc_error_handler_should_panic: u8;
     }
 
@@ -458,7 +458,7 @@ pub mod __alloc_error_handler {
     pub unsafe fn __rdl_oom(size: usize, _align: usize) -> ! {
         extern "Rust" {
             // This symbol is emitted by rustc next to __rust_alloc_error_handler.
-            // Its value depends on the -Zoom={panic,abort} compiler option.
+            // Its value depends on the -Zoom={unwind,abort} compiler option.
             static __rust_alloc_error_handler_should_panic: u8;
         }