Skip to content

Commit 5442230

Browse files
committed
bring had_errors back
1 parent 82ee673 commit 5442230

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+14
-822
lines changed

third_party/move/move-compiler-v2/tests/checking/naming/standalone_mname.exp

-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11

22
Diagnostics:
3-
error: unable to infer type: `?0`
4-
┌─ tests/checking/naming/standalone_mname.move:3:13
5-
6-
3 │ let m = M;
7-
│ ^
8-
93
error: undeclared `M::M`
104
┌─ tests/checking/naming/standalone_mname.move:3:17
115

third_party/move/move-compiler-v2/tests/checking/naming/unbound_module_name.exp

-12
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,11 @@
11

22
Diagnostics:
3-
error: unable to infer type: `?0`
4-
┌─ tests/checking/naming/unbound_module_name.move:7:13
5-
6-
7 │ let x = N::c;
7-
│ ^
8-
93
error: undeclared `N::c`
104
┌─ tests/checking/naming/unbound_module_name.move:7:17
115
126
7 │ let x = N::c;
137
│ ^^^^
148

15-
error: unable to infer type: `?1`
16-
┌─ tests/checking/naming/unbound_module_name.move:8:13
17-
18-
8 │ let y = Self::c;
19-
│ ^
20-
219
error: undeclared `M::c`
2210
┌─ tests/checking/naming/unbound_module_name.move:8:17
2311

third_party/move/move-compiler-v2/tests/checking/naming/unbound_struct_in_current.exp

-24
Original file line numberDiff line numberDiff line change
@@ -30,44 +30,20 @@ error: undeclared struct `M::S`
3030
12 │ S {} = bar();
3131
│ ^
3232

33-
error: unable to infer type: `?2`
34-
┌─ tests/checking/naming/unbound_struct_in_current.move:12:9
35-
36-
12 │ S {} = bar();
37-
│ ^^^^
38-
3933
error: undeclared struct `M::S`
4034
┌─ tests/checking/naming/unbound_struct_in_current.move:13:9
4135
4236
13 │ Self::S {} = bar();
4337
│ ^^^^^^^
4438

45-
error: unable to infer type: `?5`
46-
┌─ tests/checking/naming/unbound_struct_in_current.move:13:9
47-
48-
13 │ Self::S {} = bar();
49-
│ ^^^^^^^^^^
50-
5139
error: undeclared struct `M::S`
5240
┌─ tests/checking/naming/unbound_struct_in_current.move:17:13
5341
5442
17 │ let S {} = bar();
5543
│ ^
5644

57-
error: unable to infer type: `?1`
58-
┌─ tests/checking/naming/unbound_struct_in_current.move:17:13
59-
60-
17 │ let S {} = bar();
61-
│ ^^^^
62-
6345
error: undeclared struct `M::S`
6446
┌─ tests/checking/naming/unbound_struct_in_current.move:18:13
6547
6648
18 │ let Self::S {} = bar();
6749
│ ^^^^^^^
68-
69-
error: unable to infer type: `?3`
70-
┌─ tests/checking/naming/unbound_struct_in_current.move:18:13
71-
72-
18 │ let Self::S {} = bar();
73-
│ ^^^^^^^^^^

third_party/move/move-compiler-v2/tests/checking/naming/unbound_unqualified_function.exp

-6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ error: no function named `bar` found
66
3 │ bar();
77
│ ^^^^^
88

9-
error: unable to infer type: `?1`
10-
┌─ tests/checking/naming/unbound_unqualified_function.move:4:13
11-
12-
4 │ let x = bar();
13-
│ ^
14-
159
error: no function named `bar` found
1610
┌─ tests/checking/naming/unbound_unqualified_function.move:4:17
1711

third_party/move/move-compiler-v2/tests/checking/specs/expressions_err.exp

