[INFO] cloning repository https://github.com/dixe/rust-sdf-tool [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dixe/rust-sdf-tool" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdixe%2Frust-sdf-tool", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdixe%2Frust-sdf-tool'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 729034f68abf67f56de7e57a2d8ee8d22deeb4ea [INFO] checking dixe/rust-sdf-tool/729034f68abf67f56de7e57a2d8ee8d22deeb4ea against try#3248bace201b6227b0ff78eacc8b00d805551a86 for pr-153513 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdixe%2Frust-sdf-tool" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/dixe/rust-sdf-tool [INFO] finished tweaking git repo https://github.com/dixe/rust-sdf-tool [INFO] tweaked toml for git repo https://github.com/dixe/rust-sdf-tool written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dixe/rust-sdf-tool on toolchain 3248bace201b6227b0ff78eacc8b00d805551a86 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3248bace201b6227b0ff78eacc8b00d805551a86" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/dixe/rust-sdf-tool 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" "+3248bace201b6227b0ff78eacc8b00d805551a86" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded crossbeam-utils v0.8.11 [INFO] [stderr] Downloaded flate2 v1.0.24 [INFO] [stderr] Downloaded png v0.17.6 [INFO] [stderr] Downloaded freetype-rs v0.31.0 [INFO] [stderr] Downloaded exr v1.5.1 [INFO] [stderr] Downloaded image v0.24.3 [INFO] [stderr] Downloaded jpeg-decoder v0.2.6 [INFO] [stderr] Downloaded tiff v0.7.3 [INFO] [stderr] Downloaded freetype-sys v0.16.0 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3248bace201b6227b0ff78eacc8b00d805551a86" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2e8f177cc395e0352aaa023778db1f7191c0b0f932d0278c5e1b742fc9d01232 [INFO] running `Command { std: "docker" "start" "-a" "2e8f177cc395e0352aaa023778db1f7191c0b0f932d0278c5e1b742fc9d01232", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2e8f177cc395e0352aaa023778db1f7191c0b0f932d0278c5e1b742fc9d01232", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e8f177cc395e0352aaa023778db1f7191c0b0f932d0278c5e1b742fc9d01232", kill_on_drop: false }` [INFO] [stdout] 2e8f177cc395e0352aaa023778db1f7191c0b0f932d0278c5e1b742fc9d01232 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3248bace201b6227b0ff78eacc8b00d805551a86" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2fab9bd61c5ae77264deeb50f90626ed077b1220f9027de9e0249a7b3b30d008 [INFO] running `Command { std: "docker" "start" "-a" "2fab9bd61c5ae77264deeb50f90626ed077b1220f9027de9e0249a7b3b30d008", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.133 [INFO] [stderr] Compiling crossbeam-utils v0.8.11 [INFO] [stderr] Compiling crossbeam-epoch v0.9.10 [INFO] [stderr] Compiling syn v1.0.100 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Compiling futures-core v0.3.24 [INFO] [stderr] Checking miniz_oxide v0.5.4 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling cmake v0.1.48 [INFO] [stderr] Checking either v1.8.0 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Checking spin v0.9.4 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking futures-sink v0.3.24 [INFO] [stderr] Checking weezl v0.1.7 [INFO] [stderr] Checking bit_field v0.10.1 [INFO] [stderr] Checking half v1.8.2 [INFO] [stderr] Checking bytemuck v1.12.1 [INFO] [stderr] Checking crossbeam-channel v0.5.6 [INFO] [stderr] Checking gif v0.11.4 [INFO] [stderr] Checking flate2 v1.0.24 [INFO] [stderr] Compiling freetype-sys v0.16.0 [INFO] [stderr] Checking png v0.17.6 [INFO] [stderr] Checking crossbeam-deque v0.8.2 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking nanorand v0.7.0 [INFO] [stderr] Checking freetype-rs v0.31.0 [INFO] [stderr] Checking jpeg-decoder v0.2.6 [INFO] [stderr] Checking tiff v0.7.3 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Checking pin-project v1.0.12 [INFO] [stderr] Checking flume v0.10.14 [INFO] [stderr] Checking exr v1.5.1 [INFO] [stderr] Checking image v0.24.3 [INFO] [stderr] Checking rust-sdf-tool v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt::Write` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Cursor` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Cursor; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::*` [INFO] [stdout] --> src/fntfont.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `image::imageops` [INFO] [stdout] --> src/fntfont.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use image::imageops; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:141:20 [INFO] [stdout] | [INFO] [stdout] 141 | advance_x: glyph.advance().x >> 6, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `i64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:145:19 [INFO] [stdout] | [INFO] [stdout] 145 | offset_x: g_metrics.horiBearingX >> 6, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `i64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:146:19 [INFO] [stdout] | [INFO] [stdout] 146 | offset_y: g_metrics.horiBearingY >> 6, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `i64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:248:43 [INFO] [stdout] | [INFO] [stdout] 248 | let pixel_h = ( max_ascent + i32::abs(max_descent)) as u32; [INFO] [stdout] | -------- ^^^^^^^^^^^ expected `i32`, found `i64` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/num/int_macros.rs:3604:21 [INFO] [stdout] --> /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/num/mod.rs:394:4 [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/num/mod.rs:413:5 [INFO] [stdout] | [INFO] [stdout] = note: in this macro invocation [INFO] [stdout] = note: this error originates in the macro `int_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you can convert an `i64` to an `i32` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 248 | let pixel_h = ( max_ascent + i32::abs(max_descent.try_into().unwrap())) as u32; [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:248:34 [INFO] [stdout] | [INFO] [stdout] 248 | let pixel_h = ( max_ascent + i32::abs(max_descent)) as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected `i64`, found `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add `i32` to `i64` [INFO] [stdout] --> src/main.rs:248:32 [INFO] [stdout] | [INFO] [stdout] 248 | let pixel_h = ( max_ascent + i32::abs(max_descent)) as u32; [INFO] [stdout] | ^ no implementation for `i64 + i32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Add` is not implemented for `i64` [INFO] [stdout] help: the following other types implement trait `Add` [INFO] [stdout] --> /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/ops/arith.rs:99:8 [INFO] [stdout] | [INFO] [stdout] = note: `i64` implements `Add` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/ops/arith.rs:114:0 [INFO] [stdout] | [INFO] [stdout] = note: in this macro invocation [INFO] [stdout] --> /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:22:8 [INFO] [stdout] | [INFO] [stdout] = note: `&i64` implements `Add` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:33:8 [INFO] [stdout] | [INFO] [stdout] = note: `i64` implements `Add<&i64>` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:44:8 [INFO] [stdout] | [INFO] [stdout] = note: `&i64` implements `Add` [INFO] [stdout] = note: this error originates in the macro `add_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:278:38 [INFO] [stdout] | [INFO] [stdout] 278 | let x_offset = (pixel_w as i32 - advance_x) / 2; [INFO] [stdout] | ^^^^^^^^^ expected `i32`, found `i64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract `i64` from `i32` [INFO] [stdout] --> src/main.rs:278:36 [INFO] [stdout] | [INFO] [stdout] 278 | let x_offset = (pixel_w as i32 - advance_x) / 2; [INFO] [stdout] | ^ no implementation for `i32 - i64` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Sub` is not implemented for `i32` [INFO] [stdout] help: the following other types implement trait `std::ops::Sub` [INFO] [stdout] --> /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/ops/arith.rs:212:8 [INFO] [stdout] | [INFO] [stdout] = note: `i32` implements `std::ops::Sub` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/ops/arith.rs:227:0 [INFO] [stdout] | [INFO] [stdout] = note: in this macro invocation [INFO] [stdout] --> /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:22:8 [INFO] [stdout] | [INFO] [stdout] = note: `&i32` implements `std::ops::Sub` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:33:8 [INFO] [stdout] | [INFO] [stdout] = note: `i32` implements `std::ops::Sub<&i32>` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:44:8 [INFO] [stdout] | [INFO] [stdout] = note: `&i32` implements `std::ops::Sub` [INFO] [stdout] = note: this error originates in the macro `sub_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:282:39 [INFO] [stdout] | [INFO] [stdout] 282 | let y_offset = (pixel_h as i32 - bearing_y) /2; [INFO] [stdout] | ^^^^^^^^^ expected `i32`, found `i64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract `i64` from `i32` [INFO] [stdout] --> src/main.rs:282:37 [INFO] [stdout] | [INFO] [stdout] 282 | let y_offset = (pixel_h as i32 - bearing_y) /2; [INFO] [stdout] | ^ no implementation for `i32 - i64` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Sub` is not implemented for `i32` [INFO] [stdout] help: the following other types implement trait `std::ops::Sub` [INFO] [stdout] --> /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/ops/arith.rs:212:8 [INFO] [stdout] | [INFO] [stdout] = note: `i32` implements `std::ops::Sub` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/ops/arith.rs:227:0 [INFO] [stdout] | [INFO] [stdout] = note: in this macro invocation [INFO] [stdout] --> /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:22:8 [INFO] [stdout] | [INFO] [stdout] = note: `&i32` implements `std::ops::Sub` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:33:8 [INFO] [stdout] | [INFO] [stdout] = note: `i32` implements `std::ops::Sub<&i32>` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:44:8 [INFO] [stdout] | [INFO] [stdout] = note: `&i32` implements `std::ops::Sub` [INFO] [stdout] = note: this error originates in the macro `sub_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:287:34 [INFO] [stdout] | [INFO] [stdout] 287 | let baseline_h = (y_offset + bearing_y) as u32; [INFO] [stdout] | ^^^^^^^^^ expected `i32`, found `i64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add `i64` to `i32` [INFO] [stdout] --> src/main.rs:287:32 [INFO] [stdout] | [INFO] [stdout] 287 | let baseline_h = (y_offset + bearing_y) as u32; [INFO] [stdout] | ^ no implementation for `i32 + i64` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Add` is not implemented for `i32` [INFO] [stdout] help: the following other types implement trait `Add` [INFO] [stdout] --> /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/ops/arith.rs:99:8 [INFO] [stdout] | [INFO] [stdout] = note: `i32` implements `Add` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/ops/arith.rs:114:0 [INFO] [stdout] | [INFO] [stdout] = note: in this macro invocation [INFO] [stdout] --> /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:22:8 [INFO] [stdout] | [INFO] [stdout] = note: `&i32` implements `Add` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:33:8 [INFO] [stdout] | [INFO] [stdout] = note: `i32` implements `Add<&i32>` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:44:8 [INFO] [stdout] | [INFO] [stdout] = note: `&i32` implements `Add` [INFO] [stdout] = note: this error originates in the macro `add_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fntfont.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut out_img = p.image.clone(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fntfont.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let mut page_id = 0; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/fntfont.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let h = img.height(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fntfont.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | let mut res = format!("kernings count={}\n", kernings.len()); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/fntfont.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | for k in kernings { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let args = std::env::args(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lineheight` [INFO] [stdout] --> src/main.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let lineheight = face.height() >> 6; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lineheight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | let mut res = scaled / 2.0 + 0.5; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Write` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Cursor` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Cursor; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::*` [INFO] [stdout] --> src/fntfont.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `image::imageops` [INFO] [stdout] --> src/fntfont.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use image::imageops; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-sdf-tool` (bin "rust-sdf-tool" test) due to 12 previous errors; 12 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:141:20 [INFO] [stdout] | [INFO] [stdout] 141 | advance_x: glyph.advance().x >> 6, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `i64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:145:19 [INFO] [stdout] | [INFO] [stdout] 145 | offset_x: g_metrics.horiBearingX >> 6, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `i64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:146:19 [INFO] [stdout] | [INFO] [stdout] 146 | offset_y: g_metrics.horiBearingY >> 6, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `i64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:248:43 [INFO] [stdout] | [INFO] [stdout] 248 | let pixel_h = ( max_ascent + i32::abs(max_descent)) as u32; [INFO] [stdout] | -------- ^^^^^^^^^^^ expected `i32`, found `i64` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/num/int_macros.rs:3604:21 [INFO] [stdout] --> /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/num/mod.rs:394:4 [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/num/mod.rs:413:5 [INFO] [stdout] | [INFO] [stdout] = note: in this macro invocation [INFO] [stdout] = note: this error originates in the macro `int_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you can convert an `i64` to an `i32` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 248 | let pixel_h = ( max_ascent + i32::abs(max_descent.try_into().unwrap())) as u32; [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:248:34 [INFO] [stdout] | [INFO] [stdout] 248 | let pixel_h = ( max_ascent + i32::abs(max_descent)) as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected `i64`, found `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add `i32` to `i64` [INFO] [stdout] --> src/main.rs:248:32 [INFO] [stdout] | [INFO] [stdout] 248 | let pixel_h = ( max_ascent + i32::abs(max_descent)) as u32; [INFO] [stdout] | ^ no implementation for `i64 + i32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Add` is not implemented for `i64` [INFO] [stdout] help: the following other types implement trait `Add` [INFO] [stdout] --> /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/ops/arith.rs:99:8 [INFO] [stdout] | [INFO] [stdout] = note: `i64` implements `Add` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/ops/arith.rs:114:0 [INFO] [stdout] | [INFO] [stdout] = note: in this macro invocation [INFO] [stdout] --> /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:22:8 [INFO] [stdout] | [INFO] [stdout] = note: `&i64` implements `Add` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:33:8 [INFO] [stdout] | [INFO] [stdout] = note: `i64` implements `Add<&i64>` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:44:8 [INFO] [stdout] | [INFO] [stdout] = note: `&i64` implements `Add` [INFO] [stdout] = note: this error originates in the macro `add_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:278:38 [INFO] [stdout] | [INFO] [stdout] 278 | let x_offset = (pixel_w as i32 - advance_x) / 2; [INFO] [stdout] | ^^^^^^^^^ expected `i32`, found `i64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract `i64` from `i32` [INFO] [stdout] --> src/main.rs:278:36 [INFO] [stdout] | [INFO] [stdout] 278 | let x_offset = (pixel_w as i32 - advance_x) / 2; [INFO] [stdout] | ^ no implementation for `i32 - i64` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Sub` is not implemented for `i32` [INFO] [stdout] help: the following other types implement trait `std::ops::Sub` [INFO] [stdout] --> /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/ops/arith.rs:212:8 [INFO] [stdout] | [INFO] [stdout] = note: `i32` implements `std::ops::Sub` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/ops/arith.rs:227:0 [INFO] [stdout] | [INFO] [stdout] = note: in this macro invocation [INFO] [stdout] --> /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:22:8 [INFO] [stdout] | [INFO] [stdout] = note: `&i32` implements `std::ops::Sub` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:33:8 [INFO] [stdout] | [INFO] [stdout] = note: `i32` implements `std::ops::Sub<&i32>` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:44:8 [INFO] [stdout] | [INFO] [stdout] = note: `&i32` implements `std::ops::Sub` [INFO] [stdout] = note: this error originates in the macro `sub_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:282:39 [INFO] [stdout] | [INFO] [stdout] 282 | let y_offset = (pixel_h as i32 - bearing_y) /2; [INFO] [stdout] | ^^^^^^^^^ expected `i32`, found `i64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract `i64` from `i32` [INFO] [stdout] --> src/main.rs:282:37 [INFO] [stdout] | [INFO] [stdout] 282 | let y_offset = (pixel_h as i32 - bearing_y) /2; [INFO] [stdout] | ^ no implementation for `i32 - i64` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Sub` is not implemented for `i32` [INFO] [stdout] help: the following other types implement trait `std::ops::Sub` [INFO] [stdout] --> /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/ops/arith.rs:212:8 [INFO] [stdout] | [INFO] [stdout] = note: `i32` implements `std::ops::Sub` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/ops/arith.rs:227:0 [INFO] [stdout] | [INFO] [stdout] = note: in this macro invocation [INFO] [stdout] --> /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:22:8 [INFO] [stdout] | [INFO] [stdout] = note: `&i32` implements `std::ops::Sub` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:33:8 [INFO] [stdout] | [INFO] [stdout] = note: `i32` implements `std::ops::Sub<&i32>` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:44:8 [INFO] [stdout] | [INFO] [stdout] = note: `&i32` implements `std::ops::Sub` [INFO] [stdout] = note: this error originates in the macro `sub_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:287:34 [INFO] [stdout] | [INFO] [stdout] 287 | let baseline_h = (y_offset + bearing_y) as u32; [INFO] [stdout] | ^^^^^^^^^ expected `i32`, found `i64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add `i64` to `i32` [INFO] [stdout] --> src/main.rs:287:32 [INFO] [stdout] | [INFO] [stdout] 287 | let baseline_h = (y_offset + bearing_y) as u32; [INFO] [stdout] | ^ no implementation for `i32 + i64` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Add` is not implemented for `i32` [INFO] [stdout] help: the following other types implement trait `Add` [INFO] [stdout] --> /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/ops/arith.rs:99:8 [INFO] [stdout] | [INFO] [stdout] = note: `i32` implements `Add` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/ops/arith.rs:114:0 [INFO] [stdout] | [INFO] [stdout] = note: in this macro invocation [INFO] [stdout] --> /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:22:8 [INFO] [stdout] | [INFO] [stdout] = note: `&i32` implements `Add` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:33:8 [INFO] [stdout] | [INFO] [stdout] = note: `i32` implements `Add<&i32>` [INFO] [stdout] ::: /rustc/3248bace201b6227b0ff78eacc8b00d805551a86/library/core/src/internal_macros.rs:44:8 [INFO] [stdout] | [INFO] [stdout] = note: `&i32` implements `Add` [INFO] [stdout] = note: this error originates in the macro `add_impl` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fntfont.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut out_img = p.image.clone(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fntfont.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let mut page_id = 0; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/fntfont.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let h = img.height(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/fntfont.rs:172:9 [INFO] [stdout] | [INFO] [stdout] 172 | let mut res = format!("kernings count={}\n", kernings.len()); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/fntfont.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | for k in kernings { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let args = std::env::args(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lineheight` [INFO] [stdout] --> src/main.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | let lineheight = face.height() >> 6; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lineheight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | let mut res = scaled / 2.0 + 0.5; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-sdf-tool` (bin "rust-sdf-tool") due to 12 previous errors; 12 warnings emitted [INFO] running `Command { std: "docker" "inspect" "2fab9bd61c5ae77264deeb50f90626ed077b1220f9027de9e0249a7b3b30d008", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fab9bd61c5ae77264deeb50f90626ed077b1220f9027de9e0249a7b3b30d008", kill_on_drop: false }` [INFO] [stdout] 2fab9bd61c5ae77264deeb50f90626ed077b1220f9027de9e0249a7b3b30d008