diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-04-05 19:27:44 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-05 19:27:44 +0100 |
commit | bf2d91b26ae5e047abb4f0e7975bb6d0163bab21 (patch) | |
tree | a39fbb5d654a5626ce66c11446776c739b462d6b /crates/ra_hir_ty/src/tests/coercion.rs | |
parent | 3431312418ea255e98d3f94536344d396b9b07d6 (diff) | |
parent | 7d62280a713de08b361a08df077ff361b2e1fa99 (diff) |
Merge #3858
3858: Hide unit function return types r=flodiebold a=lnicola
r? @flodiebold
This might be a bit heavy-handed (e.g. `|| -> ()` to `||`), what do you think?
Co-authored-by: Laurențiu Nicola <[email protected]>
Diffstat (limited to 'crates/ra_hir_ty/src/tests/coercion.rs')
-rw-r--r-- | crates/ra_hir_ty/src/tests/coercion.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_hir_ty/src/tests/coercion.rs b/crates/ra_hir_ty/src/tests/coercion.rs index 3e3d55c04..b2c971f02 100644 --- a/crates/ra_hir_ty/src/tests/coercion.rs +++ b/crates/ra_hir_ty/src/tests/coercion.rs | |||
@@ -407,16 +407,16 @@ fn test() { | |||
407 | [30; 31) 'x': &Foo | 407 | [30; 31) 'x': &Foo |
408 | [39; 41) '{}': () | 408 | [39; 41) '{}': () |
409 | [52; 133) '{ ...oo); }': () | 409 | [52; 133) '{ ...oo); }': () |
410 | [58; 71) 'takes_ref_foo': fn takes_ref_foo(&Foo) -> () | 410 | [58; 71) 'takes_ref_foo': fn takes_ref_foo(&Foo) |
411 | [58; 77) 'takes_...(&Foo)': () | 411 | [58; 77) 'takes_...(&Foo)': () |
412 | [72; 76) '&Foo': &Foo | 412 | [72; 76) '&Foo': &Foo |
413 | [73; 76) 'Foo': Foo | 413 | [73; 76) 'Foo': Foo |
414 | [83; 96) 'takes_ref_foo': fn takes_ref_foo(&Foo) -> () | 414 | [83; 96) 'takes_ref_foo': fn takes_ref_foo(&Foo) |
415 | [83; 103) 'takes_...&&Foo)': () | 415 | [83; 103) 'takes_...&&Foo)': () |
416 | [97; 102) '&&Foo': &&Foo | 416 | [97; 102) '&&Foo': &&Foo |
417 | [98; 102) '&Foo': &Foo | 417 | [98; 102) '&Foo': &Foo |
418 | [99; 102) 'Foo': Foo | 418 | [99; 102) 'Foo': Foo |
419 | [109; 122) 'takes_ref_foo': fn takes_ref_foo(&Foo) -> () | 419 | [109; 122) 'takes_ref_foo': fn takes_ref_foo(&Foo) |
420 | [109; 130) 'takes_...&&Foo)': () | 420 | [109; 130) 'takes_...&&Foo)': () |
421 | [123; 129) '&&&Foo': &&&Foo | 421 | [123; 129) '&&&Foo': &&&Foo |
422 | [124; 129) '&&Foo': &&Foo | 422 | [124; 129) '&&Foo': &&Foo |
@@ -484,7 +484,7 @@ fn test() { | |||
484 | [171; 178) 'loop {}': ! | 484 | [171; 178) 'loop {}': ! |
485 | [176; 178) '{}': () | 485 | [176; 178) '{}': () |
486 | [191; 236) '{ ... }); }': () | 486 | [191; 236) '{ ... }); }': () |
487 | [197; 210) 'takes_ref_str': fn takes_ref_str(&str) -> () | 487 | [197; 210) 'takes_ref_str': fn takes_ref_str(&str) |
488 | [197; 233) 'takes_...g() })': () | 488 | [197; 233) 'takes_...g() })': () |
489 | [211; 232) '&{ ret...ng() }': &String | 489 | [211; 232) '&{ ret...ng() }': &String |
490 | [212; 232) '{ retu...ng() }': String | 490 | [212; 232) '{ retu...ng() }': String |