]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_session/src/utils.rs
New upstream version 1.75.0+dfsg1
[rustc.git] / compiler / rustc_session / src / utils.rs
index aea7c6c284286952ce5970231dc4d114e508bce6..3ed044ad769e4c9b343d098838caada4b34bbdaa 100644 (file)
@@ -161,7 +161,9 @@ pub fn extra_compiler_flags() -> Option<(Vec<String>, bool)> {
 
 pub(crate) fn is_ascii_ident(string: &str) -> bool {
     let mut chars = string.chars();
-    if let Some(start) = chars.next() && (start.is_ascii_alphabetic() || start == '_') {
+    if let Some(start) = chars.next()
+        && (start.is_ascii_alphabetic() || start == '_')
+    {
         chars.all(|char| char.is_ascii_alphanumeric() || char == '_')
     } else {
         false