Skip to content

Commit 0e09686

Browse files
committed
---
yaml --- r: 23993 b: refs/heads/master c: eb35039 h: refs/heads/master i: 23991: 5caed02 v: v3
1 parent 243e95c commit 0e09686

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 5e9d38ede0f0eff5fec3ad8713897c080211d5ea
2+
refs/heads/master: eb35039fe83d6d13b5c7c08fe761ab85374c96d0
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/rustc/middle/lint.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ fn get_lint_dict() -> lint_dict {
156156

157157
(~"non_camel_case_types",
158158
@{lint: non_camel_case_types,
159-
desc: ~"types, variants and traits must have camel case names",
159+
desc: ~"types, variants and traits should have camel case names",
160160
default: warn}),
161161

162162
(~"managed_heap_memory",
@@ -605,7 +605,8 @@ fn check_item_non_camel_case_types(cx: ty::ctxt, it: @ast::item) {
605605
if !is_camel_case(cx, ident) {
606606
cx.sess.span_lint(
607607
non_camel_case_types, expr_id, item_id, span,
608-
~"type, variant, or trait must be camel case");
608+
~"type, variant, or trait should have \
609+
a camel case identifier");
609610
}
610611
}
611612

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
#[forbid(non_camel_case_types)];
22

3-
struct foo { //~ ERROR type, variant, or trait must be camel case
3+
struct foo { //~ ERROR type, variant, or trait should have a camel case identifier
44
bar: int,
55
}
66

7-
enum foo2 { //~ ERROR type, variant, or trait must be camel case
7+
enum foo2 { //~ ERROR type, variant, or trait should have a camel case identifier
88
Bar
99
}
1010

11-
struct foo3 { //~ ERROR type, variant, or trait must be camel case
11+
struct foo3 { //~ ERROR type, variant, or trait should have a camel case identifier
1212
bar: int
1313
}
1414

15-
type foo4 = int; //~ ERROR type, variant, or trait must be camel case
15+
type foo4 = int; //~ ERROR type, variant, or trait should have a camel case identifier
1616

1717
enum Foo5 {
18-
bar //~ ERROR type, variant, or trait must be camel case
18+
bar //~ ERROR type, variant, or trait should have a camel case identifier
1919
}
2020

21-
trait foo6 { //~ ERROR type, variant, or trait must be camel case
21+
trait foo6 { //~ ERROR type, variant, or trait should have a camel case identifier
2222
}
2323

2424
fn main() { }

0 commit comments

Comments
 (0)