Clarify safety of PanicInfo::can_unwind
This commit is contained in:
parent
c4f2d21f1a
commit
f738669b63
1 changed files with 4 additions and 0 deletions
|
@ -136,6 +136,10 @@ impl<'a> PanicInfo<'a> {
|
|||
/// This is true for most kinds of panics with the exception of panics
|
||||
/// caused by trying to unwind out of a `Drop` implementation or a function
|
||||
/// whose ABI does not support unwinding.
|
||||
///
|
||||
/// It is safe for a panic handler to unwind even when this function returns
|
||||
/// true, however this will simply cause the panic handler to be called
|
||||
/// again.
|
||||
#[must_use]
|
||||
#[unstable(feature = "panic_can_unwind", issue = "92988")]
|
||||
pub fn can_unwind(&self) -> bool {
|
||||
|
|
Loading…
Add table
Reference in a new issue