Skip to content

Commit 6857497

Browse files
BatmanAoDdaira
authored andcommitted
Rust version number for destructors guarantee
Co-authored-by: Daira-Emma Hopwood <[email protected]>
1 parent bc204ce commit 6857497

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/items/functions.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,10 @@ from the "Native unwind" column in the table.
293293
| `panic=abort` | unwinding | `panic` aborts without unwinding | abort |
294294
| `panic=abort` | non-unwinding | `panic` aborts without unwinding | [undefined behavior] |
295295

296-
> **Note**: With `panic=unwind`, when a `panic` is turned into an abort by a
297-
> non-unwinding ABI boundary, either no destructors (`Drop` calls) will run, or
298-
> all destructors up until the ABI boundary will run.
296+
> **Note**: The following guarantee applies from Rust 1.82 onward: with
297+
> `panic=unwind`, when a `panic` is turned into an abort by a non-unwinding
298+
> ABI boundary, either no destructors (`Drop` calls) will run, or all destructors
299+
> up until the ABI boundary will run.
299300
300301
For other considerations and limitations regarding unwinding across FFI
301302
boundaries, see the [relevant section in the Panic documentation][panic-ffi].

0 commit comments

Comments
 (0)