We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5ad0cb commit 0103308Copy full SHA for 0103308
src/librustc_parse/parser/module.rs
@@ -212,13 +212,13 @@ impl<'a> Parser<'a> {
212
// `./<id>.rs` and `./<id>/mod.rs`.
213
let relative_prefix_string;
214
let relative_prefix = if let Some(ident) = relative {
215
- relative_prefix_string = format!("{}{}", ident, path::MAIN_SEPARATOR);
+ relative_prefix_string = format!("{}{}", ident.name, path::MAIN_SEPARATOR);
216
&relative_prefix_string
217
} else {
218
""
219
};
220
221
- let mod_name = id.to_string();
+ let mod_name = id.name.to_string();
222
let default_path_str = format!("{}{}.rs", relative_prefix, mod_name);
223
let secondary_path_str = format!("{}{}{}mod.rs",
224
relative_prefix, mod_name, path::MAIN_SEPARATOR);
0 commit comments