Skip to content

upper_case_acronyms warns on public items #6803

@jyn514

Description

@jyn514

I recently ran nightly clippy on a project and got the following warning:

error: name `YDBError` contains a capitalized acronym
  --> src/simple_api/mod.rs:95:12
   |
95 | pub struct YDBError {
   |            ^^^^^^^^ help: consider making the acronym lowercase, except the initial letter: `YdbError`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms

The lint is correct, it's not a false positive. However, fixing it would be a breaking change since YDBError is public. Maybe this lint should be off by default since it's only a style lint and it can be hard to fix?

I originally just added #[allow(clippy::upper_case_literals)], but that gives more warnings on stable until this rides the release trains unless I add allow(unknown_renamed_lints), which I'd rather not do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingI-false-positiveIssue: The lint was triggered on code it shouldn't have

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions