Open pornopatsan opened 2 years ago
Error: Parsing relabel command in comment failed: ...'ot label +' | error: empty label at >| ' I-suggest'...
Please let @rust-lang/release
know if you're having trouble with this bot.
Oh, just created issue, and then found, that it is duplicate, sorry for that https://github.com/rust-lang/rust-clippy/issues/7512 https://github.com/rust-lang/rust-clippy/issues/7512 https://github.com/rust-lang/rust-clippy/issues/6066
Lint name: needless_collect
I tried this code:
I expected to see no warnings: Because If I want to read element as
index
, I need to first read all elements before and store them somewhere. So I think collect is appropriate here.Instead, this happened:
What is more, suggested changes do not compile. @rustbot label +I-suggestion-causes-error
If I write like this
I, expectedly, get error from rust compiler
Meta
Rust version (
rustc -Vv
):