about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-12-08 11:08:04 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2019-12-21 19:20:41 +0100
commit1cfeb567735a0a6c6ec9a32cbaa1ea672db637b1 (patch)
tree91112e514199b954a07742636a7d92a2561a2f3d
parent18e5b2f98c7768f0342333e7b6bb6c506f663515 (diff)
downloadrust-1cfeb567735a0a6c6ec9a32cbaa1ea672db637b1.tar.gz
rust-1cfeb567735a0a6c6ec9a32cbaa1ea672db637b1.zip
parse_generic_bound: leave a FIXME
-rw-r--r--src/librustc_parse/parser/ty.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc_parse/parser/ty.rs b/src/librustc_parse/parser/ty.rs
index 72f831aab06..2c362294ad0 100644
--- a/src/librustc_parse/parser/ty.rs
+++ b/src/librustc_parse/parser/ty.rs
@@ -448,6 +448,8 @@ impl<'a> Parser<'a> {
             self.error_opt_out_lifetime(question);
             let bound = GenericBound::Outlives(self.expect_lifetime());
             if has_parens {
+                // FIXME(Centril): Consider not erroring here and accepting `('lt)` instead,
+                // possibly introducing `GenericBound::Paren(P<GenericBound>)`?
                 self.recover_paren_lifetime(lo, inner_lo)?;
             }
             Ok(Ok(bound))