[INFO] fetching crate waterbear 0.12.0... [INFO] testing waterbear-0.12.0 against try#2440211fe03bc45c89b6dc1a3df18382ce91e32b for pr-146098-1 [INFO] extracting crate waterbear 0.12.0 into /workspace/builds/worker-2-tc2/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-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate waterbear 0.12.0 on toolchain 2440211fe03bc45c89b6dc1a3df18382ce91e32b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "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" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "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" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ab79e43f51c7f373aae3a3eb75ab2ceee28bd30adfe1c2f6aaf52bc873fffde2 [INFO] running `Command { std: "docker" "start" "-a" "ab79e43f51c7f373aae3a3eb75ab2ceee28bd30adfe1c2f6aaf52bc873fffde2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ab79e43f51c7f373aae3a3eb75ab2ceee28bd30adfe1c2f6aaf52bc873fffde2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab79e43f51c7f373aae3a3eb75ab2ceee28bd30adfe1c2f6aaf52bc873fffde2", kill_on_drop: false }` [INFO] [stdout] ab79e43f51c7f373aae3a3eb75ab2ceee28bd30adfe1c2f6aaf52bc873fffde2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2b15ffc7469e2508d892f3c446e25a43a2ce3ca443927023c2222193cf06febf [INFO] running `Command { std: "docker" "start" "-a" "2b15ffc7469e2508d892f3c446e25a43a2ce3ca443927023c2222193cf06febf", 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 clap v2.34.0 [INFO] [stderr] Compiling synom v0.11.3 [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 8.32s [INFO] running `Command { std: "docker" "inspect" "2b15ffc7469e2508d892f3c446e25a43a2ce3ca443927023c2222193cf06febf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b15ffc7469e2508d892f3c446e25a43a2ce3ca443927023c2222193cf06febf", kill_on_drop: false }` [INFO] [stdout] 2b15ffc7469e2508d892f3c446e25a43a2ce3ca443927023c2222193cf06febf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eddd94ededbe6fc26f5da58796181fbc902a9224b46ef22d046795d9961b6a3c [INFO] running `Command { std: "docker" "start" "-a" "eddd94ededbe6fc26f5da58796181fbc902a9224b46ef22d046795d9961b6a3c", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling waterbear v0.12.0 (/opt/rustwide/workdir) [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] [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.72s [INFO] running `Command { std: "docker" "inspect" "eddd94ededbe6fc26f5da58796181fbc902a9224b46ef22d046795d9961b6a3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eddd94ededbe6fc26f5da58796181fbc902a9224b46ef22d046795d9961b6a3c", kill_on_drop: false }` [INFO] [stdout] eddd94ededbe6fc26f5da58796181fbc902a9224b46ef22d046795d9961b6a3c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 1c73fdeb5a651c67c7e32dd47d4ed7e0d78849b76df7540bb40fbbb807e04e1f [INFO] running `Command { std: "docker" "start" "-a" "1c73fdeb5a651c67c7e32dd47d4ed7e0d78849b76df7540bb40fbbb807e04e1f", 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.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/waterbear-61cd66b716349863) [INFO] [stdout] [INFO] [stdout] running 22 tests [INFO] [stdout] test instruction::test::test_encode ... ok [INFO] [stdout] test input::tests::test_update_past_end ... ok [INFO] [stdout] test lexer::tests::test_end_of_line ... ok [INFO] [stdout] test lexer::tests::test_clean_str ... ok [INFO] [stdout] test input::tests::test_update ... ok [INFO] [stdout] test lexer::tests::test_skip_comment ... ok [INFO] [stdout] test input::tests::test_skip_whitespace ... ok [INFO] [stdout] test lexer::tests::test_lex_input ... ok [INFO] [stdout] test parser::test::test_parser_bytestring ... ok [INFO] [stdout] test lexer::tests::test_lex_input_bad_token ... ok [INFO] [stdout] test parser::test::test_parser_word ... ok [INFO] [stdout] test lexer::tests::test_read_token ... ok [INFO] [stdout] test parser::test::test_parser_org ... ok [INFO] [stdout] test parser::test::test_parser_include ... ok [INFO] [stdout] test parser::test::test_parser_label2 ... ok [INFO] [stdout] test parser::test::test_parser_byte ... ok [INFO] [stdout] test parser::test::test_parser_label ... ok [INFO] [stdout] test instruction::test::test_decode2 ... ok [INFO] [stdout] test parser::test::test_expression_parser_eval ... ok [INFO] [stdout] test parser::test::test_expression_parser ... ok [INFO] [stdout] test instruction::test::test_decode ... ok [INFO] [stdout] test parser::test::test_parser_cnop ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 22 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/waterbear-4419525be26f9ac7) [INFO] [stdout] [INFO] [stderr] Doc-tests waterbear [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] [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" "1c73fdeb5a651c67c7e32dd47d4ed7e0d78849b76df7540bb40fbbb807e04e1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c73fdeb5a651c67c7e32dd47d4ed7e0d78849b76df7540bb40fbbb807e04e1f", kill_on_drop: false }` [INFO] [stdout] 1c73fdeb5a651c67c7e32dd47d4ed7e0d78849b76df7540bb40fbbb807e04e1f