diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-08-07 14:16:06 +0100 |
---|---|---|
committer | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-08-07 14:16:06 +0100 |
commit | c5b44975b8dd8f9b4b98dc64855943113795ecfa (patch) | |
tree | c7209226fc680c545a02b0deb6da25c61a64500f /crates/ra_ide_api/src | |
parent | 9ea4ae680a2d3ce2da38cd7fc6c039e5d7d03171 (diff) | |
parent | 6efc79b89d50b1b2ad9127afb2073bebe4b35290 (diff) |
Merge #1660
1660: implement while let desugaring r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src')
-rw-r--r-- | crates/ra_ide_api/src/inlay_hints.rs | 36 |
1 files changed, 29 insertions, 7 deletions
diff --git a/crates/ra_ide_api/src/inlay_hints.rs b/crates/ra_ide_api/src/inlay_hints.rs index 7b9190314..0b3c96d26 100644 --- a/crates/ra_ide_api/src/inlay_hints.rs +++ b/crates/ra_ide_api/src/inlay_hints.rs | |||
@@ -414,13 +414,35 @@ fn main() { | |||
414 | }"#, | 414 | }"#, |
415 | ); | 415 | ); |
416 | 416 | ||
417 | assert_debug_snapshot_matches!(analysis.inlay_hints(file_id).unwrap(), @r#"[ | 417 | assert_debug_snapshot_matches!(analysis.inlay_hints(file_id).unwrap(), @r###" |
418 | InlayHint { | 418 | ⋮[ |
419 | range: [166; 170), | 419 | ⋮ InlayHint { |
420 | kind: TypeHint, | 420 | ⋮ range: [166; 170), |
421 | label: "CustomOption<Test>", | 421 | ⋮ kind: TypeHint, |
422 | }, | 422 | ⋮ label: "CustomOption<Test>", |
423 | ]"# | 423 | ⋮ }, |
424 | ⋮ InlayHint { | ||
425 | ⋮ range: [343; 347), | ||
426 | ⋮ kind: TypeHint, | ||
427 | ⋮ label: "&Test", | ||
428 | ⋮ }, | ||
429 | ⋮ InlayHint { | ||
430 | ⋮ range: [401; 402), | ||
431 | ⋮ kind: TypeHint, | ||
432 | ⋮ label: "&CustomOption<u32>", | ||
433 | ⋮ }, | ||
434 | ⋮ InlayHint { | ||
435 | ⋮ range: [404; 405), | ||
436 | ⋮ kind: TypeHint, | ||
437 | ⋮ label: "&u8", | ||
438 | ⋮ }, | ||
439 | ⋮ InlayHint { | ||
440 | ⋮ range: [549; 550), | ||
441 | ⋮ kind: TypeHint, | ||
442 | ⋮ label: "&u32", | ||
443 | ⋮ }, | ||
444 | ⋮] | ||
445 | "### | ||
424 | ); | 446 | ); |
425 | } | 447 | } |
426 | 448 | ||