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/simple.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/simple.rs')
-rw-r--r-- | crates/ra_hir_ty/src/tests/simple.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir_ty/src/tests/simple.rs b/crates/ra_hir_ty/src/tests/simple.rs index 141f0245a..c2f1ded2f 100644 --- a/crates/ra_hir_ty/src/tests/simple.rs +++ b/crates/ra_hir_ty/src/tests/simple.rs | |||
@@ -521,7 +521,7 @@ fn test() -> &mut &f64 { | |||
521 | [88; 89) 'a': u32 | 521 | [88; 89) 'a': u32 |
522 | [92; 108) 'unknow...nction': {unknown} | 522 | [92; 108) 'unknow...nction': {unknown} |
523 | [92; 110) 'unknow...tion()': u32 | 523 | [92; 110) 'unknow...tion()': u32 |
524 | [116; 125) 'takes_u32': fn takes_u32(u32) -> () | 524 | [116; 125) 'takes_u32': fn takes_u32(u32) |
525 | [116; 128) 'takes_u32(a)': () | 525 | [116; 128) 'takes_u32(a)': () |
526 | [126; 127) 'a': u32 | 526 | [126; 127) 'a': u32 |
527 | [138; 139) 'b': i32 | 527 | [138; 139) 'b': i32 |
@@ -1749,9 +1749,9 @@ fn main() { | |||
1749 | [67; 91) 'Vtable...| {} }': Vtable | 1749 | [67; 91) 'Vtable...| {} }': Vtable |
1750 | [84; 89) '|| {}': || -> () | 1750 | [84; 89) '|| {}': || -> () |
1751 | [87; 89) '{}': () | 1751 | [87; 89) '{}': () |
1752 | [101; 102) 'm': fn() -> () | 1752 | [101; 102) 'm': fn() |
1753 | [105; 111) 'vtable': Vtable | 1753 | [105; 111) 'vtable': Vtable |
1754 | [105; 118) 'vtable.method': fn() -> () | 1754 | [105; 118) 'vtable.method': fn() |
1755 | "### | 1755 | "### |
1756 | ); | 1756 | ); |
1757 | } | 1757 | } |