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
before · crates/evm-coder/tests/build_failed/custom_signature_over_max_size.stderr
1warning: unused import: `make_signature`2 --> tests/build_failed/custom_signature_over_max_size.rs:5:23  |45 |     make_signature,5  |     ^^^^^^^^^^^^^^6  |7  = note: `#[warn(unused_imports)]` on by default89error: any use of this value will cause an error10  --> tests/build_failed/custom_signature_over_max_size.rs:19:311   |1218 |     const SIGNATURE: SignatureUnit =13   |     ------------------------------1419 |         evm_coder::make_signature!(new nameof(T::SIGNATURE) fixed("[]"));15   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ index out of bounds: the length is 256 but the index is 25616   |17   = note: `#[deny(const_err)]` on by default18   = 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)2122error: any use of this value will cause an error23  --> tests/build_failed/custom_signature_over_max_size.rs:30:2924   |2530 | const NAME: SignatureUnit = <Vec<MaxSize>>::SIGNATURE;26   | -------------------------   ^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors27   |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>
after · crates/evm-coder/tests/build_failed/custom_signature_over_max_size.stderr
1warning: unused import: `make_signature`2 --> tests/build_failed/custom_signature_over_max_size.rs:5:23  |45 |     make_signature,5  |     ^^^^^^^^^^^^^^6  |7  = note: `#[warn(unused_imports)]` on by default89error[E0080]: evaluation of `<std::vec::Vec<MaxSize> as Name>::SIGNATURE` failed10  --> tests/build_failed/custom_signature_over_max_size.rs:19:311   |1219 |         evm_coder::make_signature!(new nameof(T::SIGNATURE) fixed("[]"));13   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ index out of bounds: the length is 256 but the index is 25614   |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)1617error[E0080]: evaluation of constant value failed18  --> tests/build_failed/custom_signature_over_max_size.rs:30:2919   |2030 | const NAME: SignatureUnit = <Vec<MaxSize>>::SIGNATURE;21   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors