File tree 1 file changed +7
-5
lines changed
compiler/rustc_lint_defs/src
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]);
3706
3706
3707
3707
declare_lint ! {
3708
3708
/// The `missing_abi` lint detects cases where the ABI is omitted from
3709
- /// extern declarations.
3709
+ /// ` extern` declarations.
3710
3710
///
3711
3711
/// ### Example
3712
3712
///
@@ -3720,10 +3720,12 @@ declare_lint! {
3720
3720
///
3721
3721
/// ### Explanation
3722
3722
///
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
3727
3729
pub MISSING_ABI ,
3728
3730
Allow ,
3729
3731
"No declared ABI for extern declaration"
You can’t perform that action at this time.
0 commit comments