Skip to content

Commit 4464e44

Browse files
committed
syntax: update a deriving error message to use the new syntax
1 parent 74807b1 commit 4464e44

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/libsyntax/ext/deriving/clone.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,7 @@ fn expand_deriving_clone_struct_method(cx: @ext_ctxt,
188188
fields.push(field);
189189
}
190190
unnamed_field => {
191-
cx.span_bug(span,
192-
~"unnamed fields in \
193-
expand_deriving_clone_struct_method");
191+
cx.span_bug(span, ~"unnamed fields in `deriving(Clone)`");
194192
}
195193
}
196194
}

src/libsyntax/ext/deriving/eq.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ fn expand_deriving_eq_struct_method(cx: @ext_ctxt,
289289
&mut outer_expr);
290290
}
291291
unnamed_field => {
292-
cx.span_unimpl(span, ~"unnamed fields with `deriving_eq`");
292+
cx.span_unimpl(span, ~"unnamed fields with `deriving(Eq)`");
293293
}
294294
}
295295
}

src/libsyntax/ext/deriving/iter_bytes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ fn expand_deriving_iter_bytes_struct_method(cx: @ext_ctxt,
191191
}
192192
unnamed_field => {
193193
cx.span_unimpl(span,
194-
~"unnamed fields with `deriving_iter_bytes`");
194+
~"unnamed fields with `deriving(IterBytes)`");
195195
}
196196
}
197197
}

0 commit comments

Comments
 (0)