diff options
| author | bors <bors@rust-lang.org> | 2019-08-01 14:09:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-08-01 14:09:59 +0000 |
| commit | 18a7dce4dac18728e03668e17fb685f43954751a (patch) | |
| tree | eebde64c8a8a51c2a0efb7dddeb87d3761be695e /src/test/incremental/thinlto | |
| parent | 6e6ee873dc51533ed5baed2f84c1b50460d0f668 (diff) | |
| parent | ccc3257c91f3649126da00644c205759a941623b (diff) | |
| download | rust-18a7dce4dac18728e03668e17fb685f43954751a.tar.gz rust-18a7dce4dac18728e03668e17fb685f43954751a.zip | |
Auto merge of #4314 - chansuke:add-negation-to-is_empty, r=flip1995
Add negation to `len_zero` lint to show more explicit message.
Fixes #4304 I have updated the `len_zero` to show the required negation in case of like the below case.
```
fn main() {
let v = vec![1];
if v.len() > 0 {
}
}
```
changelog: Clarify suggestion of `len_zero` lint.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
