diff --git a/Cargo.toml b/Cargo.toml index 29e3e1f2..980fa39e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ targets = ["x86_64-unknown-linux-gnu"] features = ["span-locations"] [dependencies] -unicode-xid = "0.2.2" +unicode-ident = "1.0" [dev-dependencies] quote = { version = "1.0", default_features = false } diff --git a/src/fallback.rs b/src/fallback.rs index 21ede03f..08c1de39 100644 --- a/src/fallback.rs +++ b/src/fallback.rs @@ -13,7 +13,6 @@ use std::path::Path; use std::path::PathBuf; use std::str::FromStr; use std::vec; -use unicode_xid::UnicodeXID; /// Force use of proc-macro2's fallback implementation of the API for now, even /// if the compiler's implementation is available. @@ -666,11 +665,11 @@ impl Ident { } pub(crate) fn is_ident_start(c: char) -> bool { - c == '_' || UnicodeXID::is_xid_start(c) + c == '_' || unicode_ident::is_xid_start(c) } pub(crate) fn is_ident_continue(c: char) -> bool { - UnicodeXID::is_xid_continue(c) + unicode_ident::is_xid_continue(c) } fn validate_ident(string: &str) {