Skip to content

Commit f55cc5a

Browse files
committed
syntax: Replace [].tail with the stable [1..] syntax
1 parent 4ddde14 commit f55cc5a

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
@@ -1104,7 +1104,7 @@ impl<'a> MethodDef<'a> {
11041104
subpats.push(p);
11051105
idents
11061106
};
1107-
for self_arg_name in self_arg_names.tail() {
1107+
for self_arg_name in &self_arg_names[1..] {
11081108
let (p, idents) = mk_self_pat(cx, &self_arg_name[..]);
11091109
subpats.push(p);
11101110
self_pats_idents.push(idents);

0 commit comments

Comments
 (0)