diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-01-29 01:57:24 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-02-05 01:27:08 +0100 |
| commit | c0b7b41cff2b40d430befefc8688fb8ad847bcd4 (patch) | |
| tree | e8d53c19a4dbbad8c50be8c06833b1249216ee8b /src/librustc_parse/parser/path.rs | |
| parent | c9290dceee2cb6b882b26ec6e294560e51ef0853 (diff) | |
| download | rust-c0b7b41cff2b40d430befefc8688fb8ad847bcd4.tar.gz rust-c0b7b41cff2b40d430befefc8688fb8ad847bcd4.zip | |
parse_ty_common: use `enum`s instead of `bool`s.
Diffstat (limited to 'src/librustc_parse/parser/path.rs')
| -rw-r--r-- | src/librustc_parse/parser/path.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc_parse/parser/path.rs b/src/librustc_parse/parser/path.rs index a09eb42dcfe..cb14ffb4bd0 100644 --- a/src/librustc_parse/parser/path.rs +++ b/src/librustc_parse/parser/path.rs @@ -1,3 +1,4 @@ +use super::ty::{AllowPlus, RecoverQPath}; use super::{Parser, TokenType}; use crate::maybe_whole; use rustc_errors::{pluralize, Applicability, PResult}; @@ -224,7 +225,7 @@ impl<'a> Parser<'a> { // `(T, U) -> R` let (inputs, _) = self.parse_paren_comma_seq(|p| p.parse_ty())?; let span = ident.span.to(self.prev_span); - let output = self.parse_ret_ty(false, false)?; + let output = self.parse_ret_ty(AllowPlus::No, RecoverQPath::No)?; ParenthesizedArgs { inputs, output, span }.into() }; |
