diff options
| author | bors <bors@rust-lang.org> | 2023-11-02 09:23:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-02 09:23:39 +0000 |
| commit | 01a0a3666681b88c3cab5ffc440bdd74352093dd (patch) | |
| tree | fb23302ae2ba07b9800ebc277a4010e10098df6d /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 919f698da0f5917d9f9620e510b69a81234249bc (diff) | |
| parent | 61c76dd4ffd8c96acb45bfcd290f95ae0938513e (diff) | |
| download | rust-01a0a3666681b88c3cab5ffc440bdd74352093dd.tar.gz rust-01a0a3666681b88c3cab5ffc440bdd74352093dd.zip | |
Auto merge of #11744 - matthri:get-first-deque-fix, r=Jarcho
Fix get_first false negative for VecDeque fixes #11695 Also run the lint on `VecDeque` and suggest using `.front()` instead of `.get(0)` when trying to access the first element. PS: At first I implemented the VecDeque Lint in a separate `if_chain` (see the previous commit). Let me know if thats the preferred way, then I will remove the refactoring into one block. changelog: [`get_first`]: fix false negative: Also lint `VecDeque` and suggest using `front()`
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
0 files changed, 0 insertions, 0 deletions
