diff options
| author | bors <bors@rust-lang.org> | 2016-05-04 14:26:28 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-05-04 14:26:28 -0700 |
| commit | 7a0ccc458f32b2cb2dee33d7a02954a70c09c34b (patch) | |
| tree | 2c12ee018b5234df94b78d8d60e88c4c4f207bd3 /src/libsyntax/parse/parser.rs | |
| parent | 3157691f963a86776cb7e6a7842f566032890aba (diff) | |
| parent | 631e7b4eaacc44c85ba528de838217233a61dc38 (diff) | |
| download | rust-7a0ccc458f32b2cb2dee33d7a02954a70c09c34b.tar.gz rust-7a0ccc458f32b2cb2dee33d7a02954a70c09c34b.zip | |
Auto merge of #33376 - Manishearth:rollup, r=Manishearth
Rollup of 14 pull requests - Successful merges: #33277, #33294, #33314, #33322, #33333, #33338, #33339, #33340, #33343, #33357, #33363, #33365, #33371, #33372 - Failed merges:
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index b9188f5101d..9cd2e6ef7d6 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -4419,11 +4419,7 @@ impl<'a> Parser<'a> { p.forbid_lifetime()?; let lo = p.span.lo; let ident = p.parse_ident()?; - let found_eq = p.eat(&token::Eq); - if !found_eq { - let span = p.span; - p.span_warn(span, "whoops, no =?"); - } + p.expect(&token::Eq)?; let ty = p.parse_ty()?; let hi = ty.span.hi; let span = mk_sp(lo, hi); |
