11//! Type tree for term search
22
3- use hir_def:: ImportPathConfig ;
3+ use hir_def:: FindPathConfig ;
44use hir_expand:: mod_path:: ModPath ;
55use hir_ty:: {
66 db:: HirDatabase ,
@@ -18,7 +18,7 @@ use crate::{
1818fn mod_item_path (
1919 sema_scope : & SemanticsScope < ' _ > ,
2020 def : & ModuleDef ,
21- cfg : ImportPathConfig ,
21+ cfg : FindPathConfig ,
2222) -> Option < ModPath > {
2323 let db = sema_scope. db ;
2424 let m = sema_scope. module ( ) ;
@@ -29,7 +29,7 @@ fn mod_item_path(
2929fn mod_item_path_str (
3030 sema_scope : & SemanticsScope < ' _ > ,
3131 def : & ModuleDef ,
32- cfg : ImportPathConfig ,
32+ cfg : FindPathConfig ,
3333 edition : Edition ,
3434) -> Result < String , DisplaySourceCodeError > {
3535 let path = mod_item_path ( sema_scope, def, cfg) ;
@@ -103,7 +103,7 @@ impl<'db> Expr<'db> {
103103 & self ,
104104 sema_scope : & SemanticsScope < ' db > ,
105105 many_formatter : & mut dyn FnMut ( & Type < ' db > ) -> String ,
106- cfg : ImportPathConfig ,
106+ cfg : FindPathConfig ,
107107 display_target : DisplayTarget ,
108108 ) -> Result < String , DisplaySourceCodeError > {
109109 let db = sema_scope. db ;
@@ -380,7 +380,7 @@ impl<'db> Expr<'db> {
380380fn container_name (
381381 container : AssocItemContainer ,
382382 sema_scope : & SemanticsScope < ' _ > ,
383- cfg : ImportPathConfig ,
383+ cfg : FindPathConfig ,
384384 edition : Edition ,
385385 display_target : DisplayTarget ,
386386) -> Result < String , DisplaySourceCodeError > {
0 commit comments