Do not abort compilation if expansion produces errors
Fix a number of uncovered deficiencies in diagnostics
This commit is contained in:
parent
a5c52c72ae
commit
fff01ccfa8
80 changed files with 543 additions and 172 deletions
|
@ -3,11 +3,12 @@
|
|||
#[macro_use]
|
||||
extern crate derive_b;
|
||||
|
||||
#[B]
|
||||
#[B] //~ ERROR `B` is ambiguous
|
||||
#[C] //~ ERROR attribute `C` is currently unknown to the compiler
|
||||
#[B(D)]
|
||||
#[B(E = "foo")]
|
||||
#[B(arbitrary tokens)]
|
||||
#[B(D)] //~ ERROR `B` is ambiguous
|
||||
#[B(E = "foo")] //~ ERROR `B` is ambiguous
|
||||
#[B(arbitrary tokens)] //~ ERROR `B` is ambiguous
|
||||
//~^ ERROR expected one of `(`, `)`, `,`, `::`, or `=`, found `tokens`
|
||||
#[derive(B)]
|
||||
struct B;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue