Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-assists/src/handlers/move_bounds.rs')
-rw-r--r--crates/ide-assists/src/handlers/move_bounds.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide-assists/src/handlers/move_bounds.rs b/crates/ide-assists/src/handlers/move_bounds.rs
index 1dd376ac3f..5101d8fa0a 100644
--- a/crates/ide-assists/src/handlers/move_bounds.rs
+++ b/crates/ide-assists/src/handlers/move_bounds.rs
@@ -78,7 +78,7 @@ pub(crate) fn move_bounds_to_where_clause(
fn build_predicate(param: ast::TypeParam) -> Option<ast::WherePred> {
let path = make::ext::ident_path(&param.name()?.syntax().to_string());
- let predicate = make::where_pred(path, param.type_bound_list()?.bounds());
+ let predicate = make::where_pred(make::ty_path(path), param.type_bound_list()?.bounds());
Some(predicate.clone_for_update())
}