]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_incremental/assert_module_sources.rs
Rollup merge of #69563 - andre-richter:fix_no_std_match, r=Mark-Simulacrum
[rust.git] / src / librustc_incremental / assert_module_sources.rs
index e420613ac9a8c0cb574c815a74e66d2c4ec38428..4dd08b517e1f214527903f66a35f3945cb7bcd17 100644 (file)
@@ -104,7 +104,7 @@ fn check_attr(&self, attr: &ast::Attribute) {
         }
 
         // Split of the "special suffix" if there is one.
-        let (user_path, cgu_special_suffix) = if let Some(index) = user_path.rfind(".") {
+        let (user_path, cgu_special_suffix) = if let Some(index) = user_path.rfind('.') {
             (&user_path[..index], Some(&user_path[index + 1..]))
         } else {
             (&user_path[..], None)