diff options
| author | bors <bors@rust-lang.org> | 2017-11-11 15:49:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-11-11 15:49:36 +0000 |
| commit | b22679366a6faab9f3790697f8be0a1dce38c285 (patch) | |
| tree | 2b94c0aedcf667fd9b50e240e3cc6537a42a36d7 /src/rustllvm/RustWrapper.cpp | |
| parent | 965ace59f28c3ffec3faeb1f8c7cfa5adf69cf0f (diff) | |
| parent | f7b4b88840d872909a67e5f9623281e3e2165fba (diff) | |
| download | rust-b22679366a6faab9f3790697f8be0a1dce38c285.tar.gz rust-b22679366a6faab9f3790697f8be0a1dce38c285.zip | |
Auto merge of #45775 - petrochenkov:patnopat, r=nikomatsakis
Accept interpolated patterns in trait method parameters
Permit this, basically
```rust
macro_rules! m {
($pat: pat) => {
trait Tr {
fn f($pat: u8) {}
}
}
}
```
it previously caused a parsing error during expansion because trait methods accept only very restricted set of patterns during parsing due to ambiguities caused by [anonymous parameters](https://github.com/rust-lang/rust/issues/41686), and this set didn't include interpolated patterns.
Some outdated messages from "no patterns allowed" errors are also removed.
Addresses https://github.com/rust-lang/rust/issues/35203#issuecomment-341937159
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
