We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Token::is_path
1 parent 099e716 commit b9ead99Copy full SHA for b9ead99
compiler/rustc_ast/src/token.rs
@@ -664,7 +664,7 @@ impl Token {
664
}
665
666
/// Returns `true` if the token is an interpolated path.
667
- fn is_path(&self) -> bool {
+ fn is_whole_path(&self) -> bool {
668
if let Interpolated(nt) = &self.kind
669
&& let NtPath(..) = &nt.0
670
{
@@ -710,7 +710,7 @@ impl Token {
710
pub fn is_path_start(&self) -> bool {
711
self == &ModSep
712
|| self.is_qpath_start()
713
- || self.is_path()
+ || self.is_whole_path()
714
|| self.is_path_segment_keyword()
715
|| self.is_ident() && !self.is_reserved_ident()
716
0 commit comments