about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2018-07-19 15:59:08 +0300
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2018-07-20 06:26:33 +0300
commitbc2b21cc4e2679191b14ade2511e9015e717da53 (patch)
treee9c90f4bc50134ed7871acb2372c1a5196fa2295 /src/libsyntax/parse
parente5e29d1a1976ff7d0b39ade8706ca0e3ddebe7a9 (diff)
downloadrust-bc2b21cc4e2679191b14ade2511e9015e717da53.tar.gz
rust-bc2b21cc4e2679191b14ade2511e9015e717da53.zip
proc_macro: move some implementation details to a rustc module.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/lexer/mod.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs
index bf790e6143a..9748e2947ee 100644
--- a/src/libsyntax/parse/lexer/mod.rs
+++ b/src/libsyntax/parse/lexer/mod.rs
@@ -1775,12 +1775,6 @@ fn ident_continue(c: Option<char>) -> bool {
     (c > '\x7f' && c.is_xid_continue())
 }
 
-// The string is a valid identifier or a lifetime identifier.
-pub fn is_valid_ident(s: &str) -> bool {
-    let mut chars = s.chars();
-    ident_start(chars.next()) && chars.all(|ch| ident_continue(Some(ch)))
-}
-
 #[cfg(test)]
 mod tests {
     use super::*;