aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty/tests/data
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/ty/tests/data')
-rw-r--r--crates/ra_hir/src/ty/tests/data/0001_basics.rs11
-rw-r--r--crates/ra_hir/src/ty/tests/data/0002_let.rs5
-rw-r--r--crates/ra_hir/src/ty/tests/data/0002_let.txt14
-rw-r--r--crates/ra_hir/src/ty/tests/data/0003_paths.rs10
-rw-r--r--crates/ra_hir/src/ty/tests/data/0003_paths.txt18
5 files changed, 16 insertions, 42 deletions
diff --git a/crates/ra_hir/src/ty/tests/data/0001_basics.rs b/crates/ra_hir/src/ty/tests/data/0001_basics.rs
deleted file mode 100644
index 59a60d031..000000000
--- a/crates/ra_hir/src/ty/tests/data/0001_basics.rs
+++ /dev/null
@@ -1,11 +0,0 @@
1
2fn test(a: u32, b: isize, c: !, d: &str) {
3 a;
4 b;
5 c;
6 d;
7 1usize;
8 1isize;
9 "test";
10 1.0f32;
11}
diff --git a/crates/ra_hir/src/ty/tests/data/0002_let.rs b/crates/ra_hir/src/ty/tests/data/0002_let.rs
deleted file mode 100644
index 5641da75b..000000000
--- a/crates/ra_hir/src/ty/tests/data/0002_let.rs
+++ /dev/null
@@ -1,5 +0,0 @@
1fn test() {
2 let a = 1isize;
3 let b: usize = 1;
4 let c = b;
5}
diff --git a/crates/ra_hir/src/ty/tests/data/0002_let.txt b/crates/ra_hir/src/ty/tests/data/0002_let.txt
index 5f515ee59..2d0d1f57b 100644
--- a/crates/ra_hir/src/ty/tests/data/0002_let.txt
+++ b/crates/ra_hir/src/ty/tests/data/0002_let.txt
@@ -1,7 +1,7 @@
1[51; 52) '1': [unknown] 1[21; 22) 'a': [unknown]
2[10; 70) '{ ...= b; }': () 2[52; 53) '1': [unknown]
3[24; 30) '1isize': [unknown] 3[11; 71) '{ ...= b; }': ()
4[20; 21) 'a': [unknown] 4[63; 64) 'c': usize
5[62; 63) 'c': usize 5[25; 31) '1isize': [unknown]
6[66; 67) 'b': usize 6[41; 42) 'b': usize
7[40; 41) 'b': usize 7[67; 68) 'b': usize
diff --git a/crates/ra_hir/src/ty/tests/data/0003_paths.rs b/crates/ra_hir/src/ty/tests/data/0003_paths.rs
deleted file mode 100644
index e8b11198b..000000000
--- a/crates/ra_hir/src/ty/tests/data/0003_paths.rs
+++ /dev/null
@@ -1,10 +0,0 @@
1fn a() -> u32 { 1 }
2
3mod b {
4 fn c() -> u32 { 1 }
5}
6
7fn test() {
8 a();
9 b::c();
10}
diff --git a/crates/ra_hir/src/ty/tests/data/0003_paths.txt b/crates/ra_hir/src/ty/tests/data/0003_paths.txt
index acde9b7ad..dcb5456ae 100644
--- a/crates/ra_hir/src/ty/tests/data/0003_paths.txt
+++ b/crates/ra_hir/src/ty/tests/data/0003_paths.txt
@@ -1,9 +1,9 @@
1[16; 17) '1': [unknown] 1[15; 20) '{ 1 }': [unknown]
2[14; 19) '{ 1 }': [unknown] 2[17; 18) '1': [unknown]
3[47; 52) '{ 1 }': [unknown] 3[50; 51) '1': [unknown]
4[49; 50) '1': [unknown] 4[48; 53) '{ 1 }': [unknown]
5[81; 87) 'b::c()': u32 5[82; 88) 'b::c()': u32
6[66; 90) '{ ...c(); }': () 6[67; 91) '{ ...c(); }': ()
7[72; 73) 'a': fn() -> u32 7[73; 74) 'a': fn() -> u32
8[72; 75) 'a()': u32 8[73; 76) 'a()': u32
9[81; 85) 'b::c': fn() -> u32 9[82; 86) 'b::c': fn() -> u32