Skip to content

Commit cb6f48f

Browse files
committed
Rust: fix compilation error
1 parent f96cf3f commit cb6f48f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

rust/extractor/src/crate_graph.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ fn emit_module_children(
184184
}
185185

186186
fn emit_reexport(
187+
crate_graph: &CrateGraph,
187188
db: &dyn HirDatabase,
188189
trap: &mut TrapFile,
189190
uses: &mut HashMap<String, trap::Label<generated::Item>>,
@@ -245,7 +246,7 @@ fn emit_reexport(
245246
rename,
246247
use_tree_list: None,
247248
});
248-
let visibility = emit_visibility(db, trap, Visibility::Public);
249+
let visibility = emit_visibility(crate_graph, db, trap, Visibility::Public);
249250
uses.insert(
250251
key,
251252
trap.emit(generated::Use {
@@ -277,7 +278,7 @@ fn emit_module_items(
277278
import: Some(import),
278279
}) = def.values
279280
{
280-
emit_reexport(db, trap, &mut uses, import, name.as_str());
281+
emit_reexport(crate_graph, db, trap, &mut uses, import, name.as_str());
281282
}
282283
if let Some(ra_ap_hir_def::per_ns::Item {
283284
def: value,
@@ -330,7 +331,7 @@ fn emit_module_items(
330331
{
331332
// TODO: handle ExternCrate as well?
332333
if let Some(import) = import.import_or_glob() {
333-
emit_reexport(db, trap, &mut uses, import, name.as_str());
334+
emit_reexport(crate_graph, db, trap, &mut uses, import, name.as_str());
334335
}
335336
}
336337
if let Some(ra_ap_hir_def::per_ns::Item {

0 commit comments

Comments
 (0)