[INFO] fetching crate badger 0.2.1... [INFO] testing badger-0.2.1 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate badger 0.2.1 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate badger 0.2.1 [INFO] finished tweaking crates.io crate badger 0.2.1 [INFO] tweaked toml for crates.io crate badger 0.2.1 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate badger 0.2.1 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 16 packages to latest compatible versions [INFO] [stderr] Adding docopt v0.6.86 (available: v1.1.1) [INFO] [stderr] Adding itoa v0.1.1 (available: v1.0.15) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 145bc2ec3d0ac590e6b60b94a4e6bb86d3d4030df1c604b9ca2c2fabfbcfa091 [INFO] running `Command { std: "docker" "start" "-a" "145bc2ec3d0ac590e6b60b94a4e6bb86d3d4030df1c604b9ca2c2fabfbcfa091", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "145bc2ec3d0ac590e6b60b94a4e6bb86d3d4030df1c604b9ca2c2fabfbcfa091", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "145bc2ec3d0ac590e6b60b94a4e6bb86d3d4030df1c604b9ca2c2fabfbcfa091", kill_on_drop: false }` [INFO] [stdout] 145bc2ec3d0ac590e6b60b94a4e6bb86d3d4030df1c604b9ca2c2fabfbcfa091 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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" "RUSTDOCFLAGS=--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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6d22f4cf5196173630bf23fbb062c3b6a5234ff258ce4f289eb6f32976fa44f4 [INFO] running `Command { std: "docker" "start" "-a" "6d22f4cf5196173630bf23fbb062c3b6a5234ff258ce4f289eb6f32976fa44f4", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling regex-syntax v0.3.9 [INFO] [stderr] Compiling lazy_static v0.2.11 [INFO] [stderr] Compiling rustc-serialize v0.3.25 [INFO] [stderr] Compiling strsim v0.5.2 [INFO] [stderr] Compiling itoa v0.1.1 [INFO] [stderr] Compiling memchr v0.1.11 [INFO] [stderr] Compiling aho-corasick v0.5.3 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling thread-id v2.0.0 [INFO] [stderr] Compiling thread_local v0.2.7 [INFO] [stderr] Compiling regex v0.1.80 [INFO] [stderr] Compiling docopt v0.6.86 [INFO] [stderr] Compiling badger v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer.rs:240:21 [INFO] [stdout] | [INFO] [stdout] 240 | b'0'...b'7' => peek - b'0', [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer.rs:257:21 [INFO] [stdout] | [INFO] [stdout] 257 | b'0'...b'9' => peek - b'0', [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer.rs:258:21 [INFO] [stdout] | [INFO] [stdout] 258 | b'a'...b'f' => peek - b'a' + 10, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer.rs:259:21 [INFO] [stdout] | [INFO] [stdout] 259 | b'A'...b'F' => peek - b'A' + 10, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer.rs:274:21 [INFO] [stdout] | [INFO] [stdout] 274 | b'0'...b'9' => self.bump(), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer.rs:316:21 [INFO] [stdout] | [INFO] [stdout] 316 | b'0'...b'9' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer.rs:547:33 [INFO] [stdout] | [INFO] [stdout] 547 | ... b'0'...b'9' => { [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/tokenizer.rs:563:21 [INFO] [stdout] | [INFO] [stdout] 563 | b'0'...b'9' => Literal(self.read_number(ch)), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/parser.rs:27:48 [INFO] [stdout] | [INFO] [stdout] 27 | panic!("Unexpected token {:?}", $token); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 108 | token => unexpected_token!(self, token), [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: `#[deny(semicolon_in_expressions_from_macros)]` (part of `#[deny(future_incompatible)]`) on by default [INFO] [stdout] = note: this error originates in the macro `unexpected_token` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/parser.rs:27:48 [INFO] [stdout] | [INFO] [stdout] 27 | panic!("Unexpected token {:?}", $token); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 326 | token => unexpected_token!(self, token) [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: this error originates in the macro `unexpected_token` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/parser.rs:27:48 [INFO] [stdout] | [INFO] [stdout] 27 | panic!("Unexpected token {:?}", $token); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 409 | token => unexpected_token!(self, token) [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: this error originates in the macro `unexpected_token` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/parser.rs:27:48 [INFO] [stdout] | [INFO] [stdout] 27 | panic!("Unexpected token {:?}", $token); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 637 | token => unexpected_token!(self, token), [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: this error originates in the macro `unexpected_token` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/parser.rs:27:48 [INFO] [stdout] | [INFO] [stdout] 27 | panic!("Unexpected token {:?}", $token); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 784 | token => unexpected_token!(self, token) [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: this error originates in the macro `unexpected_token` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/parser.rs:27:48 [INFO] [stdout] | [INFO] [stdout] 27 | panic!("Unexpected token {:?}", $token); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 798 | token => unexpected_token!(self, token) [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: this error originates in the macro `unexpected_token` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `core::str::::slice_unchecked`: use `get_unchecked(begin..end)` instead [INFO] [stdout] --> src/tokenizer.rs:209:47 [INFO] [stdout] | [INFO] [stdout] 209 | OwnedSlice::from_str(&self.source.slice_unchecked(start, self.index)) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `core::str::::slice_unchecked`: use `get_unchecked(begin..end)` instead [INFO] [stdout] --> src/tokenizer.rs:280:46 [INFO] [stdout] | [INFO] [stdout] 280 | OwnedSlice::from_str(self.source.slice_unchecked(start, self.index)) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `core::str::::slice_unchecked`: use `get_unchecked(begin..end)` instead [INFO] [stdout] --> src/tokenizer.rs:361:25 [INFO] [stdout] | [INFO] [stdout] 361 | self.source.slice_unchecked(start, self.index) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `core::str::::slice_unchecked`: use `get_unchecked(begin..end)` instead [INFO] [stdout] --> src/tokenizer.rs:584:41 [INFO] [stdout] | [INFO] [stdout] 584 | ... self.source.slice_unchecked(self.index, self.index + 2) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `badger` (lib) due to 12 previous errors; 15 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/codegen.rs:64:21 [INFO] [stdout] | [INFO] [stdout] 64 | for item in iter.next() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to iterate over `iter` remove the call to `next` [INFO] [stdout] | [INFO] [stdout] 64 - for item in iter.next() { [INFO] [stdout] 64 + for item in iter.by_ref() { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 64 - for item in iter.next() { [INFO] [stdout] 64 + if let Some(item) = iter.next() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/codegen.rs:323:31 [INFO] [stdout] | [INFO] [stdout] 323 | for member in iter.next() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to iterate over `iter` remove the call to `next` [INFO] [stdout] | [INFO] [stdout] 323 - for member in iter.next() { [INFO] [stdout] 323 + for member in iter.by_ref() { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 323 - for member in iter.next() { [INFO] [stdout] 323 + if let Some(member) = iter.next() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/codegen.rs:554:34 [INFO] [stdout] | [INFO] [stdout] 554 | for statement in iter.next() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to iterate over `iter` remove the call to `next` [INFO] [stdout] | [INFO] [stdout] 554 - for statement in iter.next() { [INFO] [stdout] 554 + for statement in iter.by_ref() { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 554 - for statement in iter.next() { [INFO] [stdout] 554 + if let Some(statement) = iter.next() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6d22f4cf5196173630bf23fbb062c3b6a5234ff258ce4f289eb6f32976fa44f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d22f4cf5196173630bf23fbb062c3b6a5234ff258ce4f289eb6f32976fa44f4", kill_on_drop: false }` [INFO] [stdout] 6d22f4cf5196173630bf23fbb062c3b6a5234ff258ce4f289eb6f32976fa44f4