let found = self.this_token_to_string();
let msg = format!("expected unsuffixed literal or identifier, found {}", found);
- Err(self.diagnostic().struct_span_err(lo, &msg))
+ Err(self.diagnostic().struct_span_err(self.span, &msg))
}
/// matches meta_seq = ( COMMASEP(meta_item_inner) )
| ^^^^^ help: consider removing the prefix: `"hi"`
error: expected unsuffixed literal or identifier, found concat!("nonexistent")
- --> $DIR/cfg-attr-syntax-validation.rs:30:15
+ --> $DIR/cfg-attr-syntax-validation.rs:30:25
|
LL | #[cfg(feature = $expr)]
- | ^^^^^^^
+ | ^^^^^
...
LL | generate_s10!(concat!("nonexistent"));
| -------------------------------------- in this macro invocation