1
1
//! Type tree for term search
2
2
3
- use hir_def:: ImportPathConfig ;
3
+ use hir_def:: FindPathConfig ;
4
4
use hir_expand:: mod_path:: ModPath ;
5
5
use hir_ty:: {
6
6
db:: HirDatabase ,
@@ -18,7 +18,7 @@ use crate::{
18
18
fn mod_item_path (
19
19
sema_scope : & SemanticsScope < ' _ > ,
20
20
def : & ModuleDef ,
21
- cfg : ImportPathConfig ,
21
+ cfg : FindPathConfig ,
22
22
) -> Option < ModPath > {
23
23
let db = sema_scope. db ;
24
24
let m = sema_scope. module ( ) ;
@@ -29,7 +29,7 @@ fn mod_item_path(
29
29
fn mod_item_path_str (
30
30
sema_scope : & SemanticsScope < ' _ > ,
31
31
def : & ModuleDef ,
32
- cfg : ImportPathConfig ,
32
+ cfg : FindPathConfig ,
33
33
edition : Edition ,
34
34
) -> Result < String , DisplaySourceCodeError > {
35
35
let path = mod_item_path ( sema_scope, def, cfg) ;
@@ -103,7 +103,7 @@ impl<'db> Expr<'db> {
103
103
& self ,
104
104
sema_scope : & SemanticsScope < ' db > ,
105
105
many_formatter : & mut dyn FnMut ( & Type < ' db > ) -> String ,
106
- cfg : ImportPathConfig ,
106
+ cfg : FindPathConfig ,
107
107
display_target : DisplayTarget ,
108
108
) -> Result < String , DisplaySourceCodeError > {
109
109
let db = sema_scope. db ;
@@ -380,7 +380,7 @@ impl<'db> Expr<'db> {
380
380
fn container_name (
381
381
container : AssocItemContainer ,
382
382
sema_scope : & SemanticsScope < ' _ > ,
383
- cfg : ImportPathConfig ,
383
+ cfg : FindPathConfig ,
384
384
edition : Edition ,
385
385
display_target : DisplayTarget ,
386
386
) -> Result < String , DisplaySourceCodeError > {
0 commit comments