From 6ca19b2188aa0f45b0484246abde35d0ded8a846 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 28 Jan 2020 15:31:43 +0100 Subject: Standard formatting for array types --- crates/ra_hir_ty/src/tests/simple.rs | 70 ++++++++++++++++++------------------ 1 file changed, 35 insertions(+), 35 deletions(-) (limited to 'crates/ra_hir_ty/src/tests/simple.rs') diff --git a/crates/ra_hir_ty/src/tests/simple.rs b/crates/ra_hir_ty/src/tests/simple.rs index b7204ec00..fdab9c187 100644 --- a/crates/ra_hir_ty/src/tests/simple.rs +++ b/crates/ra_hir_ty/src/tests/simple.rs @@ -28,7 +28,7 @@ mod boxed { "#, ); - assert_eq!("(Box, Box>, Box<&i32>, Box<[i32;_]>)", type_at_pos(&db, pos)); + assert_eq!("(Box, Box>, Box<&i32>, Box<[i32; _]>)", type_at_pos(&db, pos)); } #[test] @@ -1061,55 +1061,55 @@ fn test(x: &str, y: isize) { [9; 10) 'x': &str [18; 19) 'y': isize [28; 293) '{ ... []; }': () - [38; 39) 'a': [&str;_] - [42; 45) '[x]': [&str;_] + [38; 39) 'a': [&str; _] + [42; 45) '[x]': [&str; _] [43; 44) 'x': &str - [55; 56) 'b': [[&str;_];_] - [59; 65) '[a, a]': [[&str;_];_] - [60; 61) 'a': [&str;_] - [63; 64) 'a': [&str;_] - [75; 76) 'c': [[[&str;_];_];_] - [79; 85) '[b, b]': [[[&str;_];_];_] - [80; 81) 'b': [[&str;_];_] - [83; 84) 'b': [[&str;_];_] - [96; 97) 'd': [isize;_] - [100; 112) '[y, 1, 2, 3]': [isize;_] + [55; 56) 'b': [[&str; _]; _] + [59; 65) '[a, a]': [[&str; _]; _] + [60; 61) 'a': [&str; _] + [63; 64) 'a': [&str; _] + [75; 76) 'c': [[[&str; _]; _]; _] + [79; 85) '[b, b]': [[[&str; _]; _]; _] + [80; 81) 'b': [[&str; _]; _] + [83; 84) 'b': [[&str; _]; _] + [96; 97) 'd': [isize; _] + [100; 112) '[y, 1, 2, 3]': [isize; _] [101; 102) 'y': isize [104; 105) '1': isize [107; 108) '2': isize [110; 111) '3': isize - [122; 123) 'd': [isize;_] - [126; 138) '[1, y, 2, 3]': [isize;_] + [122; 123) 'd': [isize; _] + [126; 138) '[1, y, 2, 3]': [isize; _] [127; 128) '1': isize [130; 131) 'y': isize [133; 134) '2': isize [136; 137) '3': isize - [148; 149) 'e': [isize;_] - [152; 155) '[y]': [isize;_] + [148; 149) 'e': [isize; _] + [152; 155) '[y]': [isize; _] [153; 154) 'y': isize - [165; 166) 'f': [[isize;_];_] - [169; 175) '[d, d]': [[isize;_];_] - [170; 171) 'd': [isize;_] - [173; 174) 'd': [isize;_] - [185; 186) 'g': [[isize;_];_] - [189; 195) '[e, e]': [[isize;_];_] - [190; 191) 'e': [isize;_] - [193; 194) 'e': [isize;_] - [206; 207) 'h': [i32;_] - [210; 216) '[1, 2]': [i32;_] + [165; 166) 'f': [[isize; _]; _] + [169; 175) '[d, d]': [[isize; _]; _] + [170; 171) 'd': [isize; _] + [173; 174) 'd': [isize; _] + [185; 186) 'g': [[isize; _]; _] + [189; 195) '[e, e]': [[isize; _]; _] + [190; 191) 'e': [isize; _] + [193; 194) 'e': [isize; _] + [206; 207) 'h': [i32; _] + [210; 216) '[1, 2]': [i32; _] [211; 212) '1': i32 [214; 215) '2': i32 - [226; 227) 'i': [&str;_] - [230; 240) '["a", "b"]': [&str;_] + [226; 227) 'i': [&str; _] + [230; 240) '["a", "b"]': [&str; _] [231; 234) '"a"': &str [236; 239) '"b"': &str - [251; 252) 'b': [[&str;_];_] - [255; 265) '[a, ["b"]]': [[&str;_];_] - [256; 257) 'a': [&str;_] - [259; 264) '["b"]': [&str;_] + [251; 252) 'b': [[&str; _]; _] + [255; 265) '[a, ["b"]]': [[&str; _]; _] + [256; 257) 'a': [&str; _] + [259; 264) '["b"]': [&str; _] [260; 263) '"b"': &str - [275; 276) 'x': [u8;_] - [288; 290) '[]': [u8;_] + [275; 276) 'x': [u8; _] + [288; 290) '[]': [u8; _] "### ); } -- cgit v1.2.3