mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +00:00
syntax: Replace [].tail with the stable [1..] syntax
This commit is contained in:
parent
2937cce70c
commit
a2cfe38505
|
@ -1103,7 +1103,7 @@ fn build_enum_match_tuple(
|
|||
subpats.push(p);
|
||||
idents
|
||||
};
|
||||
for self_arg_name in self_arg_names.tail() {
|
||||
for self_arg_name in &self_arg_names[1..] {
|
||||
let (p, idents) = mk_self_pat(cx, &self_arg_name[..]);
|
||||
subpats.push(p);
|
||||
self_pats_idents.push(idents);
|
||||
|
|
Loading…
Reference in a new issue