We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5470c2c + 80152ed commit 1664dcfCopy full SHA for 1664dcf
compiler/rustc_parse/src/parser/item.rs
@@ -970,7 +970,7 @@ impl<'a> Parser<'a> {
970
}
971
if fixed_crate_name {
972
let fixed_name_sp = ident.span.to(idents.last().unwrap().span);
973
- let mut fixed_name = format!("{}", ident.name);
+ let mut fixed_name = ident.name.to_string();
974
for part in idents {
975
fixed_name.push_str(&format!("_{}", part.name));
976
0 commit comments