about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorsjwang05 <63834813+sjwang05@users.noreply.github.com>2023-11-12 14:46:01 -0800
committerGitHub <noreply@github.com>2023-11-12 14:46:01 -0800
commit274824b917c290d6ac9227e1c263a3358ba6e6f2 (patch)
treed7a8e89e4216100ffbe2ea37acbed1b44d08981c /compiler/rustc_parse/src
parentf88cf0206faa5fb169deebbbd1024d9a0381ecd3 (diff)
downloadrust-274824b917c290d6ac9227e1c263a3358ba6e6f2.tar.gz
rust-274824b917c290d6ac9227e1c263a3358ba6e6f2.zip
Fix `is_keyword_ahead` visibility
Co-authored-by: Takayuki Maeda <takoyaki0316@gmail.com>
Diffstat (limited to 'compiler/rustc_parse/src')
-rw-r--r--compiler/rustc_parse/src/parser/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/mod.rs b/compiler/rustc_parse/src/parser/mod.rs
index 6eab140117e..76f3f21a516 100644
--- a/compiler/rustc_parse/src/parser/mod.rs
+++ b/compiler/rustc_parse/src/parser/mod.rs
@@ -1115,7 +1115,7 @@ impl<'a> Parser<'a> {
     }
 
     /// Returns whether any of the given keywords are `dist` tokens ahead of the current one.
-    pub fn is_keyword_ahead(&self, dist: usize, kws: &[Symbol]) -> bool {
+    pub(crate) fn is_keyword_ahead(&self, dist: usize, kws: &[Symbol]) -> bool {
         self.look_ahead(dist, |t| kws.iter().any(|&kw| t.is_keyword(kw)))
     }