detect unused attrs in one more place, allow parsing to continue for all
changed a bunch of fatal()'s into err()'s, to allow parsing to proceed.
This commit is contained in:
parent
05ab83eea8
commit
b621820dc4
4 changed files with 57 additions and 28 deletions
|
|
@ -9,6 +9,6 @@
|
|||
// except according to those terms.
|
||||
|
||||
fn main() {
|
||||
#[attr]
|
||||
debug!("hi"); //~ ERROR expected item after attrs
|
||||
#[attr] //~ ERROR expected item after attributes
|
||||
debug!("hi");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,6 @@
|
|||
// except according to those terms.
|
||||
|
||||
fn main() {
|
||||
#[attr]
|
||||
let _i = 0; //~ ERROR expected item
|
||||
#[attr] //~ ERROR expected item
|
||||
let _i = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue