Cannot compile `autonomi 0.3.6`

Hello. I’m compiling Rust code depending on autonomi 0.3.6. And I get this error:

   Compiling evmlib v0.1.9
error[E0080]: evaluation of constant value failed
  --> /home/maciek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hex-literal-0.4.1/src/lib.rs:17:24
   |
17 |             0..=127 => panic!("Encountered invalid ASCII character"),
   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'Encountered invalid ASCII character', /home/maciek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hex-literal-0.4.1/src/lib.rs:17:24
   |
note: inside `hex_literal::next_hex_char`
  --> /home/maciek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hex-literal-0.4.1/src/lib.rs:17:24
   |
17 |             0..=127 => panic!("Encountered invalid ASCII character"),
   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: inside `hex_literal::next_byte`
  --> /home/maciek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hex-literal-0.4.1/src/lib.rs:30:30
   |
30 |     let (half2, pos) = match next_hex_char(string, pos) {
   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^
note: inside `alloy::alloy_primitives::hex_literal::len`
  --> /home/maciek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hex-literal-0.4.1/src/lib.rs:46:40
   |
46 |         while let Some((_, new_pos)) = next_byte(strings[i], pos) {
   |                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^
note: inside `ARBITRUM_ONE_PAYMENT_TOKEN_ADDRESS::LEN`
  --> /home/maciek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/evmlib-0.1.9/src/lib.rs:48:5
   |
48 |     address!("0xa78d8321B20c4Ef90eCd72f2588AA985A4BDb684");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `address` (in Nightly builds, run with -Z macro-backtrace for more info)

note: erroneous constant encountered
  --> /home/maciek/.cargo/registry/src/index.crates.io-6f17d22bba15001f/evmlib-0.1.9/src/lib.rs:48:5
   |
48 |     address!("0xa78d8321B20c4Ef90eCd72f2588AA985A4BDb684");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this note originates in the macro `$crate::hex` which comes from the expansion of the macro `address` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0080`.
error: could not compile `evmlib` (lib) due to 1 previous error

I recently updated Rust to 1.84.1, maybe there’s something incompatible?

1 Like

Solved by @Traktion :

1 Like