aboutsummaryrefslogtreecommitdiff
path: root/crates/parser/src/grammar/type_params.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-12-21 08:46:42 +0000
committerGitHub <[email protected]>2020-12-21 08:46:42 +0000
commitfa75e11eb699d4c959569ab8ab5934ba1ab9bc29 (patch)
treefaf5a87b4470c4c5c9b08e3e0646dcce94ae3c27 /crates/parser/src/grammar/type_params.rs
parentc3d21ea05a1d1e1a88a983773fd821f6f6470264 (diff)
parent3ea4d4385053bb4b0da87de57aac3563e085a0e3 (diff)
Merge #6967
6967: Correctly parse legacy trait objects with leading ForType r=matklad a=Veykril Fixes #1422 Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/parser/src/grammar/type_params.rs')
-rw-r--r--crates/parser/src/grammar/type_params.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/parser/src/grammar/type_params.rs b/crates/parser/src/grammar/type_params.rs
index 9c3f7c28a..4aeccd193 100644
--- a/crates/parser/src/grammar/type_params.rs
+++ b/crates/parser/src/grammar/type_params.rs
@@ -113,7 +113,7 @@ fn type_bound(p: &mut Parser) -> bool {
113 p.eat(T![?]); 113 p.eat(T![?]);
114 match p.current() { 114 match p.current() {
115 LIFETIME_IDENT => lifetime(p), 115 LIFETIME_IDENT => lifetime(p),
116 T![for] => types::for_type(p), 116 T![for] => types::for_type(p, false),
117 _ if paths::is_use_path_start(p) => types::path_type_(p, false), 117 _ if paths::is_use_path_start(p) => types::path_type_(p, false),
118 _ => { 118 _ => {
119 m.abandon(p); 119 m.abandon(p);