File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
compiler/rustc_lint_defs/src Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -3706,7 +3706,7 @@ declare_lint_pass!(UnusedDocComment => [UNUSED_DOC_COMMENTS]);
37063706
37073707declare_lint ! {
37083708 /// The `missing_abi` lint detects cases where the ABI is omitted from
3709- /// extern declarations.
3709+ /// ` extern` declarations.
37103710 ///
37113711 /// ### Example
37123712 ///
@@ -3720,10 +3720,12 @@ declare_lint! {
37203720 ///
37213721 /// ### Explanation
37223722 ///
3723- /// Historically, Rust implicitly selected C as the ABI for extern
3724- /// declarations. We expect to add new ABIs, like `C-unwind`, in the future,
3725- /// though this has not yet happened, and especially with their addition
3726- /// seeing the ABI easily will make code review easier.
3723+ /// For historic reasons, Rust implicitly selects `C` as the default ABI for
3724+ /// `extern` declarations. [Other ABIs] like `C-unwind` and `system` have
3725+ /// been added since then, and especially with their addition seeing the ABI
3726+ /// easily makes code review easier.
3727+ ///
3728+ /// [Other ABIs]: https://doc.rust-lang.org/reference/items/external-blocks.html#abi
37273729 pub MISSING_ABI ,
37283730 Allow ,
37293731 "No declared ABI for extern declaration"
You can’t perform that action at this time.
0 commit comments