-6
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ error: invalid call of `M::wrongly_typed_callee`: expected `bool` but found `u25
3636
32 │ wrongly_typed_callee(1, 1) // Wrongly typed function application
3737
│ ^
3838

39-
error: unable to infer type: `?1`
40-
┌─ tests/checking/specs/expressions_err.move:37:37
41-
42-
37 │ wrongly_typed_fun_arg_callee(|x| false) // Wrongly typed function argument.
43-
│ ^
44-
4539
error: invalid call of `M::wrongly_typed_fun_arg_callee`: expected `num` but found `bool` for argument 1
4640
┌─ tests/checking/specs/expressions_err.move:37:36
4741

third_party/move/move-compiler-v2/tests/checking/typing/assign_nested.exp

-6
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,3 @@ error: expected 4 item(s), found 3
55
66
14 │ (_, x, _) = four();
77
│ ^^^^^^^^^
8-
9-
error: unable to infer type: `?7`
10-
┌─ tests/checking/typing/assign_nested.move:14:9
11-
12-
14 │ (_, x, _) = four();
13-
│ ^^^^^^^^^

third_party/move/move-compiler-v2/tests/checking/typing/assign_unpack_references_invalid.exp

-12
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ error: expected `&u64` but found `integer` (from assignment or declaration conte
66
9 │ f = 0;
77
│ ^
88

9-
error: unable to infer type: `?6`
10-
┌─ tests/checking/typing/assign_unpack_references_invalid.move:9:13
11-
12-
9 │ f = 0;
13-
│ ^
14-
159
error: expected `&M::S` but found `M::S` (from assignment or declaration context)
1610
┌─ tests/checking/typing/assign_unpack_references_invalid.move:10:9
1711
@@ -24,12 +18,6 @@ error: expected `&mut u64` but found `integer` (from assignment or declaration c
2418
17 │ f = 0;
2519
│ ^
2620

27-
error: unable to infer type: `?6`
28-
┌─ tests/checking/typing/assign_unpack_references_invalid.move:17:13
29-
30-
17 │ f = 0;
31-
│ ^
32-
3321
error: expected `&mut M::S` but found `M::S` (from assignment or declaration context)
3422
┌─ tests/checking/typing/assign_unpack_references_invalid.move:18:9
3523

third_party/move/move-compiler-v2/tests/checking/typing/assign_wrong_arity.exp

-30
Original file line numberDiff line numberDiff line change
@@ -12,44 +12,14 @@ error: expected `()` but found `integer` (from assignment or declaration context
1212
8 │ () = 0;
1313
│ ^^
1414

15-
error: unable to infer type: `?12`
16-
┌─ tests/checking/typing/assign_wrong_arity.move:8:14
17-
18-
8 │ () = 0;
19-
│ ^
20-
21-
error: unable to infer type: `?14`
22-
┌─ tests/checking/typing/assign_wrong_arity.move:9:13
23-
24-
9 │ let b;
25-
│ ^
26-
27-
error: unable to infer type: `?15`
28-
┌─ tests/checking/typing/assign_wrong_arity.move:10:13
29-
30-
10 │ let f;
31-
│ ^
32-
3315
error: expected 4 item(s), found 3
3416
┌─ tests/checking/typing/assign_wrong_arity.move:11:9
3517
3618
11 │ (x, b, R{f}) = (0, false, R{f: 0}, R{f: 0});
3719
│ ^^^^^^^^^^^^
3820

39-
error: unable to infer type: `?23`
40-
┌─ tests/checking/typing/assign_wrong_arity.move:11:9
41-
42-
11 │ (x, b, R{f}) = (0, false, R{f: 0}, R{f: 0});
43-
│ ^^^^^^^^^^^^
44-
4521
error: expected 2 item(s), found 3
4622
┌─ tests/checking/typing/assign_wrong_arity.move:12:9
4723
4824
12 │ (x, b, R{f}) = (0, false);
4925
│ ^^^^^^^^^^^^
50-
51-
error: unable to infer type: `?29`
52-
┌─ tests/checking/typing/assign_wrong_arity.move:12:9
53-
54-
12 │ (x, b, R{f}) = (0, false);
55-
│ ^^^^^^^^^^^^

third_party/move/move-compiler-v2/tests/checking/typing/assign_wrong_type.exp

-42
Original file line numberDiff line numberDiff line change
@@ -12,60 +12,24 @@ error: expected `M::S` but found `M::R`
1212
9 │ (S { g }, R { f }) = (R{ f: 0 }, R{ f: 1 });
1313
│ ^^^^^^^
1414

15-
error: unable to infer type: `?1`
16-
┌─ tests/checking/typing/assign_wrong_type.move:14:13
17-
18-
14 │ let b;
19-
│ ^
20-
21-
error: unable to infer type: `?2`
22-
┌─ tests/checking/typing/assign_wrong_type.move:15:13
23-
24-
15 │ let f;
25-
│ ^
26-
2715
error: expected `()` but found `integer` (from assignment or declaration context)
2816
┌─ tests/checking/typing/assign_wrong_type.move:17:9
2917
3018
17 │ () = 0;
3119
│ ^^
3220

33-
error: unable to infer type: `?6`
34-
┌─ tests/checking/typing/assign_wrong_type.move:17:14
35-
36-
17 │ () = 0;
37-
│ ^
38-
3921
error: expected 4 item(s), found 3
4022
┌─ tests/checking/typing/assign_wrong_type.move:18:9
4123
4224
18 │ (x, b, R{f}) = (0, false, R{f: 0}, R{f: 0});
4325
│ ^^^^^^^^^^^^
4426

45-
error: unable to infer type: `?15`
46-
┌─ tests/checking/typing/assign_wrong_type.move:18:9
47-
48-
18 │ (x, b, R{f}) = (0, false, R{f: 0}, R{f: 0});
49-
│ ^^^^^^^^^^^^
50-
5127
error: expected 2 item(s), found 3
5228
┌─ tests/checking/typing/assign_wrong_type.move:19:9
5329
5430
19 │ (x, b, R{f}) = (0, false);
5531
│ ^^^^^^^^^^^^
5632

57-
error: unable to infer type: `?21`
58-
┌─ tests/checking/typing/assign_wrong_type.move:19:9
59-
60-
19 │ (x, b, R{f}) = (0, false);
61-
│ ^^^^^^^^^^^^
62-
63-
error: unable to infer type: `?1`
64-
┌─ tests/checking/typing/assign_wrong_type.move:24:17
65-
66-
24 │ let b = 0;
67-
│ ^
68-
6933
error: expected `bool` but found `integer` (from assignment or declaration context)
7034
┌─ tests/checking/typing/assign_wrong_type.move:27:10
7135
@@ -89,9 +53,3 @@ error: expected `M::S` but found `M::R` (from assignment or declaration context)
8953
9054
27 │ (x, b, R{f}, r) = (0, false, R{f: 0}, R{f: 0});
9155
│ ^
92-
93-
error: unable to infer type: `?7`
94-
┌─ tests/checking/typing/assign_wrong_type.move:27:28
95-
96-
27 │ (x, b, R{f}, r) = (0, false, R{f: 0}, R{f: 0});
97-
│ ^

third_party/move/move-compiler-v2/tests/checking/typing/bad_type_argument_arity_fun.exp

-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11

22
Diagnostics:
3-
error: unable to infer type: `?0`
4-
┌─ tests/checking/typing/bad_type_argument_arity_fun.move:11:13
5-
6-
11 │ let x = foo<>(0);
7-
│ ^
8-
93
error: invalid call of `M::foo`: generic count mismatch (expected 1 but found 0)
104
┌─ tests/checking/typing/bad_type_argument_arity_fun.move:11:17
115

third_party/move/move-compiler-v2/tests/checking/typing/bad_type_argument_arity_struct_unpack.exp

-12
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ error: generic count mismatch (expected 1 but found 0)
66
7 │ let S<> { f } = copy s;
77
│ ^^^^^^^^^
88

9-
error: unable to infer type: `?1`
10-
┌─ tests/checking/typing/bad_type_argument_arity_struct_unpack.move:7:13
11-
12-
7 │ let S<> { f } = copy s;
13-
│ ^^^^^^^^^
14-
159
error: undeclared `M::f`
1610
┌─ tests/checking/typing/bad_type_argument_arity_struct_unpack.move:8:9
1711
@@ -24,12 +18,6 @@ error: generic count mismatch (expected 1 but found 2)
2418
9 │ let S<u64, u64> { f } = copy s;
2519
│ ^^^^^^^^^^^^^^^^^
2620

27-
error: unable to infer type: `?4`
28-
┌─ tests/checking/typing/bad_type_argument_arity_struct_unpack.move:9:13
29-
30-
9 │ let S<u64, u64> { f } = copy s;
31-
│ ^^^^^^^^^^^^^^^^^
32-
3321
error: undeclared `M::f`
3422
┌─ tests/checking/typing/bad_type_argument_arity_struct_unpack.move:10:9
3523

third_party/move/move-compiler-v2/tests/checking/typing/bind_unpack_references_invalid.exp

-12
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ error: expected `&u64` but found `integer` (from assignment or declaration conte
66
7 │ f = 0;
77
│ ^
88

9-
error: unable to infer type: `?3`
10-
┌─ tests/checking/typing/bind_unpack_references_invalid.move:7:13
11-
12-
7 │ f = 0;
13-
│ ^
14-
159
error: expected `&M::S` but found `M::S` (from assignment or declaration context)
1610
┌─ tests/checking/typing/bind_unpack_references_invalid.move:8:9
1711
@@ -24,12 +18,6 @@ error: expected `&mut u64` but found `integer` (from assignment or declaration c
2418
13 │ f = 0;
2519
│ ^
2620

27-
error: unable to infer type: `?3`
28-
┌─ tests/checking/typing/bind_unpack_references_invalid.move:13:13
29-
30-
13 │ f = 0;
31-
│ ^
32-
3321
error: expected `&mut M::S` but found `M::S` (from assignment or declaration context)
3422
┌─ tests/checking/typing/bind_unpack_references_invalid.move:14:9
3523

third_party/move/move-compiler-v2/tests/checking/typing/bind_wrong_arity.exp

-12
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,8 @@ error: expected 4 item(s), found 3
1212
7 │ let (x, b, R{f}): (u64, bool, R, R) = (0, false, R{f: 0}, R{f: 0});
1313
│ ^^^^^^^^^^^^
1414

15-
error: unable to infer type: `?3`
16-
┌─ tests/checking/typing/bind_wrong_arity.move:7:13
17-
18-
7 │ let (x, b, R{f}): (u64, bool, R, R) = (0, false, R{f: 0}, R{f: 0});
19-
│ ^^^^^^^^^^^^
20-
2115
error: expected 2 item(s), found 3
2216
┌─ tests/checking/typing/bind_wrong_arity.move:8:13
2317
2418
8 │ let (x, b, R{f}): (u64, bool) = (0, false);
2519
│ ^^^^^^^^^^^^
26-
27-
error: unable to infer type: `?5`
28-
┌─ tests/checking/typing/bind_wrong_arity.move:8:13
29-
30-
8 │ let (x, b, R{f}): (u64, bool) = (0, false);
31-
│ ^^^^^^^^^^^^

0 commit comments

Comments
 (0)