Skip to content

Commit c10028f

Browse files
committed
import module_to_string
1 parent 33b438c commit c10028f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_resolve/src/check_unused.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
// in the last step
2525

2626
use crate::imports::ImportKind;
27+
use crate::module_to_string;
2728
use crate::Resolver;
2829

2930
use rustc_ast as ast;
@@ -318,7 +319,7 @@ impl Resolver<'_> {
318319
let parent_module = visitor.r.get_nearest_non_block_module(
319320
visitor.r.local_def_id(unused.use_tree_id).to_def_id(),
320321
);
321-
let test_module_span = match super::module_to_string(parent_module) {
322+
let test_module_span = match module_to_string(parent_module) {
322323
Some(module) if module == "test" => Some(parent_module.span),
323324
_ => None,
324325
};

0 commit comments

Comments
 (0)