about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-05-01 08:51:47 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-05-01 08:51:47 +0000
commitd56ce8e199abec57746286995c7949356e2dfcf2 (patch)
tree20106653cc08c15f2dba032b0d49c88267a6631e /compiler/rustc_parse/src/parser
parentf2eb9f85b9b52e6538c3c7fc160725963272d471 (diff)
downloadrust-d56ce8e199abec57746286995c7949356e2dfcf2.tar.gz
rust-d56ce8e199abec57746286995c7949356e2dfcf2.zip
Do not recover when parsing stmt in cfg-eval.
Diffstat (limited to 'compiler/rustc_parse/src/parser')
-rw-r--r--compiler/rustc_parse/src/parser/stmt.rs3
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,