diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-01-07 12:27:17 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-07 12:27:17 +0000 |
commit | 7967ce85cfc5fc2b1996425b44f2a45d0841c8ff (patch) | |
tree | 4495b9de7ea6c8e9dd9fd347d42517e9dee511fa /crates/completion/src/lib.rs | |
parent | c3e9fb183bc287d83b97b776edc87c54d18d1a73 (diff) | |
parent | 72b9a4fbd3c12f3250b9157a1d44230e04ec8b22 (diff) |
Merge #7184
7184: Changes Cursor Marker To $0 r=matklad a=kevaundray
Co-authored-by: Kevaundray Wedderburn <[email protected]>
Diffstat (limited to 'crates/completion/src/lib.rs')
-rw-r--r-- | crates/completion/src/lib.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crates/completion/src/lib.rs b/crates/completion/src/lib.rs index 3c7d5a46c..6cba88a6b 100644 --- a/crates/completion/src/lib.rs +++ b/crates/completion/src/lib.rs | |||
@@ -47,8 +47,8 @@ pub use crate::{ | |||
47 | // - `expr.while` -> `while expr {}` or `while let ... {}` for `Option` or `Result` | 47 | // - `expr.while` -> `while expr {}` or `while let ... {}` for `Option` or `Result` |
48 | // - `expr.ref` -> `&expr` | 48 | // - `expr.ref` -> `&expr` |
49 | // - `expr.refm` -> `&mut expr` | 49 | // - `expr.refm` -> `&mut expr` |
50 | // - `expr.let` -> `let <|> = expr;` | 50 | // - `expr.let` -> `let $0 = expr;` |
51 | // - `expr.letm` -> `let mut <|> = expr;` | 51 | // - `expr.letm` -> `let mut $0 = expr;` |
52 | // - `expr.not` -> `!expr` | 52 | // - `expr.not` -> `!expr` |
53 | // - `expr.dbg` -> `dbg!(expr)` | 53 | // - `expr.dbg` -> `dbg!(expr)` |
54 | // - `expr.dbgr` -> `dbg!(&expr)` | 54 | // - `expr.dbgr` -> `dbg!(&expr)` |
@@ -92,7 +92,7 @@ pub use crate::{ | |||
92 | /// ```no_run | 92 | /// ```no_run |
93 | /// fn f() { | 93 | /// fn f() { |
94 | /// let foo = 92; | 94 | /// let foo = 92; |
95 | /// let _ = bar<|> | 95 | /// let _ = bar$0 |
96 | /// } | 96 | /// } |
97 | /// ``` | 97 | /// ``` |
98 | /// | 98 | /// |
@@ -220,7 +220,7 @@ mod tests { | |||
220 | 220 | ||
221 | fn foo() { | 221 | fn foo() { |
222 | let bar = Bar; | 222 | let bar = Bar; |
223 | bar.fo<|>; | 223 | bar.fo$0; |
224 | } | 224 | } |
225 | "#, | 225 | "#, |
226 | DetailAndDocumentation { detail: "fn foo(&self)", documentation: "Do the foo" }, | 226 | DetailAndDocumentation { detail: "fn foo(&self)", documentation: "Do the foo" }, |
@@ -246,7 +246,7 @@ mod tests { | |||
246 | 246 | ||
247 | fn foo() { | 247 | fn foo() { |
248 | let bar = Bar; | 248 | let bar = Bar; |
249 | bar.fo<|>; | 249 | bar.fo$0; |
250 | } | 250 | } |
251 | "#, | 251 | "#, |
252 | DetailAndDocumentation { detail: "fn foo(&self)", documentation: " Do the foo" }, | 252 | DetailAndDocumentation { detail: "fn foo(&self)", documentation: " Do the foo" }, |
@@ -259,7 +259,7 @@ mod tests { | |||
259 | check_no_completion( | 259 | check_no_completion( |
260 | r#" | 260 | r#" |
261 | fn foo() { | 261 | fn foo() { |
262 | for i i<|> | 262 | for i i$0 |
263 | } | 263 | } |
264 | "#, | 264 | "#, |
265 | ); | 265 | ); |
@@ -270,7 +270,7 @@ mod tests { | |||
270 | fn foo() -> &'static str { "foo" } | 270 | fn foo() -> &'static str { "foo" } |
271 | 271 | ||
272 | fn bar() { | 272 | fn bar() { |
273 | for c in fo<|> | 273 | for c in fo$0 |
274 | } | 274 | } |
275 | "#, | 275 | "#, |
276 | DetailAndDocumentation { | 276 | DetailAndDocumentation { |