Skip to content

Commit

Permalink
test: fix compiletest
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Jul 3, 2023
1 parent a9a6061 commit 6626ca3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 21 deletions.
12 changes: 1 addition & 11 deletions crates/sol-types/tests/ui/type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ sol! {

sol! {
struct CustomTypes {
bytes_ a;
// bytes_ a; inconsistent output
bytes_32 b;
uint_ c;
uint_256 d;
Expand All @@ -211,16 +211,6 @@ sol! {
}
}

sol! {
struct RecursiveA {
RecursiveB b;
}

struct RecursiveB {
RecursiveA a;
}
}

sol! {
enum MaxEnum {
_0,
Expand Down
23 changes: 13 additions & 10 deletions crates/sol-types/tests/ui/type.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,10 @@ error: intX must be a multiple of 8 up to 256
199 | int7 a;
| ^^^^

error: failed to resolve types.
This is likely due to an infinitely recursive type definition.
If you believe this is a bug, please file an issue at https://github.com/alloy-rs/core/issues/new/choose
--> tests/ui/type.rs:215:12
|
215 | struct RecursiveA {
| ^^^^^^^^^^

error: enum has too many variants
--> tests/ui/type.rs:486:10
--> tests/ui/type.rs:476:10
|
486 | enum TooBigEnum {
476 | enum TooBigEnum {
| ^^^^^^^^^^

error[E0412]: cannot find type `bytes_` in this scope
Expand Down Expand Up @@ -108,6 +100,17 @@ error[E0412]: cannot find type `int_256` in this scope
210 | int_256 f;
| ^^^^^^^ not found in this scope

error[E0412]: cannot find type `bytes_` in this scope
--> tests/ui/type.rs:205:9
|
205 | bytes_ a;
| ^^^^^^ help: a struct with a similar name exists: `Bytes`
|
::: $WORKSPACE/crates/primitives/src/bytes/mod.rs
|
| pub struct Bytes(pub bytes::Bytes);
| ---------------- similarly named struct `Bytes` defined here

error[E0277]: the trait bound `(Address, Address, alloy_sol_types::sol_data::String, Bool, alloy_sol_types::sol_data::Bytes, alloy_sol_types::sol_data::FixedBytes<1>, alloy_sol_types::sol_data::FixedBytes<2>, alloy_sol_types::sol_data::FixedBytes<3>, alloy_sol_types::sol_data::FixedBytes<4>, alloy_sol_types::sol_data::FixedBytes<5>, alloy_sol_types::sol_data::FixedBytes<6>, alloy_sol_types::sol_data::FixedBytes<7>, alloy_sol_types::sol_data::FixedBytes<8>, alloy_sol_types::sol_data::FixedBytes<9>, alloy_sol_types::sol_data::FixedBytes<10>, alloy_sol_types::sol_data::FixedBytes<11>, alloy_sol_types::sol_data::FixedBytes<12>, alloy_sol_types::sol_data::FixedBytes<13>, alloy_sol_types::sol_data::FixedBytes<14>, alloy_sol_types::sol_data::FixedBytes<15>, alloy_sol_types::sol_data::FixedBytes<16>, alloy_sol_types::sol_data::FixedBytes<17>, alloy_sol_types::sol_data::FixedBytes<18>, alloy_sol_types::sol_data::FixedBytes<19>, alloy_sol_types::sol_data::FixedBytes<20>, alloy_sol_types::sol_data::FixedBytes<21>, alloy_sol_types::sol_data::FixedBytes<22>, alloy_sol_types::sol_data::FixedBytes<23>, alloy_sol_types::sol_data::FixedBytes<24>, alloy_sol_types::sol_data::FixedBytes<25>, alloy_sol_types::sol_data::FixedBytes<26>, alloy_sol_types::sol_data::FixedBytes<27>, alloy_sol_types::sol_data::FixedBytes<28>, alloy_sol_types::sol_data::FixedBytes<29>, alloy_sol_types::sol_data::FixedBytes<30>, alloy_sol_types::sol_data::FixedBytes<31>, alloy_sol_types::sol_data::FixedBytes<32>, Int<256>, Int<8>, Int<16>, Int<24>, Int<32>, Int<40>, Int<48>, Int<56>, Int<64>, Int<72>, Int<80>, Int<88>, Int<96>, Int<104>, Int<112>, Int<120>, Int<128>, Int<136>, Int<144>, Int<152>, Int<160>, Int<168>, Int<176>, Int<184>, Int<192>, Int<200>, Int<208>, Int<216>, Int<224>, Int<232>, Int<240>, Int<248>, Int<256>, Uint<256>, Uint<8>, Uint<16>, Uint<24>, Uint<32>, Uint<40>, Uint<48>, Uint<56>, Uint<64>, Uint<72>, Uint<80>, Uint<88>, Uint<96>, Uint<104>, Uint<112>, Uint<120>, Uint<128>, Uint<136>, Uint<144>, Uint<152>, Uint<160>, Uint<168>, Uint<176>, Uint<184>, Uint<192>, Uint<200>, Uint<208>, Uint<216>, Uint<224>, Uint<232>, Uint<240>, Uint<248>, Uint<256>): SolStruct` is not satisfied
--> tests/ui/type.rs:3:1
|
Expand Down

0 comments on commit 6626ca3

Please sign in to comment.