Merge #11882
11882: internal: Record outline child modules with missing backing file in def map r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
commit
d312b4519a
@ -1743,6 +1743,12 @@ impl ModCollector<'_, '_> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(candidates) => {
|
Err(candidates) => {
|
||||||
|
self.push_child_module(
|
||||||
|
module.name.clone(),
|
||||||
|
ast_id,
|
||||||
|
None,
|
||||||
|
&self.item_tree[module.visibility],
|
||||||
|
);
|
||||||
self.def_collector.def_map.diagnostics.push(
|
self.def_collector.def_map.diagnostics.push(
|
||||||
DefDiagnostic::unresolved_module(self.module_id, ast_id, candidates),
|
DefDiagnostic::unresolved_module(self.module_id, ast_id, candidates),
|
||||||
);
|
);
|
||||||
|
@ -375,9 +375,12 @@ pub struct Arc;
|
|||||||
"#,
|
"#,
|
||||||
expect![[r#"
|
expect![[r#"
|
||||||
crate
|
crate
|
||||||
|
alloc: t
|
||||||
alloc_crate: t
|
alloc_crate: t
|
||||||
sync: t
|
sync: t
|
||||||
|
|
||||||
|
crate::alloc
|
||||||
|
|
||||||
crate::sync
|
crate::sync
|
||||||
Arc: t v
|
Arc: t v
|
||||||
"#]],
|
"#]],
|
||||||
@ -401,9 +404,12 @@ pub struct Arc;
|
|||||||
"#,
|
"#,
|
||||||
expect![[r#"
|
expect![[r#"
|
||||||
crate
|
crate
|
||||||
|
alloc: t
|
||||||
alloc_crate: t
|
alloc_crate: t
|
||||||
sync: t
|
sync: t
|
||||||
|
|
||||||
|
crate::alloc
|
||||||
|
|
||||||
crate::sync
|
crate::sync
|
||||||
Arc: t v
|
Arc: t v
|
||||||
"#]],
|
"#]],
|
||||||
|
@ -526,6 +526,9 @@ pub struct Baz;
|
|||||||
"#,
|
"#,
|
||||||
expect![[r#"
|
expect![[r#"
|
||||||
crate
|
crate
|
||||||
|
foo: t
|
||||||
|
|
||||||
|
crate::foo
|
||||||
"#]],
|
"#]],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user