]> git.lizzy.rs Git - rust.git/blobdiff - crates/ide_assists/src/handlers/move_bounds.rs
Merge #11481
[rust.git] / crates / ide_assists / src / handlers / move_bounds.rs
index fa3f766093444b4bac6e4d598b5d6298822cf91e..01c6eea225b806b10eb6e71442ea18ac1336c5c9 100644 (file)
@@ -1,5 +1,5 @@
 use syntax::{
-    ast::{self, edit_in_place::GenericParamsOwnerEdit, make, AstNode, NameOwner, TypeBoundsOwner},
+    ast::{self, edit_in_place::GenericParamsOwnerEdit, make, AstNode, HasName, HasTypeBounds},
     match_ast,
 };
 
@@ -36,8 +36,8 @@ pub(crate) fn move_bounds_to_where_clause(acc: &mut Assists, ctx: &AssistContext
         "Move to where clause",
         target,
         |edit| {
-            let type_param_list = edit.make_ast_mut(type_param_list);
-            let parent = edit.make_mut(parent);
+            let type_param_list = edit.make_mut(type_param_list);
+            let parent = edit.make_syntax_mut(parent);
 
             let where_clause: ast::WhereClause = match_ast! {
                 match parent {