Skip to content

Commit 3944c15

Browse files
committed
update docs of missing_abi lint
1 parent bd53aa3 commit 3944c15

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

compiler/rustc_lint_defs/src/builtin.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -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 been
3725+
/// 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"

0 commit comments

Comments
 (0)