aboutsummaryrefslogtreecommitdiff
path: root/src/parser/grammar/type_params.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2018-02-10 09:54:34 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2018-02-10 09:54:34 +0000
commitc3b009b6d24225ad2add62fce8206918fceba3eb (patch)
tree6e68e8242bbc181e5a846754466d4109783b6a2f /src/parser/grammar/type_params.rs
parent419b9b7e5efd895249934551cb2588b27a956f58 (diff)
parentdd6e5371ebddeaeecb3d1e2d3d6c8b3c9050bb05 (diff)
Merge #45
45: Types r=matklad a=matklad bors r+
Diffstat (limited to 'src/parser/grammar/type_params.rs')
-rw-r--r--src/parser/grammar/type_params.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parser/grammar/type_params.rs b/src/parser/grammar/type_params.rs
index 12c9a5362..8f62a471c 100644
--- a/src/parser/grammar/type_params.rs
+++ b/src/parser/grammar/type_params.rs
@@ -70,6 +70,11 @@ pub(super) fn list(p: &mut Parser) {
70 70
71pub(super) fn where_clause(p: &mut Parser) { 71pub(super) fn where_clause(p: &mut Parser) {
72 if p.at(WHERE_KW) { 72 if p.at(WHERE_KW) {
73 let m = p.start();
73 p.bump(); 74 p.bump();
75 p.expect(IDENT);
76 p.expect(COLON);
77 p.expect(IDENT);
78 m.complete(p, WHERE_CLAUSE);
74 } 79 }
75} 80}