diff options
author | Kevaundray Wedderburn <[email protected]> | 2021-01-06 20:15:48 +0000 |
---|---|---|
committer | Kevaundray Wedderburn <[email protected]> | 2021-01-07 12:09:23 +0000 |
commit | 72b9a4fbd3c12f3250b9157a1d44230e04ec8b22 (patch) | |
tree | c138363e3592c690d841aeedb9ac97d6b2ff4396 /crates/assists/src/handlers/move_bounds.rs | |
parent | 171c3c08fe245938fb25321394233de5fe2abc7c (diff) |
Change <|> to $0 - Rebase
Diffstat (limited to 'crates/assists/src/handlers/move_bounds.rs')
-rw-r--r-- | crates/assists/src/handlers/move_bounds.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/assists/src/handlers/move_bounds.rs b/crates/assists/src/handlers/move_bounds.rs index e2e461520..cf260c6f8 100644 --- a/crates/assists/src/handlers/move_bounds.rs +++ b/crates/assists/src/handlers/move_bounds.rs | |||
@@ -12,7 +12,7 @@ use crate::{AssistContext, AssistId, AssistKind, Assists}; | |||
12 | // Moves inline type bounds to a where clause. | 12 | // Moves inline type bounds to a where clause. |
13 | // | 13 | // |
14 | // ``` | 14 | // ``` |
15 | // fn apply<T, U, <|>F: FnOnce(T) -> U>(f: F, x: T) -> U { | 15 | // fn apply<T, U, $0F: FnOnce(T) -> U>(f: F, x: T) -> U { |
16 | // f(x) | 16 | // f(x) |
17 | // } | 17 | // } |
18 | // ``` | 18 | // ``` |
@@ -103,7 +103,7 @@ mod tests { | |||
103 | check_assist( | 103 | check_assist( |
104 | move_bounds_to_where_clause, | 104 | move_bounds_to_where_clause, |
105 | r#" | 105 | r#" |
106 | fn foo<T: u32, <|>F: FnOnce(T) -> T>() {} | 106 | fn foo<T: u32, $0F: FnOnce(T) -> T>() {} |
107 | "#, | 107 | "#, |
108 | r#" | 108 | r#" |
109 | fn foo<T, F>() where T: u32, F: FnOnce(T) -> T {} | 109 | fn foo<T, F>() where T: u32, F: FnOnce(T) -> T {} |
@@ -116,7 +116,7 @@ mod tests { | |||
116 | check_assist( | 116 | check_assist( |
117 | move_bounds_to_where_clause, | 117 | move_bounds_to_where_clause, |
118 | r#" | 118 | r#" |
119 | impl<U: u32, <|>T> A<U, T> {} | 119 | impl<U: u32, $0T> A<U, T> {} |
120 | "#, | 120 | "#, |
121 | r#" | 121 | r#" |
122 | impl<U, T> A<U, T> where U: u32 {} | 122 | impl<U, T> A<U, T> where U: u32 {} |
@@ -129,7 +129,7 @@ mod tests { | |||
129 | check_assist( | 129 | check_assist( |
130 | move_bounds_to_where_clause, | 130 | move_bounds_to_where_clause, |
131 | r#" | 131 | r#" |
132 | struct A<<|>T: Iterator<Item = u32>> {} | 132 | struct A<$0T: Iterator<Item = u32>> {} |
133 | "#, | 133 | "#, |
134 | r#" | 134 | r#" |
135 | struct A<T> where T: Iterator<Item = u32> {} | 135 | struct A<T> where T: Iterator<Item = u32> {} |
@@ -142,7 +142,7 @@ mod tests { | |||
142 | check_assist( | 142 | check_assist( |
143 | move_bounds_to_where_clause, | 143 | move_bounds_to_where_clause, |
144 | r#" | 144 | r#" |
145 | struct Pair<<|>T: u32>(T, T); | 145 | struct Pair<$0T: u32>(T, T); |
146 | "#, | 146 | "#, |
147 | r#" | 147 | r#" |
148 | struct Pair<T>(T, T) where T: u32; | 148 | struct Pair<T>(T, T) where T: u32; |