mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-21 03:14:11 +00:00
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
This commit is contained in:
commit
94eea0abff
@ -3706,7 +3706,7 @@ declare_lint_pass!(UnusedDocComment => [UNUSED_DOC_COMMENTS]);
|
|||||||
|
|
||||||
declare_lint! {
|
declare_lint! {
|
||||||
/// The `missing_abi` lint detects cases where the ABI is omitted from
|
/// The `missing_abi` lint detects cases where the ABI is omitted from
|
||||||
/// extern declarations.
|
/// `extern` declarations.
|
||||||
///
|
///
|
||||||
/// ### Example
|
/// ### Example
|
||||||
///
|
///
|
||||||
@ -3720,10 +3720,12 @@ declare_lint! {
|
|||||||
///
|
///
|
||||||
/// ### Explanation
|
/// ### Explanation
|
||||||
///
|
///
|
||||||
/// Historically, Rust implicitly selected C as the ABI for extern
|
/// For historic reasons, Rust implicitly selects `C` as the default ABI for
|
||||||
/// declarations. We expect to add new ABIs, like `C-unwind`, in the future,
|
/// `extern` declarations. [Other ABIs] like `C-unwind` and `system` have
|
||||||
/// though this has not yet happened, and especially with their addition
|
/// been added since then, and especially with their addition seeing the ABI
|
||||||
/// seeing the ABI easily will make code review easier.
|
/// easily makes code review easier.
|
||||||
|
///
|
||||||
|
/// [Other ABIs]: https://doc.rust-lang.org/reference/items/external-blocks.html#abi
|
||||||
pub MISSING_ABI,
|
pub MISSING_ABI,
|
||||||
Allow,
|
Allow,
|
||||||
"No declared ABI for extern declaration"
|
"No declared ABI for extern declaration"
|
||||||
|
Loading…
Reference in New Issue
Block a user