Skip to content

Commit 9f2f29f

Browse files
authored
Unrolled build for rust-lang#129918
Rollup merge of rust-lang#129918 - kadiwa4:missing_abi_docs, r=Urgau Update docs of `missing_abi` lint The lint docs still said that function ABIs other than "C" have not been added yet. `@rustbot` labels: +A-docs +A-lint
2 parents 009e738 + 0c45d3b commit 9f2f29f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

compiler/rustc_lint_defs/src/builtin.rs

+7-5
Original file line numberDiff line numberDiff line change
@@ -3706,7 +3706,7 @@ declare_lint_pass!(UnusedDocComment => [UNUSED_DOC_COMMENTS]);
37063706

37073707
declare_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"

0 commit comments

Comments
 (0)