Skip to content

Lint use of functions with underscore-prefixed names #13260

Closed
@laniakea64

Description

@laniakea64

What it does

Flag use of functions with underscore-prefixed names. See #13256

Advantage

Same as the existing used_underscore_binding lint.

Drawbacks

No response

Example

fn _foo() {
  println!("Foo");
}

fn main() {
  _foo();
}

Could be written as:

fn foo_() {
  println!("Foo");
}

fn main() {
  foo_();
}

Metadata

Metadata

Assignees

Labels

A-lintArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.L-pedanticLint: Belongs in the pedantic lint group

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions