Skip to content

Commit a2cfe38

Browse files
committed
syntax: Replace [].tail with the stable [1..] syntax
1 parent 2937cce commit a2cfe38

File tree

1 file changed

+1
-1
lines changed
  • src/libsyntax/ext/deriving/generic

1 file changed

+1
-1
lines changed

src/libsyntax/ext/deriving/generic/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ impl<'a> MethodDef<'a> {
11031103
subpats.push(p);
11041104
idents
11051105
};
1106-
for self_arg_name in self_arg_names.tail() {
1106+
for self_arg_name in &self_arg_names[1..] {
11071107
let (p, idents) = mk_self_pat(cx, &self_arg_name[..]);
11081108
subpats.push(p);
11091109
self_pats_idents.push(idents);

0 commit comments

Comments
 (0)