[INFO] fetching crate gasp-swap 0.2.1...
[INFO] checking gasp-swap-0.2.1 against 52995a223f2919dd3e2e427231db90a257350ded for pr-129249-4
[INFO] extracting crate gasp-swap 0.2.1 into /workspace/builds/worker-3-tc2/source
[INFO] started tweaking crates.io crate gasp-swap 0.2.1
[INFO] finished tweaking crates.io crate gasp-swap 0.2.1
[INFO] tweaked toml for crates.io crate gasp-swap 0.2.1 written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate gasp-swap 0.2.1 on toolchain 52995a223f2919dd3e2e427231db90a257350ded
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+52995a223f2919dd3e2e427231db90a257350ded" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate gasp-swap 0.2.1 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+52995a223f2919dd3e2e427231db90a257350ded" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: `package.homepage` is redundant with `package.repository`
[INFO] [stderr]   --> Cargo.toml:53:12
[INFO] [stderr]    |
[INFO] [stderr] 53 | homepage = "https://github.com/gasp-xyz/gasp-swap"
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 57 | repository = "https://github.com/gasp-xyz/gasp-swap"
[INFO] [stderr]    |              ---------------------------------------
[INFO] [stderr]    |
[INFO] [stderr]    = note: `cargo::redundant_homepage` is set to `warn` by default
[INFO] [stderr] help: consider removing `package.homepage`
[INFO] [stderr] warning: `gasp-swap` (manifest) generated 1 warning
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] a8c32173c66043a50cb79b25b97dd1e21eb15d9927eee10a27b8ecf1e06176b4
[INFO] running `Command { std: "docker" "start" "a8c32173c66043a50cb79b25b97dd1e21eb15d9927eee10a27b8ecf1e06176b4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a8c32173c66043a50cb79b25b97dd1e21eb15d9927eee10a27b8ecf1e06176b4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "a8c32173c66043a50cb79b25b97dd1e21eb15d9927eee10a27b8ecf1e06176b4" "/opt/rustwide/cargo-home/bin/cargo" "+52995a223f2919dd3e2e427231db90a257350ded" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a8c32173c66043a50cb79b25b97dd1e21eb15d9927eee10a27b8ecf1e06176b4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "a8c32173c66043a50cb79b25b97dd1e21eb15d9927eee10a27b8ecf1e06176b4" "/opt/rustwide/cargo-home/bin/cargo" "+52995a223f2919dd3e2e427231db90a257350ded" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] warning: `package.homepage` is redundant with `package.repository`
[INFO] [stderr]   --> Cargo.toml:53:12
[INFO] [stderr]    |
[INFO] [stderr] 53 | homepage = "https://github.com/gasp-xyz/gasp-swap"
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 57 | repository = "https://github.com/gasp-xyz/gasp-swap"
[INFO] [stderr]    |              ---------------------------------------
[INFO] [stderr]    |
[INFO] [stderr]    = note: `cargo::redundant_homepage` is set to `warn` by default
[INFO] [stderr] help: consider removing `package.homepage`
[INFO] [stderr] warning: `gasp-swap` (manifest) generated 1 warning
[INFO] [stderr]    Compiling hashbrown v0.15.2
[INFO] [stderr]    Compiling winnow v0.7.6
[INFO] [stderr]    Compiling toml_datetime v0.6.8
[INFO] [stderr]    Compiling rustversion v1.0.20
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling crunchy v0.2.3
[INFO] [stderr]     Checking byte-slice-cast v1.2.3
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]     Checking hex v0.4.3
[INFO] [stderr]     Checking sp-std v14.0.0
[INFO] [stderr]     Checking fixed-hash v0.8.0
[INFO] [stderr]     Checking similar v2.7.0
[INFO] [stderr]    Compiling syn v2.0.100
[INFO] [stderr]    Compiling const_format_proc_macros v0.2.34
[INFO] [stderr]     Checking console v0.15.11
[INFO] [stderr]     Checking uint v0.10.0
[INFO] [stderr]    Compiling parity-scale-codec v3.7.4
[INFO] [stderr]     Checking const_format v0.2.34
[INFO] [stderr]    Compiling indexmap v2.9.0
[INFO] [stderr]     Checking integer-sqrt v0.1.5
[INFO] [stderr]     Checking impl-num-traits v0.2.0
[INFO] [stderr]     Checking primitive-types v0.13.1
[INFO] [stderr]    Compiling toml_edit v0.22.24
[INFO] [stderr]    Compiling test-case-core v3.3.1
[INFO] [stderr]    Compiling proc-macro-crate v3.3.0
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling impl-trait-for-tuples v0.2.3
[INFO] [stderr]    Compiling parity-scale-codec-derive v3.7.4
[INFO] [stderr]    Compiling derive_more-impl v1.0.0
[INFO] [stderr]    Compiling scale-info-derive v2.11.6
[INFO] [stderr]    Compiling pin-project-internal v1.1.10
[INFO] [stderr]    Compiling test-case-macros v3.3.1
[INFO] [stderr]     Checking test-case v3.3.1
[INFO] [stderr]     Checking pin-project v1.1.10
[INFO] [stderr]     Checking derive_more v1.0.0
[INFO] [stderr]     Checking insta v1.42.2
[INFO] [stderr]     Checking scale-info v2.11.6
[INFO] [stderr]     Checking sp-arithmetic v23.0.0
[INFO] [stderr]     Checking bounded-collections v0.2.4
[INFO] [stderr]     Checking gasp-swap v0.2.1 (/opt/rustwide/workdir)
[INFO] [stdout] error: useless conversion to the same type: `Error`
[INFO] [stdout]    --> src/utils.rs:7:14
[INFO] [stdout]     |
[INFO] [stdout]   5 | / macro_rules! fail {
[INFO] [stdout]   6 | |     ( $y:expr ) => {{
[INFO] [stdout]   7 | |         return Err($y.into());
[INFO] [stdout]     | |                    ^^^^^^^^^
[INFO] [stdout]   8 | |     }};
[INFO] [stdout]   9 | | }
[INFO] [stdout]     | |_- this error originates in the macro `$crate::fail` which comes from the expansion of the macro `ensure`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/stable_swap.rs:100:4
[INFO] [stdout]     |
[INFO] [stdout] 100 |               ensure!(balance > T::Balance::zero(), Error::ZeroReserve);
[INFO] [stdout]     |               --------------------------------------------------------- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]     = note: you can instead use the fully-qualified path `<Error as Into<Error>::into(val) to avoid triggering this lint
[INFO] [stdout]     = note: `#[deny(self_type_conversion)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `Error`
[INFO] [stdout]    --> src/utils.rs:7:14
[INFO] [stdout]     |
[INFO] [stdout]   5 | / macro_rules! fail {
[INFO] [stdout]   6 | |     ( $y:expr ) => {{
[INFO] [stdout]   7 | |         return Err($y.into());
[INFO] [stdout]     | |                    ^^^^^^^^^
[INFO] [stdout]   8 | |     }};
[INFO] [stdout]   9 | | }
[INFO] [stdout]     | |_- this error originates in the macro `$crate::fail` which comes from the expansion of the macro `ensure`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/stable_swap.rs:299:3
[INFO] [stdout]     |
[INFO] [stdout] 299 |           ensure!(i != j && j >= 0 as usize && j < xp.len(), Error::UnexpectedFailure);
[INFO] [stdout]     |           ---------------------------------------------------------------------------- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]     = note: you can instead use the fully-qualified path `<Error as Into<Error>::into(val) to avoid triggering this lint
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `Error`
[INFO] [stdout]    --> src/utils.rs:7:14
[INFO] [stdout]     |
[INFO] [stdout]   5 | / macro_rules! fail {
[INFO] [stdout]   6 | |     ( $y:expr ) => {{
[INFO] [stdout]   7 | |         return Err($y.into());
[INFO] [stdout]     | |                    ^^^^^^^^^
[INFO] [stdout]   8 | |     }};
[INFO] [stdout]   9 | | }
[INFO] [stdout]     | |_- this error originates in the macro `$crate::fail` which comes from the expansion of the macro `ensure`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/stable_swap.rs:300:3
[INFO] [stdout]     |
[INFO] [stdout] 300 |           ensure!(i >= 0 as usize && i < xp.len(), Error::UnexpectedFailure);
[INFO] [stdout]     |           ------------------------------------------------------------------ in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]     = note: you can instead use the fully-qualified path `<Error as Into<Error>::into(val) to avoid triggering this lint
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `gasp-swap` (lib) due to 3 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: function `test_calculate_sell_price_invariant_broken` is never used
[INFO] [stdout]    --> src/tests.rs:106:4
[INFO] [stdout]     |
[INFO] [stdout] 106 | fn test_calculate_sell_price_invariant_broken() {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `Error`
[INFO] [stdout]    --> src/utils.rs:7:14
[INFO] [stdout]     |
[INFO] [stdout]   5 | / macro_rules! fail {
[INFO] [stdout]   6 | |     ( $y:expr ) => {{
[INFO] [stdout]   7 | |         return Err($y.into());
[INFO] [stdout]     | |                    ^^^^^^^^^
[INFO] [stdout]   8 | |     }};
[INFO] [stdout]   9 | | }
[INFO] [stdout]     | |_- this error originates in the macro `$crate::fail` which comes from the expansion of the macro `ensure`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/stable_swap.rs:100:4
[INFO] [stdout]     |
[INFO] [stdout] 100 |               ensure!(balance > T::Balance::zero(), Error::ZeroReserve);
[INFO] [stdout]     |               --------------------------------------------------------- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]     = note: you can instead use the fully-qualified path `<Error as Into<Error>::into(val) to avoid triggering this lint
[INFO] [stdout]     = note: `#[deny(self_type_conversion)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `Error`
[INFO] [stdout]    --> src/utils.rs:7:14
[INFO] [stdout]     |
[INFO] [stdout]   5 | / macro_rules! fail {
[INFO] [stdout]   6 | |     ( $y:expr ) => {{
[INFO] [stdout]   7 | |         return Err($y.into());
[INFO] [stdout]     | |                    ^^^^^^^^^
[INFO] [stdout]   8 | |     }};
[INFO] [stdout]   9 | | }
[INFO] [stdout]     | |_- this error originates in the macro `$crate::fail` which comes from the expansion of the macro `ensure`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/stable_swap.rs:299:3
[INFO] [stdout]     |
[INFO] [stdout] 299 |           ensure!(i != j && j >= 0 as usize && j < xp.len(), Error::UnexpectedFailure);
[INFO] [stdout]     |           ---------------------------------------------------------------------------- in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]     = note: you can instead use the fully-qualified path `<Error as Into<Error>::into(val) to avoid triggering this lint
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `Error`
[INFO] [stdout]    --> src/utils.rs:7:14
[INFO] [stdout]     |
[INFO] [stdout]   5 | / macro_rules! fail {
[INFO] [stdout]   6 | |     ( $y:expr ) => {{
[INFO] [stdout]   7 | |         return Err($y.into());
[INFO] [stdout]     | |                    ^^^^^^^^^
[INFO] [stdout]   8 | |     }};
[INFO] [stdout]   9 | | }
[INFO] [stdout]     | |_- this error originates in the macro `$crate::fail` which comes from the expansion of the macro `ensure`
[INFO] [stdout]     |
[INFO] [stdout]    ::: src/stable_swap.rs:300:3
[INFO] [stdout]     |
[INFO] [stdout] 300 |           ensure!(i >= 0 as usize && i < xp.len(), Error::UnexpectedFailure);
[INFO] [stdout]     |           ------------------------------------------------------------------ in this macro invocation
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]     = note: you can instead use the fully-qualified path `<Error as Into<Error>::into(val) to avoid triggering this lint
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `gasp-swap` (lib test) due to 3 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "a8c32173c66043a50cb79b25b97dd1e21eb15d9927eee10a27b8ecf1e06176b4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a8c32173c66043a50cb79b25b97dd1e21eb15d9927eee10a27b8ecf1e06176b4", kill_on_drop: false }`
[INFO] [stdout] a8c32173c66043a50cb79b25b97dd1e21eb15d9927eee10a27b8ecf1e06176b4
