diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-03 11:44:01 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-03 11:44:01 +0000 |
commit | 17aaece6b39c2fb525be0eccce4626fc622e8236 (patch) | |
tree | 864de162bea4cf160a78d56d6f3a0c0fd82ca73a /crates/ra_hir/src/ty/snapshots/tests__infer_backwards.snap | |
parent | 00b09bcd8c96c37633964aa40df711dc013a6ca5 (diff) | |
parent | 2e8f25884584ec7dd21bdd4be1bcf1c857efa35e (diff) |
Merge #917
917: Trait tests r=flodiebold a=flodiebold
This adds a bunch of basic tests for trait functionality, just to outline what seems like the first goals for that ;)
It also changes the display of `Ty::Unknown` to `{unknown}`, since `[unknown]` could be confused with a slice, and fixes an error in the emacs runnables code.
Co-authored-by: Florian Diebold <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/ty/snapshots/tests__infer_backwards.snap')
-rw-r--r-- | crates/ra_hir/src/ty/snapshots/tests__infer_backwards.snap | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_backwards.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_backwards.snap deleted file mode 100644 index f5840a934..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_backwards.snap +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-01-26T17:46:03.842478456+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: "&result" | ||
5 | source: crates/ra_hir/src/ty/tests.rs | ||
6 | --- | ||
7 | [14; 15) 'x': u32 | ||
8 | [22; 24) '{}': () | ||
9 | [78; 231) '{ ...t &c }': &mut &f64 | ||
10 | [88; 89) 'a': u32 | ||
11 | [92; 108) 'unknow...nction': [unknown] | ||
12 | [92; 110) 'unknow...tion()': u32 | ||
13 | [116; 125) 'takes_u32': fn takes_u32(u32) -> () | ||
14 | [116; 128) 'takes_u32(a)': () | ||
15 | [126; 127) 'a': u32 | ||
16 | [138; 139) 'b': i32 | ||
17 | [142; 158) 'unknow...nction': [unknown] | ||
18 | [142; 160) 'unknow...tion()': i32 | ||
19 | [166; 184) 'S { i3...d: b }': S | ||
20 | [181; 182) 'b': i32 | ||
21 | [194; 195) 'c': f64 | ||
22 | [198; 214) 'unknow...nction': [unknown] | ||
23 | [198; 216) 'unknow...tion()': f64 | ||
24 | [222; 229) '&mut &c': &mut &f64 | ||
25 | [227; 229) '&c': &f64 | ||
26 | [228; 229) 'c': f64 | ||
27 | |||