[INFO] crate const-sha1 0.2.0 is already in cache [INFO] testing const-sha1-0.2.0 against 1.45.2 for beta-1.46-1 [INFO] extracting crate const-sha1 0.2.0 into /workspace/builds/worker-2/source [INFO] validating manifest of crates.io crate const-sha1 0.2.0 on toolchain 1.45.2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate const-sha1 0.2.0 [INFO] finished tweaking crates.io crate const-sha1 0.2.0 [INFO] tweaked toml for crates.io crate const-sha1 0.2.0 written to /workspace/builds/worker-2/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bee8c440a137cacd0f0e92a3f406699d643522a222680b6beef54a1428184cc9 [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" "bee8c440a137cacd0f0e92a3f406699d643522a222680b6beef54a1428184cc9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bee8c440a137cacd0f0e92a3f406699d643522a222680b6beef54a1428184cc9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bee8c440a137cacd0f0e92a3f406699d643522a222680b6beef54a1428184cc9", kill_on_drop: false }` [INFO] [stdout] bee8c440a137cacd0f0e92a3f406699d643522a222680b6beef54a1428184cc9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 18534d352df9e5841962d16c404231efef529f521eab01bd8010c041a8e073b6 [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" "18534d352df9e5841962d16c404231efef529f521eab01bd8010c041a8e073b6", kill_on_drop: false }` [INFO] [stderr] Compiling const-sha1 v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0658]: `while` is not allowed in a `const fn` [INFO] [stdout] --> src/lib.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 140 | / while i < data.len() { [INFO] [stdout] 141 | | if data.len() - i >= 64 { [INFO] [stdout] 142 | | let chunk_block = as_block(data, i); [INFO] [stdout] 143 | | len += 64; [INFO] [stdout] ... | [INFO] [stdout] 151 | | } [INFO] [stdout] 152 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #52000 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `if` is not allowed in a `const fn` [INFO] [stdout] --> src/lib.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | / if data.len() - i >= 64 { [INFO] [stdout] 142 | | let chunk_block = as_block(data, i); [INFO] [stdout] 143 | | len += 64; [INFO] [stdout] 144 | | state = process_state(state, chunk_block); [INFO] [stdout] ... | [INFO] [stdout] 150 | | break; [INFO] [stdout] 151 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #49146 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `while` is not allowed in a `const fn` [INFO] [stdout] --> src/lib.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | / while i != 16 { [INFO] [stdout] 115 | | let off = offset + (i * 4); [INFO] [stdout] 116 | | result[i] = (input.get(off + 3) as u32) [INFO] [stdout] 117 | | | ((input.get(off + 2) as u32) << 8) [INFO] [stdout] ... | [INFO] [stdout] 120 | | i += 1; [INFO] [stdout] 121 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #52000 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `while` is not allowed in a `const fn` [INFO] [stdout] --> src/lib.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | / while i < num_elems { [INFO] [stdout] 133 | | data[i] = slice[offset + i]; [INFO] [stdout] 134 | | i += 1; [INFO] [stdout] 135 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #52000 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `if` is not allowed in a `const fn` [INFO] [stdout] --> src/lib.rs:306:5 [INFO] [stdout] | [INFO] [stdout] 306 | / if blocklen < 56 { [INFO] [stdout] 307 | | last = clone_slice_128(last, &extra, 56); [INFO] [stdout] 308 | | state = process_state(state, as_block(&last, 0)); [INFO] [stdout] 309 | | } else { [INFO] [stdout] ... | [INFO] [stdout] 312 | | state = process_state(state, as_block(&last, 64)); [INFO] [stdout] 313 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #49146 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `while` is not allowed in a `const fn` [INFO] [stdout] --> src/lib.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 259 | / while i < num_elems { [INFO] [stdout] 260 | | data[i] = slice[offset + i]; [INFO] [stdout] 261 | | i += 1; [INFO] [stdout] 262 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #52000 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `while` is not allowed in a `const fn` [INFO] [stdout] --> src/lib.rs:268:9 [INFO] [stdout] | [INFO] [stdout] 268 | / while i < slice.len() { [INFO] [stdout] 269 | | data[offset + i] = slice[i]; [INFO] [stdout] 270 | | i += 1; [INFO] [stdout] 271 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #52000 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `while` is not allowed in a `const fn` [INFO] [stdout] --> src/lib.rs:279:9 [INFO] [stdout] | [INFO] [stdout] 279 | / while i != 16 { [INFO] [stdout] 280 | | let off = offset + (i * 4); [INFO] [stdout] 281 | | result[i] = (input[off + 3] as u32) [INFO] [stdout] 282 | | | ((input[off + 2] as u32) << 8) [INFO] [stdout] ... | [INFO] [stdout] 285 | | i += 1; [INFO] [stdout] 286 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #52000 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `while` is not allowed in a `const fn` [INFO] [stdout] --> src/lib.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | / while i < amount { [INFO] [stdout] 85 | | self.data[self.head + i] = slice[i]; [INFO] [stdout] 86 | | i += 1; [INFO] [stdout] 87 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #52000 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0658`. [INFO] [stdout] [INFO] [stderr] error: could not compile `const-sha1`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "18534d352df9e5841962d16c404231efef529f521eab01bd8010c041a8e073b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18534d352df9e5841962d16c404231efef529f521eab01bd8010c041a8e073b6", kill_on_drop: false }` [INFO] [stdout] 18534d352df9e5841962d16c404231efef529f521eab01bd8010c041a8e073b6