]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/rust-analyzer/crates/ide-db/src/path_transform.rs
Rollup merge of #102890 - camsteffen:adt-sized-representability, r=cjgillot
[rust.git] / src / tools / rust-analyzer / crates / ide-db / src / path_transform.rs
index 40af9e6fe2ad80f04042810ab5bc500548bc60b4..12d873b4a0aa8be0c067f697cb7823375e7ce625 100644 (file)
@@ -173,6 +173,7 @@ fn transform_path(&self, path: ast::Path) -> Option<()> {
                             let found_path = self.target_module.find_use_path(
                                 self.source_scope.db.upcast(),
                                 hir::ModuleDef::Trait(trait_ref),
+                                false,
                             )?;
                             match ast::make::ty_path(mod_path_to_ast(&found_path)) {
                                 ast::Type::PathType(path_ty) => Some(path_ty),
@@ -209,7 +210,7 @@ fn transform_path(&self, path: ast::Path) -> Option<()> {
                 }
 
                 let found_path =
-                    self.target_module.find_use_path(self.source_scope.db.upcast(), def)?;
+                    self.target_module.find_use_path(self.source_scope.db.upcast(), def, false)?;
                 let res = mod_path_to_ast(&found_path).clone_for_update();
                 if let Some(args) = path.segment().and_then(|it| it.generic_arg_list()) {
                     if let Some(segment) = res.segment() {