[INFO] fetching crate rypt 0.8.0... [INFO] checking rypt-0.8.0 against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] extracting crate rypt 0.8.0 into /workspace/builds/worker-5/source [INFO] validating manifest of crates.io crate rypt 0.8.0 on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rypt 0.8.0 [INFO] finished tweaking crates.io crate rypt 0.8.0 [INFO] tweaked toml for crates.io crate rypt 0.8.0 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate crates.io crate rypt 0.8.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded quote v1.0.1 [INFO] [stderr] Downloaded hex-literal-impl v0.2.0 [INFO] [stderr] Downloaded libflate v0.1.26 [INFO] [stderr] Downloaded hex-literal v0.2.0 [INFO] [stderr] Downloaded syn v1.0.2 [INFO] [stderr] Downloaded libsodium-sys v0.2.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3676981518bc8f58833df2e6c0e6149fbd86e6cd7868d5ea2ac10f96b8653102 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3676981518bc8f58833df2e6c0e6149fbd86e6cd7868d5ea2ac10f96b8653102", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3676981518bc8f58833df2e6c0e6149fbd86e6cd7868d5ea2ac10f96b8653102", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3676981518bc8f58833df2e6c0e6149fbd86e6cd7868d5ea2ac10f96b8653102", kill_on_drop: false }` [INFO] [stdout] 3676981518bc8f58833df2e6c0e6149fbd86e6cd7868d5ea2ac10f96b8653102 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5d720563ac99ca8597f7b6c4386460b485740ab9ce3d03364bc08e5e126eeb52 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5d720563ac99ca8597f7b6c4386460b485740ab9ce3d03364bc08e5e126eeb52", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] log v0.4.8 (as host dependency): std [INFO] [stderr] [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling cfg-if v0.1.9 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling autocfg v0.1.5 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Checking lazy_static v1.3.0 [INFO] [stderr] Compiling either v1.5.2 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling rle-decode-fast v1.0.1 [INFO] [stderr] Compiling getrandom v0.1.9 [INFO] [stderr] Compiling proc-macro2 v1.0.1 [INFO] [stderr] Compiling adler32 v1.0.3 [INFO] [stderr] Compiling fixedbitset v0.1.9 [INFO] [stderr] Compiling unicode-segmentation v1.3.0 [INFO] [stderr] Compiling remove_dir_all v0.5.2 [INFO] [stderr] Compiling pkg-config v0.3.15 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling syn v1.0.2 [INFO] [stderr] Compiling multimap v0.4.0 [INFO] [stderr] Checking ppv-lite86 v0.2.5 [INFO] [stderr] Checking regex-syntax v0.6.11 [INFO] [stderr] Checking unicode-width v0.1.5 [INFO] [stderr] Compiling itertools v0.8.0 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking crossbeam-utils v0.6.6 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling petgraph v0.4.13 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Checking getopts v0.2.19 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Checking c2-chacha v0.2.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking crossbeam-channel v0.3.9 [INFO] [stderr] Compiling libflate v0.1.26 [INFO] [stderr] Compiling backtrace-sys v0.1.31 [INFO] [stderr] Compiling iovec v0.1.2 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling filetime v0.2.7 [INFO] [stderr] Compiling xattr v0.2.2 [INFO] [stderr] Checking aho-corasick v0.7.6 [INFO] [stderr] Compiling backtrace v0.3.34 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling tar v0.4.26 [INFO] [stderr] Compiling quote v1.0.1 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking rand_core v0.5.0 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Checking rand v0.7.0 [INFO] [stderr] Checking regex v1.2.1 [INFO] [stderr] Compiling tempfile v3.0.8 [INFO] [stderr] Compiling libsodium-sys v0.2.2 [INFO] [stderr] Checking env_logger v0.6.2 [INFO] [stderr] Checking quickcheck v0.8.5 [INFO] [stderr] Compiling proc-macro-hack v0.5.9 [INFO] [stderr] Compiling synstructure v0.10.2 [INFO] [stderr] Compiling hex-literal-impl v0.2.0 [INFO] [stderr] Checking hex-literal v0.2.0 [INFO] [stderr] Compiling failure v0.1.5 [INFO] [stderr] Compiling which v2.0.1 [INFO] [stderr] Compiling prost-derive v0.5.0 [INFO] [stderr] Compiling prost-build v0.5.0 [INFO] [stderr] Compiling prost v0.5.0 [INFO] [stderr] Compiling prost-types v0.5.0 [INFO] [stderr] Compiling rypt v0.8.0 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `rypt` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/header_crypto.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected expression, found `as` [INFO] [stderr] --> src/header_crypto.rs:142:36 [INFO] [stderr] | [INFO] [stderr] 142 | if val == 1 { 0 } else { val } as u64 [INFO] [stderr] | ^^ expected expression [INFO] [stderr] | [INFO] [stderr] help: parentheses are required to parse this as an expression [INFO] [stderr] | [INFO] [stderr] 142 | (if val == 1 { 0 } else { val }) as u64 [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/header_crypto.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 142 | (if val == 1 { 0 } else { val } as u64) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/header_crypto.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 142 | (if val == 1 { 0 } else { val } as u64) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/force_tests.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/util.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/basic_tests.rs from 2018 edition to 2021 [INFO] [stderr] Migrating tests/tty_verbosity_tests.rs from 2018 edition to 2021 [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 33s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling prost-build v0.5.0 [INFO] [stderr] Compiling rypt v0.8.0 (/tmp/fixit) [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/header_crypto.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 142 | (if val == 1 { 0 } else { val } as u64) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/header_crypto.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 142 | (if val == 1 { 0 } else { val } as u64) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.83s [INFO] running `Command { std: "docker" "inspect" "5d720563ac99ca8597f7b6c4386460b485740ab9ce3d03364bc08e5e126eeb52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d720563ac99ca8597f7b6c4386460b485740ab9ce3d03364bc08e5e126eeb52", kill_on_drop: false }` [INFO] [stdout] 5d720563ac99ca8597f7b6c4386460b485740ab9ce3d03364bc08e5e126eeb52