File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -426,8 +426,8 @@ let x = (&temp()).use_temp(); // ERROR
426
426
r[ destructors.forget]
427
427
## Not running destructors
428
428
429
- r[ destructors.manually-preventing ]
430
- ### Manually preventing destructors
429
+ r[ destructors.manually-suppressing ]
430
+ ### Manually suppressing destructors
431
431
432
432
[ ` std::mem::forget ` ] can be used to prevent the destructor of a variable from being run,
433
433
and [ ` std::mem::ManuallyDrop ` ] provides a wrapper to prevent a
Original file line number Diff line number Diff line change @@ -278,10 +278,11 @@ Passing `rlib`s directly into your foreign linker is currently unsupported.
278
278
r[ link.unwinding]
279
279
### Prohibited linkage and unwinding
280
280
281
- r[ link.unwinding.consistency ]
281
+ r[ link.unwinding.intro ]
282
282
If you are * not* using ` rustc ` to link Rust files, you must take care to ensure that unwinding is
283
- handled consistently across the entire binary. This includes using ` dlopen ` or similar facilities
284
- where linking is done by the system runtime without ` rustc ` being involved.
283
+ handled consistently across the entire binary. Linking without ` rustc ` includes using ` dlopen ` or similar facilities
284
+ where linking is done by the system runtime without ` rustc ` being involved. In the following,
285
+ we define what exactly is meant by "handling unwinding consistently".
285
286
286
287
r[ link.unwinding.potential]
287
288
A Rust artifact is called * potentially unwinding* if any of the following conditions is met:
You can’t perform that action at this time.
0 commit comments