We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b12892 commit 433e4caCopy full SHA for 433e4ca
src/librustsyntax/parse/parser.rs
@@ -1676,11 +1676,9 @@ class parser {
1676
let ident = self.parse_ident();
1677
if self.eat(token::COLON) {
1678
while self.token != token::COMMA && self.token != token::GT {
1679
- if self.eat_keyword(self, "send") { bounds += [bound_send]; }
1680
- else if self.eat_keyword(self, "copy")
1681
- { bounds += [bound_copy]; }
1682
- else if self.eat_keyword(self, "const")
1683
- { bounds += [bound_const]; }
+ if self.eat_keyword("send") { bounds += [bound_send]; }
+ else if self.eat_keyword("copy") { bounds += [bound_copy]; }
+ else if self.eat_keyword("const") { bounds += [bound_const]; }
1684
else { bounds += [bound_iface(self.parse_ty(false))]; }
1685
}
1686
0 commit comments