Skip to content

Commit d1339c4

Browse files
BatmanAoDdaira
andauthored
Rust version number for destructors guarantee
Co-authored-by: Daira-Emma Hopwood <[email protected]>
1 parent 7965d3d commit d1339c4

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
@@ -294,9 +294,10 @@ from the "Native unwind" column in the table.
294294
| `panic=abort` | unwinding | `panic` aborts without unwinding | abort |
295295
| `panic=abort` | non-unwinding | `panic` aborts without unwinding | [undefined behavior] |
296296

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

0 commit comments

Comments
 (0)