提交 5119597d 编写于 作者: J John Clements

hard to read the implied double negative

上级 3c10a941
......@@ -2329,16 +2329,16 @@ fn parse_pat(&self, refutable: bool) -> @pat {
let binding_mode =
if refutable {bind_infer} else {bind_by_copy};
let cannot_be_enum_or_struct;
let can_be_enum_or_struct;
match self.look_ahead(1) {
token::LPAREN | token::LBRACKET | token::LT |
token::LBRACE | token::MOD_SEP =>
cannot_be_enum_or_struct = false,
can_be_enum_or_struct = true,
_ =>
cannot_be_enum_or_struct = true
can_be_enum_or_struct = false
}
if is_plain_ident(&*self.token) && cannot_be_enum_or_struct {
if is_plain_ident(&*self.token) && !can_be_enum_or_struct {
let name = self.parse_path_without_tps();
let sub;
if self.eat(&token::AT) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册