After #61541 is merged, we should have a look at
|
let code = match (token_tree.len(), token_tree.get(0)) { |
and replace all such workaround matches like that with matches that use slice patterns.
More examples in https://github.com/rust-lang/rust/blob/master/src/libsyntax/parse/mod.rs
After #61541 is merged, we should have a look at
rust/src/libsyntax/diagnostics/plugin.rs
Line 36 in 817d2fe
More examples in https://github.com/rust-lang/rust/blob/master/src/libsyntax/parse/mod.rs