[INFO] fetching crate waterbear 0.12.0... [INFO] testing waterbear-0.12.0 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate waterbear 0.12.0 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate waterbear 0.12.0 [INFO] finished tweaking crates.io crate waterbear 0.12.0 [INFO] tweaked toml for crates.io crate waterbear 0.12.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate waterbear 0.12.0 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "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" "+caccb4d0368bd918ef6668af8e13834d07040417" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 46 packages to latest compatible versions [INFO] [stderr] Adding clap v2.34.0 (available: v4.5.48) [INFO] [stderr] Adding uuid v0.7.4 (available: v1.18.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded waterbear-instruction-derive v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bfbaa17c0850d15784cbd54a419eb070e34df6555c2e82c6af1b8b2d81d04db8 [INFO] running `Command { std: "docker" "start" "-a" "bfbaa17c0850d15784cbd54a419eb070e34df6555c2e82c6af1b8b2d81d04db8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bfbaa17c0850d15784cbd54a419eb070e34df6555c2e82c6af1b8b2d81d04db8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bfbaa17c0850d15784cbd54a419eb070e34df6555c2e82c6af1b8b2d81d04db8", kill_on_drop: false }` [INFO] [stdout] bfbaa17c0850d15784cbd54a419eb070e34df6555c2e82c6af1b8b2d81d04db8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a9f288fd893d8a8d0ff436339de3020b140f04c63bf31ea1f3f0a6b18a4564c5 [INFO] running `Command { std: "docker" "start" "-a" "a9f288fd893d8a8d0ff436339de3020b140f04c63bf31ea1f3f0a6b18a4564c5", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling waterbear v0.12.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling waterbear-instruction-derive v0.1.0 [INFO] [stdout] warning: use of deprecated method `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/disasm.rs:1206:39 [INFO] [stdout] | [INFO] [stdout] 1206 | let mut new_comment = old.trim_right().to_owned(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 1206 - let mut new_comment = old.trim_right().to_owned(); [INFO] [stdout] 1206 + let mut new_comment = old.trim_end().to_owned(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/disasm.rs:1207:20 [INFO] [stdout] | [INFO] [stdout] 1207 | if old.trim_right().ends_with(".") { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 1207 - if old.trim_right().ends_with(".") { [INFO] [stdout] 1207 + if old.trim_end().ends_with(".") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/disasm.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | NoInstruction(usize, u8), [INFO] [stdout] | ------------- ^^^^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DisasmError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 12 - NoInstruction(usize, u8), [INFO] [stdout] 12 + NoInstruction((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/disasm.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | NoSuchFile(String, std::io::Error) [INFO] [stdout] | ---------- ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DisasmError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 13 - NoSuchFile(String, std::io::Error) [INFO] [stdout] 13 + NoSuchFile((), ()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/instruction.rs:548:23 [INFO] [stdout] | [INFO] [stdout] 548 | let r16 = mem::transmute::(rel as u16); [INFO] [stdout] | --------------------------^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u16::cast_signed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/instruction.rs:556:22 [INFO] [stdout] | [INFO] [stdout] 556 | let r8 = mem::transmute::(rel as u8); [INFO] [stdout] | ------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u8::cast_signed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:266:42 [INFO] [stdout] | [INFO] [stdout] 266 | new_lines.push(lines[idx].clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[Token]` does not implement `Clone`, so calling `clone` on `&[Token]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/asm.rs:196:48 [INFO] [stdout] | [INFO] [stdout] 196 | Include(_, _, _) => panic!("There should be no .include directives left at this point".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 196 | Include(_, _, _) => panic!("{}", "There should be no .include directives left at this point".to_string()), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.87s [INFO] running `Command { std: "docker" "inspect" "a9f288fd893d8a8d0ff436339de3020b140f04c63bf31ea1f3f0a6b18a4564c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9f288fd893d8a8d0ff436339de3020b140f04c63bf31ea1f3f0a6b18a4564c5", kill_on_drop: false }` [INFO] [stdout] a9f288fd893d8a8d0ff436339de3020b140f04c63bf31ea1f3f0a6b18a4564c5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9b819425cca12723069dcc56e71e13db056d40cad117fba39e2d56111deebe71 [INFO] running `Command { std: "docker" "start" "-a" "9b819425cca12723069dcc56e71e13db056d40cad117fba39e2d56111deebe71", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stdout] warning: use of deprecated method `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/disasm.rs:1206:39 [INFO] [stdout] | [INFO] [stdout] 1206 | let mut new_comment = old.trim_right().to_owned(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 1206 - let mut new_comment = old.trim_right().to_owned(); [INFO] [stdout] 1206 + let mut new_comment = old.trim_end().to_owned(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/disasm.rs:1207:20 [INFO] [stdout] | [INFO] [stdout] 1207 | if old.trim_right().ends_with(".") { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 1207 - if old.trim_right().ends_with(".") { [INFO] [stdout] 1207 + if old.trim_end().ends_with(".") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/disasm.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | NoInstruction(usize, u8), [INFO] [stdout] | ------------- ^^^^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DisasmError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 12 - NoInstruction(usize, u8), [INFO] [stdout] 12 + NoInstruction((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/disasm.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | NoSuchFile(String, std::io::Error) [INFO] [stdout] | ---------- ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DisasmError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 13 - NoSuchFile(String, std::io::Error) [INFO] [stdout] 13 + NoSuchFile((), ()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/instruction.rs:548:23 [INFO] [stdout] | [INFO] [stdout] 548 | let r16 = mem::transmute::(rel as u16); [INFO] [stdout] | --------------------------^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u16::cast_signed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/instruction.rs:556:22 [INFO] [stdout] | [INFO] [stdout] 556 | let r8 = mem::transmute::(rel as u8); [INFO] [stdout] | ------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u8::cast_signed` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling waterbear v0.12.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:266:42 [INFO] [stdout] | [INFO] [stdout] 266 | new_lines.push(lines[idx].clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[Token]` does not implement `Clone`, so calling `clone` on `&[Token]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/asm.rs:196:48 [INFO] [stdout] | [INFO] [stdout] 196 | Include(_, _, _) => panic!("There should be no .include directives left at this point".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 196 | Include(_, _, _) => panic!("{}", "There should be no .include directives left at this point".to_string()), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/disasm.rs:1206:39 [INFO] [stdout] | [INFO] [stdout] 1206 | let mut new_comment = old.trim_right().to_owned(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 1206 - let mut new_comment = old.trim_right().to_owned(); [INFO] [stdout] 1206 + let mut new_comment = old.trim_end().to_owned(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `core::str::::trim_right`: superseded by `trim_end` [INFO] [stdout] --> src/disasm.rs:1207:20 [INFO] [stdout] | [INFO] [stdout] 1207 | if old.trim_right().ends_with(".") { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated method [INFO] [stdout] | [INFO] [stdout] 1207 - if old.trim_right().ends_with(".") { [INFO] [stdout] 1207 + if old.trim_end().ends_with(".") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/disasm.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | NoInstruction(usize, u8), [INFO] [stdout] | ------------- ^^^^^ ^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DisasmError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 12 - NoInstruction(usize, u8), [INFO] [stdout] 12 + NoInstruction((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/disasm.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | NoSuchFile(String, std::io::Error) [INFO] [stdout] | ---------- ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `DisasmError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 13 - NoSuchFile(String, std::io::Error) [INFO] [stdout] 13 + NoSuchFile((), ()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/instruction.rs:548:23 [INFO] [stdout] | [INFO] [stdout] 548 | let r16 = mem::transmute::(rel as u16); [INFO] [stdout] | --------------------------^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u16::cast_signed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/instruction.rs:556:22 [INFO] [stdout] | [INFO] [stdout] 556 | let r8 = mem::transmute::(rel as u8); [INFO] [stdout] | ------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u8::cast_signed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:266:42 [INFO] [stdout] | [INFO] [stdout] 266 | new_lines.push(lines[idx].clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[Token]` does not implement `Clone`, so calling `clone` on `&[Token]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/asm.rs:196:48 [INFO] [stdout] | [INFO] [stdout] 196 | Include(_, _, _) => panic!("There should be no .include directives left at this point".to_string()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 196 | Include(_, _, _) => panic!("{}", "There should be no .include directives left at this point".to_string()), [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.22s [INFO] running `Command { std: "docker" "inspect" "9b819425cca12723069dcc56e71e13db056d40cad117fba39e2d56111deebe71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b819425cca12723069dcc56e71e13db056d40cad117fba39e2d56111deebe71", kill_on_drop: false }` [INFO] [stdout] 9b819425cca12723069dcc56e71e13db056d40cad117fba39e2d56111deebe71 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 86e13c71fdbd0640b1ab33642e6312501fa692c4e6abfb03928d85b420abba44 [INFO] running `Command { std: "docker" "start" "-a" "86e13c71fdbd0640b1ab33642e6312501fa692c4e6abfb03928d85b420abba44", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: use of deprecated method `core::str::::trim_right`: superseded by `trim_end` [INFO] [stderr] --> src/disasm.rs:1206:39 [INFO] [stderr] | [INFO] [stderr] 1206 | let mut new_comment = old.trim_right().to_owned(); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] help: replace the use of the deprecated method [INFO] [stderr] | [INFO] [stderr] 1206 - let mut new_comment = old.trim_right().to_owned(); [INFO] [stderr] 1206 + let mut new_comment = old.trim_end().to_owned(); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `core::str::::trim_right`: superseded by `trim_end` [INFO] [stderr] --> src/disasm.rs:1207:20 [INFO] [stderr] | [INFO] [stderr] 1207 | if old.trim_right().ends_with(".") { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: replace the use of the deprecated method [INFO] [stderr] | [INFO] [stderr] 1207 - if old.trim_right().ends_with(".") { [INFO] [stderr] 1207 + if old.trim_end().ends_with(".") { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: fields `0` and `1` are never read [INFO] [stderr] --> src/disasm.rs:12:19 [INFO] [stderr] | [INFO] [stderr] 12 | NoInstruction(usize, u8), [INFO] [stderr] | ------------- ^^^^^ ^^ [INFO] [stderr] | | [INFO] [stderr] | fields in this variant [INFO] [stderr] | [INFO] [stderr] = note: `DisasmError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stderr] | [INFO] [stderr] 12 - NoInstruction(usize, u8), [INFO] [stderr] 12 + NoInstruction((), ()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: fields `0` and `1` are never read [INFO] [stderr] --> src/disasm.rs:13:16 [INFO] [stderr] | [INFO] [stderr] 13 | NoSuchFile(String, std::io::Error) [INFO] [stderr] | ---------- ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | fields in this variant [INFO] [stderr] | [INFO] [stderr] = note: `DisasmError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stderr] | [INFO] [stderr] 13 - NoSuchFile(String, std::io::Error) [INFO] [stderr] 13 + NoSuchFile((), ()) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/instruction.rs:548:23 [INFO] [stderr] | [INFO] [stderr] 548 | let r16 = mem::transmute::(rel as u16); [INFO] [stderr] | --------------------------^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `u16::cast_signed` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/instruction.rs:556:22 [INFO] [stderr] | [INFO] [stderr] 556 | let r8 = mem::transmute::(rel as u8); [INFO] [stderr] | ------------------------^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `u8::cast_signed` [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/parser.rs:266:42 [INFO] [stderr] | [INFO] [stderr] 266 | new_lines.push(lines[idx].clone()); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `[Token]` does not implement `Clone`, so calling `clone` on `&[Token]` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/asm.rs:196:48 [INFO] [stderr] | [INFO] [stderr] 196 | Include(_, _, _) => panic!("There should be no .include directives left at this point".to_string()), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stderr] help: add a "{}" format string to `Display` the message [INFO] [stderr] | [INFO] [stderr] 196 | Include(_, _, _) => panic!("{}", "There should be no .include directives left at this point".to_string()), [INFO] [stderr] | +++++ [INFO] [stderr] [INFO] [stderr] warning: `waterbear` (lib) generated 8 warnings (run `cargo fix --lib -p waterbear` to apply 6 suggestions) [INFO] [stderr] warning: `waterbear` (lib test) generated 8 warnings (8 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/waterbear-61cd66b716349863) [INFO] [stdout] [INFO] [stdout] running 22 tests [INFO] [stdout] test input::tests::test_update ... ok [INFO] [stdout] test instruction::test::test_decode ... ok [INFO] [stdout] test lexer::tests::test_end_of_line ... ok [INFO] [stdout] test instruction::test::test_decode2 ... ok [INFO] [stdout] test input::tests::test_skip_whitespace ... ok [INFO] [stdout] test input::tests::test_update_past_end ... ok [INFO] [stdout] test instruction::test::test_encode ... ok [INFO] [stdout] test lexer::tests::test_clean_str ... ok [INFO] [stdout] test lexer::tests::test_read_token ... ok [INFO] [stdout] test parser::test::test_parser_include ... ok [INFO] [stdout] test parser::test::test_parser_bytestring ... ok [INFO] [stdout] test lexer::tests::test_lex_input ... ok [INFO] [stdout] test lexer::tests::test_lex_input_bad_token ... ok [INFO] [stdout] test parser::test::test_parser_label2 ... ok [INFO] [stdout] test parser::test::test_parser_cnop ... ok [INFO] [stdout] test parser::test::test_parser_word ... ok [INFO] [stdout] test parser::test::test_parser_org ... ok [INFO] [stdout] test parser::test::test_parser_label ... ok [INFO] [stdout] test lexer::tests::test_skip_comment ... ok [INFO] [stdout] test parser::test::test_expression_parser_eval ... ok [INFO] [stdout] test parser::test::test_parser_byte ... ok [INFO] [stdout] test parser::test::test_expression_parser ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 22 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/waterbear-4419525be26f9ac7) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests waterbear [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "86e13c71fdbd0640b1ab33642e6312501fa692c4e6abfb03928d85b420abba44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86e13c71fdbd0640b1ab33642e6312501fa692c4e6abfb03928d85b420abba44", kill_on_drop: false }` [INFO] [stdout] 86e13c71fdbd0640b1ab33642e6312501fa692c4e6abfb03928d85b420abba44