Skip to content

Commit dbf7fdf

Browse files
committed
---
yaml --- r: 140164 b: refs/heads/try2 c: 5119597 h: refs/heads/master v: v3
1 parent fb1f0be commit dbf7fdf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 3c10a9412e2b1668bfe348f4728eedc2de0c642a
8+
refs/heads/try2: 5119597dc6549e21d62ce7bae7b7418b3f8bf56e
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libsyntax/parse/parser.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2329,16 +2329,16 @@ pub impl Parser {
23292329
let binding_mode =
23302330
if refutable {bind_infer} else {bind_by_copy};
23312331

2332-
let cannot_be_enum_or_struct;
2332+
let can_be_enum_or_struct;
23332333
match self.look_ahead(1) {
23342334
token::LPAREN | token::LBRACKET | token::LT |
23352335
token::LBRACE | token::MOD_SEP =>
2336-
cannot_be_enum_or_struct = false,
2336+
can_be_enum_or_struct = true,
23372337
_ =>
2338-
cannot_be_enum_or_struct = true
2338+
can_be_enum_or_struct = false
23392339
}
23402340

2341-
if is_plain_ident(&*self.token) && cannot_be_enum_or_struct {
2341+
if is_plain_ident(&*self.token) && !can_be_enum_or_struct {
23422342
let name = self.parse_path_without_tps();
23432343
let sub;
23442344
if self.eat(&token::AT) {

0 commit comments

Comments
 (0)