aboutsummaryrefslogtreecommitdiff
path: root/src/parser/event_parser
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2018-02-03 19:44:37 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2018-02-03 19:44:37 +0000
commit75b59bf519b8dcf1a89327d871dab2c98af61ed9 (patch)
tree6322bf271a4fd5e838098a0f523739fc9a0c9416 /src/parser/event_parser
parent3c70ae2e26f654ce536f00fde8c159e4ebe6901a (diff)
parentb072e68ad5bf1687aebd2ff1c7bf327d38a6a2f2 (diff)
Merge #39
39: Tools r=matklad a=matklad closes #34 bors r+
Diffstat (limited to 'src/parser/event_parser')
-rw-r--r--src/parser/event_parser/grammar/items/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser/event_parser/grammar/items/mod.rs b/src/parser/event_parser/grammar/items/mod.rs
index 8ccf8f90f..5cf2fc39a 100644
--- a/src/parser/event_parser/grammar/items/mod.rs
+++ b/src/parser/event_parser/grammar/items/mod.rs
@@ -52,11 +52,15 @@ fn item(p: &mut Parser) {
52 STATIC_ITEM 52 STATIC_ITEM
53 } 53 }
54 CONST_KW => match p.nth(1) { 54 CONST_KW => match p.nth(1) {
55 // test const_fn
56 // const fn foo() {}
55 FN_KW => { 57 FN_KW => {
56 p.bump(); 58 p.bump();
57 fn_item(p); 59 fn_item(p);
58 FN_ITEM 60 FN_ITEM
59 } 61 }
62 // test const_unsafe_fn
63 // const unsafe fn foo() {}
60 UNSAFE_KW if p.nth(2) == FN_KW => { 64 UNSAFE_KW if p.nth(2) == FN_KW => {
61 p.bump(); 65 p.bump();
62 p.bump(); 66 p.bump();