non_upper_case_globals lint should be suppressed for #[no_mangle] items #36258
Labels
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
Yields compiler warning:
I think
#[no_mangle]
is a good hint that the symbol's name (incl. capitalization) is important enough that stylistic lints should be disabled for it. The lint already ignores functions inextern "C" {}
blocks, for example:The text was updated successfully, but these errors were encountered: