warn(non_camel_case_types) by default
This commit is contained in:
parent
008bb6fe06
commit
f563c0b525
|
@ -157,7 +157,7 @@ fn get_lint_dict() -> lint_dict {
|
|||
(~"non_camel_case_types",
|
||||
@{lint: non_camel_case_types,
|
||||
desc: ~"types, variants and traits must have camel case names",
|
||||
default: allow}),
|
||||
default: warn}),
|
||||
|
||||
(~"managed_heap_memory",
|
||||
@{lint: managed_heap_memory,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#[forbid(heap_memory)];
|
||||
|
||||
type foo = { //~ ERROR type uses managed
|
||||
type Foo = { //~ ERROR type uses managed
|
||||
x: @int
|
||||
};
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#[forbid(managed_heap_memory)];
|
||||
|
||||
type foo = { //~ ERROR type uses managed
|
||||
type Foo = { //~ ERROR type uses managed
|
||||
x: @int
|
||||
};
|
||||
|
||||
fn main() {
|
||||
let _x : foo = {x : @10};
|
||||
let _x : Foo = {x : @10};
|
||||
//~^ ERROR type uses managed
|
||||
//~^^ ERROR type uses managed
|
||||
}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#[forbid(owned_heap_memory)];
|
||||
|
||||
type foo = { //~ ERROR type uses owned
|
||||
type Foo = { //~ ERROR type uses owned
|
||||
x: ~int
|
||||
};
|
||||
|
||||
fn main() {
|
||||
let _x : foo = {x : ~10};
|
||||
let _x : Foo = {x : ~10};
|
||||
//~^ ERROR type uses owned
|
||||
//~^^ ERROR type uses owned
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue