Skip to content

Commit f563c0b

Browse files
committed
warn(non_camel_case_types) by default
1 parent 008bb6f commit f563c0b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/rustc/middle/lint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ fn get_lint_dict() -> lint_dict {
157157
(~"non_camel_case_types",
158158
@{lint: non_camel_case_types,
159159
desc: ~"types, variants and traits must have camel case names",
160-
default: allow}),
160+
default: warn}),
161161

162162
(~"managed_heap_memory",
163163
@{lint: managed_heap_memory,

src/test/compile-fail/lint-heap-memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#[forbid(heap_memory)];
22

3-
type foo = { //~ ERROR type uses managed
3+
type Foo = { //~ ERROR type uses managed
44
x: @int
55
};
66

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

3-
type foo = { //~ ERROR type uses managed
3+
type Foo = { //~ ERROR type uses managed
44
x: @int
55
};
66

77
fn main() {
8-
let _x : foo = {x : @10};
8+
let _x : Foo = {x : @10};
99
//~^ ERROR type uses managed
1010
//~^^ ERROR type uses managed
1111
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#[forbid(owned_heap_memory)];
22

3-
type foo = { //~ ERROR type uses owned
3+
type Foo = { //~ ERROR type uses owned
44
x: ~int
55
};
66

77
fn main() {
8-
let _x : foo = {x : ~10};
8+
let _x : Foo = {x : ~10};
99
//~^ ERROR type uses owned
1010
//~^^ ERROR type uses owned
1111
}

0 commit comments

Comments
 (0)