rust/compiler
Matthias Krüger 5610231454
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.
2023-01-15 21:17:34 +01:00
..
2023-01-12 02:28:37 +00:00
2023-01-12 02:28:37 +00:00
2023-01-12 02:28:37 +00:00
2023-01-12 02:28:38 +00:00
2023-01-12 02:28:37 +00:00
2023-01-12 02:28:37 +00:00