diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-05-01 08:51:47 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-05-01 08:51:47 +0000 |
| commit | d56ce8e199abec57746286995c7949356e2dfcf2 (patch) | |
| tree | 20106653cc08c15f2dba032b0d49c88267a6631e /compiler/rustc_parse/src | |
| parent | f2eb9f85b9b52e6538c3c7fc160725963272d471 (diff) | |
| download | rust-d56ce8e199abec57746286995c7949356e2dfcf2.tar.gz rust-d56ce8e199abec57746286995c7949356e2dfcf2.zip | |
Do not recover when parsing stmt in cfg-eval.
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/parser/stmt.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/stmt.rs b/compiler/rustc_parse/src/parser/stmt.rs index fbe5b88c49e..e883d6dbf61 100644 --- a/compiler/rustc_parse/src/parser/stmt.rs +++ b/compiler/rustc_parse/src/parser/stmt.rs @@ -37,7 +37,8 @@ impl<'a> Parser<'a> { /// If `force_collect` is [`ForceCollect::Yes`], forces collection of tokens regardless of whether /// or not we have attributes - pub(crate) fn parse_stmt_without_recovery( + // Public for `cfg_eval` macro expansion. + pub fn parse_stmt_without_recovery( &mut self, capture_semi: bool, force_collect: ForceCollect, |
