Skip to content

Commit e3d233a

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 b7a53f3 commit e3d233a

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

0 commit comments

Comments
 (0)