about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-08-01 14:09:59 +0000
committerbors <bors@rust-lang.org>2019-08-01 14:09:59 +0000
commit18a7dce4dac18728e03668e17fb685f43954751a (patch)
treeeebde64c8a8a51c2a0efb7dddeb87d3761be695e /src/test/incremental/thinlto
parent6e6ee873dc51533ed5baed2f84c1b50460d0f668 (diff)
parentccc3257c91f3649126da00644c205759a941623b (diff)
downloadrust-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