Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.

Commit a53aa76

Browse files
committed
Attrs are now allowed in statement and expression contexts. This will of course break the build, as syntex_syntax will need to be updated as well. I also noticed that the test suite doesn't check nightly, only stable. Perhaps we should update to run both?
1 parent 31d3254 commit a53aa76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

quasi/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ impl ToTokens for ast::Lit {
241241
id: ast::DUMMY_NODE_ID,
242242
node: ast::ExprLit(P(self.clone())),
243243
span: DUMMY_SP,
244+
attrs: None,
244245
}).to_tokens(cx)
245246
}
246247
}

0 commit comments

Comments
 (0)