syntax: Tidy up parsing the new attribute syntax
This commit is contained in:
parent
4e00cf6134
commit
84a91b8603
14 changed files with 56 additions and 54 deletions
|
|
@ -10,5 +10,5 @@
|
|||
|
||||
fn main() {}
|
||||
|
||||
#![lang(foo)] //~ ERROR An inner attribute was not permitted in this context.
|
||||
fn foo() {}
|
||||
#![lang(foo)] //~ ERROR an inner attribute is not permitted in this context
|
||||
fn foo() {}
|
||||
|
|
|
|||
|
|
@ -8,4 +8,4 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
# //~ ERROR 11:1: 11:2 error: expected item
|
||||
# //~ ERROR 11:1: 11:2 error: expected `[` but found `<eof>`
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// error-pattern:expected item
|
||||
// error-pattern:expected `[` but found `~`
|
||||
mod blade_runner {
|
||||
#~[doc(
|
||||
brief = "Blade Runner is probably the best movie ever",
|
||||
|
|
|
|||
|
|
@ -13,4 +13,4 @@ mod foo {
|
|||
#![feature(globs)]
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
pub fn main() {}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
#![allow(unknown_features)]
|
||||
#![feature(bogus)]
|
||||
fn main() { }
|
||||
// ignore-license
|
||||
pub fn main() { }
|
||||
// ignore-license
|
||||
// ignore-fast
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// ignore-fast
|
||||
|
||||
#[main]
|
||||
fn foo() {
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue