File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -295,15 +295,16 @@ with these characteristics:
295
295
> cause a link-error, since that ABI is not expected to be used as an
296
296
> entrypoint into a static or shared library.
297
297
298
+ > ** Note** : the restriction can only be violated when mixing code with different
299
+ > ` -C panic ` flags. This is not possible in normal use of cargo, so most users
300
+ > need not be concerned about this.
301
+
298
302
r[ link.foreign-code.prohibited.lint.ffi_unwind_calls]
299
303
To guarantee that a library will be sound (and linkable with ` rustc ` )
300
304
regardless of the panic mode used at link-time, the [ ` ffi_unwind_calls ` lint]
301
305
may be used. The lint flags any calls to ` -unwind ` foreign functions or
302
306
function pointers.
303
307
304
- > ** Note** : the restriction can only be violated when mixing code with different
305
- > ` -C panic ` flags. This is not possible in normal use of cargo, so most users
306
- > need not be concerned about this.
307
308
308
309
[ `cfg` attribute `target_feature` option ] : conditional-compilation.md#target_feature
309
310
[ `ffi_unwind_calls` lint ] : ../rustc/lints/listing/allowed-by-default.html#ffi-unwind-calls
You can’t perform that action at this time.
0 commit comments