Skip to content

Commit d492f22

Browse files
committed
Don't stop expansion after hitting a nested macro
1 parent ece4175 commit d492f22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ struct WrappingFolder<'cx> {
2727

2828
impl<'cx> Folder for WrappingFolder<'cx> {
2929
fn fold_mac(&mut self, mac: Mac) -> Mac {
30-
self.cx.span_fatal(mac.span, "cannot call nested macros in a `wrapping!` block");
30+
self.cx.span_err(mac.span, "cannot call nested macros in a `wrapping!` block");
31+
mac
3132
}
3233

3334
fn fold_expr(&mut self, expr: P<Expr>) -> P<Expr> {

0 commit comments

Comments
 (0)