diff options
author | Benjamin Coenen <[email protected]> | 2020-04-09 17:37:34 +0100 |
---|---|---|
committer | Benjamin Coenen <[email protected]> | 2020-04-09 18:12:50 +0100 |
commit | c1317d692321ba5ba8f138067ebefbb9559d098d (patch) | |
tree | e29a44577e4d2cf55b6f53e3428abea43bbd33d7 /crates/ra_parser/src/grammar.rs | |
parent | fc70cf9458c5234decafdd52b9aced790ac43d7a (diff) | |
parent | 30f0ad159a0f260f54356385de63c171722adb72 (diff) |
feat: add support for feature attributes in struct literal
Signed-off-by: Benjamin Coenen <[email protected]>
Diffstat (limited to 'crates/ra_parser/src/grammar.rs')
-rw-r--r-- | crates/ra_parser/src/grammar.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_parser/src/grammar.rs b/crates/ra_parser/src/grammar.rs index 58098e810..d0530955e 100644 --- a/crates/ra_parser/src/grammar.rs +++ b/crates/ra_parser/src/grammar.rs | |||
@@ -245,7 +245,7 @@ fn opt_fn_ret_type(p: &mut Parser) -> bool { | |||
245 | if p.at(T![->]) { | 245 | if p.at(T![->]) { |
246 | let m = p.start(); | 246 | let m = p.start(); |
247 | p.bump(T![->]); | 247 | p.bump(T![->]); |
248 | types::type_(p); | 248 | types::type_no_bounds(p); |
249 | m.complete(p, RET_TYPE); | 249 | m.complete(p, RET_TYPE); |
250 | true | 250 | true |
251 | } else { | 251 | } else { |