git.delta.rocks / unique-network / refs/commits / ab84a20b6c75

difftreelog

fix custom_signature_over_max_size.stderr

Daniel Shiposha2022-12-09parent: #cd16ad3.patch.diff
in: master

1 file changed

modifiedcrates/evm-coder/tests/build_failed/custom_signature_over_max_size.stderrdiffbeforeafterboth
6 |6 |
7 = note: `#[warn(unused_imports)]` on by default7 = note: `#[warn(unused_imports)]` on by default
88
9error: any use of this value will cause an error9error[E0080]: evaluation of `<std::vec::Vec<MaxSize> as Name>::SIGNATURE` failed
10 --> tests/build_failed/custom_signature_over_max_size.rs:19:310 --> tests/build_failed/custom_signature_over_max_size.rs:19:3
11 |11 |
1218 | const SIGNATURE: SignatureUnit =
13 | ------------------------------
1419 | evm_coder::make_signature!(new nameof(T::SIGNATURE) fixed("[]"));1219 | evm_coder::make_signature!(new nameof(T::SIGNATURE) fixed("[]"));
15 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ index out of bounds: the length is 256 but the index is 25613 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ index out of bounds: the length is 256 but the index is 256
16 |14 |
17 = note: `#[deny(const_err)]` on by default
18 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
19 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
20 = note: this error originates in the macro `$crate::make_signature` which comes from the expansion of the macro `evm_coder::make_signature` (in Nightly builds, run with -Z macro-backtrace for more info)15 = note: this error originates in the macro `$crate::make_signature` which comes from the expansion of the macro `evm_coder::make_signature` (in Nightly builds, run with -Z macro-backtrace for more info)
2116
22error: any use of this value will cause an error17error[E0080]: evaluation of constant value failed
23 --> tests/build_failed/custom_signature_over_max_size.rs:30:2918 --> tests/build_failed/custom_signature_over_max_size.rs:30:29
24 |19 |
2530 | const NAME: SignatureUnit = <Vec<MaxSize>>::SIGNATURE;2030 | const NAME: SignatureUnit = <Vec<MaxSize>>::SIGNATURE;
26 | ------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors21 | ^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors
27 |
28 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
29 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
3022