Rollup merge of #136097 - yotamofek:check-len-and-index, r=petrochenkov
rustc_ast: replace some len-checks + indexing with slice patterns etc.
This commit is contained in:
commit
1d56295d1d
rustc_ast: replace some len-checks + indexing with slice patterns etc.