Skip to content

Commit 274824b

Browse files
sjwang05TaKO8Ki
andauthored
Fix is_keyword_ahead visibility
Co-authored-by: Takayuki Maeda <[email protected]>
1 parent f88cf02 commit 274824b

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_parse/src/parser/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ impl<'a> Parser<'a> {
11151115
}
11161116

11171117
/// Returns whether any of the given keywords are `dist` tokens ahead of the current one.
1118-
pub fn is_keyword_ahead(&self, dist: usize, kws: &[Symbol]) -> bool {
1118+
pub(crate) fn is_keyword_ahead(&self, dist: usize, kws: &[Symbol]) -> bool {
11191119
self.look_ahead(dist, |t| kws.iter().any(|&kw| t.is_keyword(kw)))
11201120
}
11211121

0 commit comments

Comments
 (0)