rust-lang/rust-clippy

Lint on method/struct fields sharing the same name

Open

#1,481 建立於 2017年1月27日

在 GitHub 查看
 (7 留言) (0 反應) (1 負責人)Rust (1,391 fork)batch import
A-lintL-styleT-middlegood first issue

倉庫指標

Star
 (10,406 star)
PR 合併指標
 (平均合併 19天 22小時) (30 天內合併 113 個 PR)

描述

Would it be possible to lint on the situation in which a struct field shares a name with a struct method? For example, in the following situation:

struct Foo {
  bar: i32 
}

impl Foo {
  fn bar(self);
}

貢獻者指南