[INFO] fetching crate gen_gcode 0.1.0... [INFO] checking gen_gcode-0.1.0 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate gen_gcode 0.1.0 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate gen_gcode 0.1.0 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate gen_gcode 0.1.0 [INFO] finished tweaking crates.io crate gen_gcode 0.1.0 [INFO] tweaked toml for crates.io crate gen_gcode 0.1.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate crates.io crate gen_gcode 0.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 080609b8205847ebbcbe3793511dba34df8c8e97072c5cb8da8b1bb147a07b7b [INFO] running `Command { std: "docker" "start" "-a" "080609b8205847ebbcbe3793511dba34df8c8e97072c5cb8da8b1bb147a07b7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "080609b8205847ebbcbe3793511dba34df8c8e97072c5cb8da8b1bb147a07b7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "080609b8205847ebbcbe3793511dba34df8c8e97072c5cb8da8b1bb147a07b7b", kill_on_drop: false }` [INFO] [stdout] 080609b8205847ebbcbe3793511dba34df8c8e97072c5cb8da8b1bb147a07b7b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ebc833b77b4106741a362d14524dc38f89a832111102390c47ca05f3d122d6dd [INFO] running `Command { std: "docker" "start" "-a" "ebc833b77b4106741a362d14524dc38f89a832111102390c47ca05f3d122d6dd", kill_on_drop: false }` [INFO] [stderr] Checking gen_gcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `print_area_z` [INFO] [stdout] --> examples/2wallbox.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let print_area_z = 250; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_print_area_z` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_bottom_layers` [INFO] [stdout] --> examples/2wallbox.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let num_bottom_layers = &bottom_thickness/&layer_hight; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_bottom_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_top_layers` [INFO] [stdout] --> examples/2wallbox.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let num_top_layers = &top_thickness/&layer_hight; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_top_layers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:36:40 [INFO] [stdout] | [INFO] [stdout] 36 | let gcode = set_pos_2d(p, Some(90)); [INFO] [stdout] | ---- ^^ expected `f32`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:36:35 [INFO] [stdout] | [INFO] [stdout] 36 | let gcode = set_pos_2d(p, Some(90)); [INFO] [stdout] | ^^^^^--^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/option.rs:579:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 36 | let gcode = set_pos_2d(p, Some(90.0)); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:50:40 [INFO] [stdout] | [INFO] [stdout] 50 | let gcode = set_pos_3d(p, Some(90)); [INFO] [stdout] | ---- ^^ expected `f32`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:50:35 [INFO] [stdout] | [INFO] [stdout] 50 | let gcode = set_pos_3d(p, Some(90)); [INFO] [stdout] | ^^^^^--^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/option.rs:579:5 [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 50 | let gcode = set_pos_3d(p, Some(90.0)); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `layer_change` is never used [INFO] [stdout] --> examples/2wallbox.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | fn layer_change(cur_layer_end: Point3d, new_layer_start: Point3d, layer_hight: f32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/2wallbox.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | file.write(wait_bed_temp(bed_temp).as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 30 | let _ = file.write(wait_bed_temp(bed_temp).as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/2wallbox.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | file.write(wait_hotend_temp(nozzle_temp, None).as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 31 | let _ = file.write(wait_hotend_temp(nozzle_temp, None).as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/2wallbox.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | file.write(absolute_extrution().as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 32 | let _ = file.write(absolute_extrution().as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/2wallbox.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | file.write(auto_home().as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 33 | let _ = file.write(auto_home().as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/2wallbox.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | file.write(reset_extruder(0.0).as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 34 | let _ = file.write(reset_extruder(0.0).as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/2wallbox.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | file.write(move_xyz(Point3d { x: 0.0, y: 0.0, z: 2.0 }, false, move_feed_rate, None).as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 35 | let _ = file.write(move_xyz(Point3d { x: 0.0, y: 0.0, z: 2.0 }, false, move_feed_rate, None).as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/2wallbox.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | file.write(move_xyz(start_point, false, move_feed_rate, None).as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 41 | let _ = file.write(move_xyz(start_point, false, move_feed_rate, None).as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/2wallbox.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | file.write(move_xyz(p, true, print_feed_rate, Some(e_dest)).as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 46 | let _ = file.write(move_xyz(p, true, print_feed_rate, Some(e_dest)).as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `gen_gcode` (lib test) due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "ebc833b77b4106741a362d14524dc38f89a832111102390c47ca05f3d122d6dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ebc833b77b4106741a362d14524dc38f89a832111102390c47ca05f3d122d6dd", kill_on_drop: false }` [INFO] [stdout] ebc833b77b4106741a362d14524dc38f89a832111102390c47ca05f3d122d6dd