Skip to content

Commit b422729

Browse files
committed
---
yaml --- r: 28571 b: refs/heads/try c: eb35039 h: refs/heads/master i: 28569: c69050b 28567: e4c45c2 v: v3
1 parent e69cc80 commit b422729

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
@@ -2,7 +2,7 @@
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5-
refs/heads/try: 5e9d38ede0f0eff5fec3ad8713897c080211d5ea
5+
refs/heads/try: eb35039fe83d6d13b5c7c08fe761ab85374c96d0
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df

branches/try/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)