Skip to content

Commit cefb1ec

Browse files
committed
Do not document a rustc-lint as a language rule
We don't document rustc lints as language rules. I think in this case, it's fine to mention it, but it should just be in a note block.
1 parent 364fff1 commit cefb1ec

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/linkage.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,11 @@ If a Rust artifact is potentially unwinding, then all its crates must be built w
302302
> This restriction can only be violated when mixing code with different `-C panic` flags
303303
> while also using a non-`rustc` linker. Most users to not have to be concerned about this.
304304
305-
r[link.unwinding.prohibited.lint.ffi_unwind_calls]
306-
To guarantee that a library will be sound (and linkable with `rustc`)
307-
regardless of the panic mode used at link-time, the [`ffi_unwind_calls` lint]
308-
may be used. The lint flags any calls to `-unwind` foreign functions or
309-
function pointers.
305+
> [!NOTE]
306+
> To guarantee that a library will be sound (and linkable with `rustc`)
307+
> regardless of the panic mode used at link-time, the [`ffi_unwind_calls` lint]
308+
> may be used. The lint flags any calls to `-unwind` foreign functions or
309+
> function pointers.
310310
311311
[`cfg` attribute `target_feature` option]: conditional-compilation.md#target_feature
312312
[`ffi_unwind_calls` lint]: ../rustc/lints/listing/allowed-by-default.html#ffi-unwind-calls

0 commit comments

Comments
 (0)