diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-01-15 21:17:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-15 21:17:34 +0100 |
| commit | 5610231454f81d09f0a21f7fbdf58ad44898759c (patch) | |
| tree | 51cfa0c21ff266245319e5bfb889bd9b11fa76aa /compiler/rustc_codegen_llvm/src | |
| parent | 72180b348b95f3df16f245ff90524b23d7f4bd0c (diff) | |
| parent | 92ced4a12e60811b67ed98c79c77c151581b7e07 (diff) | |
| download | rust-5610231454f81d09f0a21f7fbdf58ad44898759c.tar.gz rust-5610231454f81d09f0a21f7fbdf58ad44898759c.zip | |
Rollup merge of #106896 - Ezrashaw:str-cast-bool-emptyness, r=compiler-errors
suggest `is_empty` for collections when casting to `bool` Fixes #106883 Matches on slices, `String` and `str`. It would be nice to do this with something like `Deref<Target=str>` as well, but AFAIK it's not possible in this part of the compiler.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
