Add linting for crate_type attribute values.

This ensures that the `crate_type` attribute always contains a value,
and does not contain an invalid value.
This commit is contained in:
a_m0d 2014-01-01 16:26:07 -05:00
parent c34ef5d7e4
commit 8965e34789
6 changed files with 35 additions and 6 deletions

View file

@ -0,0 +1,6 @@
// regression test for issue 11256
#[crate_type="foo"]; //~ ERROR invalid `crate_type` value
fn main() {
return
}

View file

@ -0,0 +1,6 @@
// regresion test for issue 11256
#[crate_type]; //~ ERROR `crate_type` requires a value
fn main() {
return
}