Skip to content

Commit 869500c

Browse files
chorman0773ehuss
authored andcommitted
Move note in linkage.md
1 parent fef936d commit 869500c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/linkage.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,15 +295,16 @@ with these characteristics:
295295
> cause a link-error, since that ABI is not expected to be used as an
296296
> entrypoint into a static or shared library.
297297
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+
298302
r[link.foreign-code.prohibited.lint.ffi_unwind_calls]
299303
To guarantee that a library will be sound (and linkable with `rustc`)
300304
regardless of the panic mode used at link-time, the [`ffi_unwind_calls` lint]
301305
may be used. The lint flags any calls to `-unwind` foreign functions or
302306
function pointers.
303307

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.
307308

308309
[`cfg` attribute `target_feature` option]: conditional-compilation.md#target_feature
309310
[`ffi_unwind_calls` lint]: ../rustc/lints/listing/allowed-by-default.html#ffi-unwind-calls

0 commit comments

Comments
 (0)