Uh oh!
There was an error while loading. Please reload this page.
Fix panic when using a macros 1.1 custom derive on a struct containing a macro invocation - #38737
Conversation
52a085c to
22f788cCompare
jseyfried
left a comment
There was a problem hiding this comment.
Thanks! r=me module nits
| use syntax::ext::tt::macro_rules; | ||
| use syntax::feature_gate::{emit_feature_err, GateIssue}; | ||
| use syntax::fold::Folder; | ||
| use syntax::fold; |
There was a problem hiding this comment.
nit: use syntax::fold::{self, Folder}.
| } | ||
| fn visit_mac(&mut self, _mac: &Mac) { | ||
| } |
There was a problem hiding this comment.
nit: I believe using a single line for empty functions (i.e. fn f(...) {}) is more idiomatic, at least in the compiler.
| } | ||
| fn main() { | ||
| } |
jseyfried
commented
Dec 31, 2016
@bors r+ |
bors
commented
Dec 31, 2016
📌 Commit e9b5839 has been approved by |
dtolnay
commented
Dec 31, 2016
Thanks for the quick fix! I asked in #35900 (comment) about backporting this to beta. Is there anything I need to do to make that happen? |
bors
commented
Dec 31, 2016
…yfried Fix panic when using a macros 1.1 custom derive on a struct containing a macro invocation Fixes#38706 r? @jseyfried
alexcrichton
commented
Dec 31, 2016
@dtolnay this is now tagged |
bors
commented
Dec 31, 2016
☀️ Test successful - status-appveyor, status-travis |
nikomatsakis
commented
Jan 6, 2017
Approving for beta. Small patch, regression. cc @rust-lang/compiler |
Fixes#38706
r? @jseyfried