syntax: Replace [].tail with the stable [1..] syntax

This commit is contained in:
Erick Tryzelaar 2015-04-16 21:21:26 -07:00
parent 2937cce70c
commit a2cfe38505
1 changed files with 1 additions and 1 deletions

View File

@ -1103,7 +1103,7 @@ impl<'a> MethodDef<'a> {
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);