diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-09-05 03:47:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-05 03:47:43 +0200 |
| commit | 94eea0abff47215aa3314aea75e9986117762533 (patch) | |
| tree | e3579ff418d4ee8796a95abfe4d595bccef53671 /compiler | |
| parent | 4261bffeb084b42e14c21b4a7b2d691497a895ea (diff) | |
| parent | 0c45d3bb705e12251eb1914816373792d081ef35 (diff) | |
| download | rust-94eea0abff47215aa3314aea75e9986117762533.tar.gz rust-94eea0abff47215aa3314aea75e9986117762533.zip | |
Rollup merge of #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
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_lint_defs/src/builtin.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs index 7063f488209..25d33126754 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -3706,7 +3706,7 @@ declare_lint_pass!(UnusedDocComment => [UNUSED_DOC_COMMENTS]); declare_lint! { /// The `missing_abi` lint detects cases where the ABI is omitted from - /// extern declarations. + /// `extern` declarations. /// /// ### Example /// @@ -3720,10 +3720,12 @@ declare_lint! { /// /// ### Explanation /// - /// Historically, Rust implicitly selected C as the ABI for extern - /// declarations. We expect to add new ABIs, like `C-unwind`, in the future, - /// though this has not yet happened, and especially with their addition - /// seeing the ABI easily will make code review easier. + /// For historic reasons, Rust implicitly selects `C` as the default ABI for + /// `extern` declarations. [Other ABIs] like `C-unwind` and `system` have + /// been added since then, and especially with their addition seeing the ABI + /// easily makes code review easier. + /// + /// [Other ABIs]: https://doc.rust-lang.org/reference/items/external-blocks.html#abi pub MISSING_ABI, Allow, "No declared ABI for extern declaration" |
