about summary refs log tree commit diff
path: root/library/std/src/panic.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-05-24 15:42:07 +0200
committerRalf Jung <post@ralfj.de>2025-05-24 16:32:00 +0200
commit1827bc0f39024c18e810feb42d203d68d8111a7c (patch)
tree46692abe2523073d9732d181e5db68135d5ef98a /library/std/src/panic.rs
parent3de4f1ccf3873782fae2a3883d029ed3d4542581 (diff)
downloadrust-1827bc0f39024c18e810feb42d203d68d8111a7c.tar.gz
rust-1827bc0f39024c18e810feb42d203d68d8111a7c.zip
rename internal panicking::try to catch_unwind
Diffstat (limited to 'library/std/src/panic.rs')
-rw-r--r--library/std/src/panic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/panic.rs b/library/std/src/panic.rs
index f3b26ac64df..234fb284a59 100644
--- a/library/std/src/panic.rs
+++ b/library/std/src/panic.rs
@@ -356,7 +356,7 @@ pub use core::panic::abort_unwind;
 /// ```
 #[stable(feature = "catch_unwind", since = "1.9.0")]
 pub fn catch_unwind<F: FnOnce() -> R + UnwindSafe, R>(f: F) -> Result<R> {
-    unsafe { panicking::r#try(f) }
+    unsafe { panicking::catch_unwind(f) }
 }
 
 /// Triggers a panic without invoking the panic hook.