Skip to content

Commit

Permalink
syntax: Replace [].tail with the stable [1..] syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
erickt committed Apr 21, 2015
1 parent 2937cce commit a2cfe38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsyntax/ext/deriving/generic/mod.rs
Expand Up @@ -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);
Expand Down

0 comments on commit a2cfe38

Please sign in to comment.