Skip to content

Commit ac276f7

Browse files
committed
Introduce fn@ as a synonym for fn
1 parent 86735c0 commit ac276f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/comp/syntax/parse/parser.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2147,6 +2147,9 @@ fn parse_fn_proto(p: parser) -> ast::proto {
21472147
if p.peek() == token::POUND {
21482148
p.bump();
21492149
ast::proto_bare
2150+
} else if p.peek() == token::AT {
2151+
p.bump();
2152+
ast::proto_fn
21502153
} else {
21512154
ast::proto_fn
21522155
}

0 commit comments

Comments
 (0)