{"push_id":629593925,"size":5,"distinct_size":0,"ref":"refs/heads/tmp","head":"56925539d45050e689e175627359d762df16ab9d","before":"c87ec1edb1a7e449e30b40eba24b912d77dc1f1a","commits":[{"sha":"19343860aa44d1c31a7802df22349f055ed9da16","author":{"email":"a9b694afce3d7c85c380c86152d6eb667fd378d2@peanutcode.com","name":"Christopher Chambers"},"message":"Improves handling of statement macros.\n\nStatement macros are now treated somewhat like item macros, in that a\nstatement macro can now expand into a series of statements, rather than\njust a single statement.\n\nThis allows statement macros to be nested inside other kinds of macros and\nexpand properly, where previously the expansion would only work when no\nnesting was present.\n\nSee: src/test/run-pass/macro-stmt_macro_in_expr_macro.rs\n     src/test/run-pass/macro-nested_stmt_macro.rs\n\nThis changes the interface of the MacResult trait.  make_stmt has become\nmake_stmts and now returns a vector, rather than a single item.  Plugin\nwriters who were implementing MacResult will have breakage, as well as\nanyone using MacEager::stmt.\n\nSee: src/libsyntax/ext/base.rs\n\nThis also causes a minor difference in behavior to the diagnostics\nproduced by certain malformed macros.\n\nSee: src/test/compile-fail/macro-incomplete-parse.rs","distinct":false,"url":"https://api.github.com/repos/rust-lang/rust/commits/19343860aa44d1c31a7802df22349f055ed9da16"},{"sha":"b16cfacbccee272ed8a30aec1f5c25e9f845d1a8","author":{"email":"a9b694afce3d7c85c380c86152d6eb667fd378d2@peanutcode.com","name":"Christopher Chambers"},"message":"Improves semicolon expansion efficiency, corrects bt_pop placement.\n\nImplements pop() on SmallVector, and uses it to expand the final semicolon\nin a statement macro expansion more efficiently.\n\nCorrects the placement of the call to fld.cx.bt_pop().  It must run\nunconditionally to reverse the corresponding push.","distinct":false,"url":"https://api.github.com/repos/rust-lang/rust/commits/b16cfacbccee272ed8a30aec1f5c25e9f845d1a8"},{"sha":"fae29e497c08fcdde8a429a7e2b656e7a8b6cc17","author":{"email":"a9b694afce3d7c85c380c86152d6eb667fd378d2@peanutcode.com","name":"Christopher Chambers"},"message":"Eliminates a pointless is_empty test.","distinct":false,"url":"https://api.github.com/repos/rust-lang/rust/commits/fae29e497c08fcdde8a429a7e2b656e7a8b6cc17"},{"sha":"22eb3193a62fa01e97bf53d5f5aa74ca8ea57a67","author":{"email":"a9b694afce3d7c85c380c86152d6eb667fd378d2@peanutcode.com","name":"Christopher Chambers"},"message":"Simplifications to statement macro handling.\n\nSmallVector::pop no longer worries about converting a Many repr downward\nto One or Zero.\n\nexpand_stmt makes use of `if let` for style purposes.","distinct":false,"url":"https://api.github.com/repos/rust-lang/rust/commits/22eb3193a62fa01e97bf53d5f5aa74ca8ea57a67"},{"sha":"56925539d45050e689e175627359d762df16ab9d","author":{"email":"3a2c29237f73c7cf88424b80e427b1884f346b35@rust-lang.org","name":"bors"},"message":"Auto merge of #24155 - chris-chambers:stmt_macros, r=sfackler\n\nStatement macros are now treated somewhat like item macros, in that a statement macro can now expand into a series of statements, rather than just a single statement.\r\n\r\nThis allows statement macros to be nested inside other kinds of macros and expand properly, where previously the expansion would only work when no nesting was present.\r\n\r\nSee:\r\n- `src/test/run-pass/macro-stmt_macro_in_expr_macro.rs`\r\n- `src/test/run-pass/macro-nested_stmt_macro.rs`\r\n\r\nThis changes the interface of the MacResult trait.  make_stmt has become make_stmts and now returns a vector, rather than a single item.  Plugin writers who were implementing MacResult will have breakage, as well as anyone using MacEager::stmt.\r\n\r\nSee:\r\n- `src/libsyntax/ext/base.rs`\r\n\r\nThis also causes a minor difference in behavior to the diagnostics produced by certain malformed macros.\r\n\r\nSee:\r\n- `src/test/compile-fail/macro-incomplete-parse.rs`","distinct":false,"url":"https://api.github.com/repos/rust-lang/rust/commits/56925539d45050e689e175627359d762df16ab9d"}]}