internal: outline child modules with missing backing file
This commit is contained in:
parent
f610e2c2ed
commit
1da2d82f58
@ -1743,6 +1743,12 @@ fn collect_module(&mut self, module: &Mod, attrs: &Attrs) {
|
||||
}
|
||||
}
|
||||
Err(candidates) => {
|
||||
self.push_child_module(
|
||||
module.name.clone(),
|
||||
ast_id,
|
||||
None,
|
||||
&self.item_tree[module.visibility],
|
||||
);
|
||||
self.def_collector.def_map.diagnostics.push(
|
||||
DefDiagnostic::unresolved_module(self.module_id, ast_id, candidates),
|
||||
);
|
||||
|
@ -375,9 +375,12 @@ fn extern_crate_rename() {
|
||||
"#,
|
||||
expect![[r#"
|
||||
crate
|
||||
alloc: t
|
||||
alloc_crate: t
|
||||
sync: t
|
||||
|
||||
crate::alloc
|
||||
|
||||
crate::sync
|
||||
Arc: t v
|
||||
"#]],
|
||||
@ -401,9 +404,12 @@ fn extern_crate_rename_2015_edition() {
|
||||
"#,
|
||||
expect![[r#"
|
||||
crate
|
||||
alloc: t
|
||||
alloc_crate: t
|
||||
sync: t
|
||||
|
||||
crate::alloc
|
||||
|
||||
crate::sync
|
||||
Arc: t v
|
||||
"#]],
|
||||
|
@ -526,6 +526,9 @@ fn module_resolution_decl_empty_path() {
|
||||
"#,
|
||||
expect![[r#"
|
||||
crate
|
||||
foo: t
|
||||
|
||||
crate::foo
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user