about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-03-09 17:15:23 +0000
committerbors <bors@rust-lang.org>2023-03-09 17:15:23 +0000
commit9074da0bd734895bc350b0d0f618ea6424a0205d (patch)
tree6bdadc45b81f06075f4d0f3253bff53f73c3b224 /compiler/rustc_codegen_llvm/src
parenta45f71265cc8781c35ca9aa60f6e284d4d121996 (diff)
parent536905278ff2a4fb057193e3592f7f5dc64eb2d7 (diff)
downloadrust-9074da0bd734895bc350b0d0f618ea6424a0205d.tar.gz
rust-9074da0bd734895bc350b0d0f618ea6424a0205d.zip
Auto merge of #10359 - mladedav:dm/private/is-empty, r=llogiq
Include async functions in the len_without_is_empty

fixes #7232

Changes done to the functionality:

Allowing different error types for the functions was disallowed. So the following was linted before but is not after this change
```
impl Foo {
    pub len(&self) -> Result<usize, Error1> { todo!(); }
    pub is_empty(&self) -> Result<bool, Error2> { todo!(); }
}
```

---

changelog: Enhancement: [`len_without_is_empty`]: Now also detects `async` functions
[#10359](https://github.com/rust-lang/rust-clippy/pull/10359)
<!-- changelog_checked -->
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions