diff options
| author | bors <bors@rust-lang.org> | 2016-07-18 01:40:23 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-18 01:40:23 -0700 |
| commit | 06ca016b6e779ba972efb9d1735afc527d301505 (patch) | |
| tree | 61577431937ee9c358e95e68354a246f30ef5b6c /src/libstd/sys/unix/condvar.rs | |
| parent | 6cc49e51de7ea9b0cc4aff437975544233c57107 (diff) | |
| parent | bd1ad762b7ab068ac2e3e1bfc413e80aac2dc7fd (diff) | |
| download | rust-06ca016b6e779ba972efb9d1735afc527d301505.tar.gz rust-06ca016b6e779ba972efb9d1735afc527d301505.zip | |
Auto merge of #34886 - jseyfried:improve_stmt_matchers, r=eddyb
macros: fix bug in `stmt` matchers
Today, `stmt` matchers stop too early when parsing expression statements that begin with non-braced macro invocations. For example,
```rust
fn main() {
macro_rules! m { ($s:stmt;) => { $s } }
id!(vec![].push(0););
//^ Before this PR, the `stmt` matcher only consumes "vec![]", so this is an error.
//| After this PR, the `stmt` matcher consumes "vec![].push(0)", so this compiles.
}
```
This change is backwards compatible due to the follow set for `stmt`.
r? @eddyb
Diffstat (limited to 'src/libstd/sys/unix/condvar.rs')
0 files changed, 0 insertions, 0 deletions
