Skip to content

Commit

Permalink
test: bless tests after updating to syn 2.0.19
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Jun 8, 2023
1 parent 5272f11 commit 848baec
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/sol-types/tests/ui/contract.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,21 @@ error: cannot declare nested contracts
|
5 | contract Nested {}
| ^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot declare nested contracts
--> tests/ui/contract.rs:11:17
|
11 | library Nested {}
| ^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot declare nested contracts
--> tests/ui/contract.rs:17:19
|
17 | interface Nested {}
| ^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)
2 changes: 2 additions & 0 deletions crates/sol-types/tests/ui/empty.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ error: unexpected end of input, defining empty structs is disallowed
|
6 | struct EmptyStruct {}
| ^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)
2 changes: 2 additions & 0 deletions crates/sol-types/tests/ui/error.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ error: expected parentheses
|
8 | error MissingParens2;
| ^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `;`
--> tests/ui/error.rs:11:1
Expand Down
34 changes: 34 additions & 0 deletions crates/sol-types/tests/ui/function.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ error: expected parentheses
|
4 | function missingParens;
| ^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `;`
--> tests/ui/function.rs:7:1
Expand Down Expand Up @@ -39,93 +41,125 @@ error: functions cannot have an implementation
|
20 | function semiNotBrace1() {}
| ^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: functions cannot have an implementation
--> tests/ui/function.rs:24:39
|
24 | function semiNotBrace2() external {}
| ^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: functions cannot have an implementation
--> tests/ui/function.rs:28:48
|
28 | function semiNotBrace3() returns (uint256) {}
| ^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected a Solidity type: `address`, `bool`, `string`, `bytesN`, `intN`, `uintN`, a tuple, or a custom type name
--> tests/ui/function.rs:32:26
|
32 | function singleComma(,);
| ^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected parentheses
--> tests/ui/function.rs:43:34
|
43 | function badReturn1() returns;
| ^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected at least one return type
--> tests/ui/function.rs:47:34
|
47 | function badReturn2() returns();
| ^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: function `overloadTaken` is overloaded, but the generated name `overloadTaken_0` is already in use
--> tests/ui/function.rs:82:14
|
82 | function overloadTaken();
| ^^^^^^^^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: other declaration is here
--> tests/ui/function.rs:85:14
|
85 | function overloadTaken_0();
| ^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: function `overloadTaken` is overloaded, but the generated name `overloadTaken_1` is already in use
--> tests/ui/function.rs:83:14
|
83 | function overloadTaken(uint256);
| ^^^^^^^^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: other declaration is here
--> tests/ui/function.rs:86:14
|
86 | function overloadTaken_1();
| ^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: function with same name and parameter types defined twice
--> tests/ui/function.rs:91:14
|
91 | function sameFnOverload();
| ^^^^^^^^^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: other declaration is here
--> tests/ui/function.rs:92:14
|
92 | function sameFnOverload();
| ^^^^^^^^^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: function with same name and parameter types defined twice
--> tests/ui/function.rs:96:14
|
96 | function sameFnTysOverload1(uint256[] memory a);
| ^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: other declaration is here
--> tests/ui/function.rs:97:14
|
97 | function sameFnTysOverload1(uint256[] storage b);
| ^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: function with same name and parameter types defined twice
--> tests/ui/function.rs:101:14
|
101 | function sameFnTysOverload2(string memory, string storage);
| ^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: other declaration is here
--> tests/ui/function.rs:102:14
|
102 | function sameFnTysOverload2(string storage b, string calldata);
| ^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)
12 changes: 12 additions & 0 deletions crates/sol-types/tests/ui/storage.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,45 @@ error: data locations are not allowed in struct definitions
|
5 | bool memory a;
| ^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: data locations are not allowed in struct definitions
--> tests/ui/storage.rs:11:14
|
11 | bool storage a;
| ^^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: data locations are not allowed in struct definitions
--> tests/ui/storage.rs:17:14
|
17 | bool calldata a;
| ^^^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: data location can only be specified for array, struct or mapping types
--> tests/ui/storage.rs:23:14
|
23 | bool memory a,
| ^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: data location can only be specified for array, struct or mapping types
--> tests/ui/storage.rs:29:14
|
29 | bool storage a,
| ^^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: data location can only be specified for array, struct or mapping types
--> tests/ui/storage.rs:35:14
|
35 | bool calldata a,
| ^^^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)
20 changes: 20 additions & 0 deletions crates/sol-types/tests/ui/type.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,57 +3,77 @@ error: empty tuples are not allowed
|
145 | () t;
| ^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: single element tuples must have a trailing comma
--> tests/ui/type.rs:151:14
|
151 | (bool) t;
| ^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: invalid size: number would be zero for non-zero type
--> tests/ui/type.rs:157:9
|
157 | bytes0 a;
| ^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: fixed bytes range is 1-32
--> tests/ui/type.rs:163:9
|
163 | bytes33 a;
| ^^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: invalid size: number would be zero for non-zero type
--> tests/ui/type.rs:169:9
|
169 | uint0 a;
| ^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: uintX must be a multiple of 8 up to 256
--> tests/ui/type.rs:175:9
|
175 | uint264 a;
| ^^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: uintX must be a multiple of 8 up to 256
--> tests/ui/type.rs:181:9
|
181 | uint7 a;
| ^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: invalid size: number would be zero for non-zero type
--> tests/ui/type.rs:187:9
|
187 | int0 a;
| ^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: intX must be a multiple of 8 up to 256
--> tests/ui/type.rs:193:9
|
193 | int264 a;
| ^^^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

error: intX must be a multiple of 8 up to 256
--> tests/ui/type.rs:199:9
|
199 | int7 a;
| ^^^^
|
= note: this error originates in the macro `sol` (in Nightly builds, run with -Z macro-backtrace for more info)

0 comments on commit 848baec

Please sign in to comment.