diff options
| author | bors <bors@rust-lang.org> | 2023-03-09 17:15:23 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-03-09 17:15:23 +0000 |
| commit | 9074da0bd734895bc350b0d0f618ea6424a0205d (patch) | |
| tree | 6bdadc45b81f06075f4d0f3253bff53f73c3b224 /compiler/rustc_codegen_llvm/src | |
| parent | a45f71265cc8781c35ca9aa60f6e284d4d121996 (diff) | |
| parent | 536905278ff2a4fb057193e3592f7f5dc64eb2d7 (diff) | |
| download | rust-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
