[INFO] cloning repository https://github.com/suti/painter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/suti/painter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuti%2Fpainter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuti%2Fpainter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2f29745079fb5d42bbbaedc293875f97ff24d073 [INFO] documenting suti/painter against 1.73.0 for beta-1.74-rustdoc-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuti%2Fpainter" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/suti/painter on toolchain 1.73.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.73.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/suti/painter [INFO] finished tweaking git repo https://github.com/suti/painter [INFO] tweaked toml for git repo https://github.com/suti/painter written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/suti/painter 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" "+1.73.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: /workspace/builds/worker-4-tc1/source/Cargo.toml: unused manifest key: workspace.numbers [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded robust v0.1.2 [INFO] [stderr] Downloaded svgtypes v0.8.1 [INFO] [stderr] Downloaded svgfilters v0.4.0 [INFO] [stderr] Downloaded tiny-skia-path v0.8.1 [INFO] [stderr] Downloaded geo-booleanop v0.3.2 [INFO] [stderr] Downloaded geo-types v0.6.2 [INFO] [stderr] Downloaded ttf-parser v0.17.0 [INFO] [stderr] Downloaded tiny-skia v0.8.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:023092b8bfa974c7f3e45c5ce651cc8dd3afd5e76915d5995b8dacd3032bf956" "/opt/rustwide/cargo-home/bin/cargo" "+1.73.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5d3f97cebd59df60959051793703e4a01078c3c5f3efb0bdccf4cb6e54f9eb66 [INFO] running `Command { std: "docker" "start" "-a" "5d3f97cebd59df60959051793703e4a01078c3c5f3efb0bdccf4cb6e54f9eb66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5d3f97cebd59df60959051793703e4a01078c3c5f3efb0bdccf4cb6e54f9eb66", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d3f97cebd59df60959051793703e4a01078c3c5f3efb0bdccf4cb6e54f9eb66", kill_on_drop: false }` [INFO] [stdout] 5d3f97cebd59df60959051793703e4a01078c3c5f3efb0bdccf4cb6e54f9eb66 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:023092b8bfa974c7f3e45c5ce651cc8dd3afd5e76915d5995b8dacd3032bf956" "/opt/rustwide/cargo-home/bin/cargo" "+1.73.0" "doc" "--frozen" "--no-deps" "--document-private-items" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7ed07193d37104bc00cb12b5c07f16991656b54bc0ffbe1a0949ffb685055efe [INFO] running `Command { std: "docker" "start" "-a" "7ed07193d37104bc00cb12b5c07f16991656b54bc0ffbe1a0949ffb685055efe", kill_on_drop: false }` [INFO] [stderr] warning: /opt/rustwide/workdir/Cargo.toml: unused manifest key: workspace.numbers [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling proc-macro2 v1.0.46 [INFO] [stderr] Compiling unicode-ident v1.0.4 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.83 [INFO] [stderr] Compiling syn v1.0.101 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling once_cell v1.15.0 [INFO] [stderr] Checking bytemuck v1.12.1 [INFO] [stderr] Compiling bumpalo v3.11.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Checking miniz_oxide v0.5.4 [INFO] [stderr] Compiling libc v0.2.133 [INFO] [stderr] Checking arrayref v0.3.6 [INFO] [stderr] Compiling wasm-bindgen v0.2.83 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking strict-num v0.1.0 [INFO] [stderr] Checking arrayvec v0.7.2 [INFO] [stderr] Checking rgb v0.8.34 [INFO] [stderr] Checking tiny-skia-path v0.8.1 [INFO] [stderr] Checking float-cmp v0.9.0 [INFO] [stderr] Checking robust v0.1.2 [INFO] [stderr] Checking svgfilters v0.4.0 [INFO] [stderr] Checking flate2 v1.0.24 [INFO] [stderr] Checking kurbo v0.8.3 [INFO] [stderr] Checking ttf-parser v0.17.0 [INFO] [stderr] Checking ttf-parser v0.15.2 [INFO] [stderr] Checking svg v0.10.0 [INFO] [stderr] Checking png v0.17.6 [INFO] [stderr] Checking miniz_oxide v0.6.2 [INFO] [stderr] Checking memmap2 v0.5.7 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking float_next_after v0.1.5 [INFO] [stderr] Checking geo-types v0.6.2 [INFO] [stderr] Checking siphasher v0.3.10 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking svgtypes v0.8.1 [INFO] [stderr] Checking tiny-skia v0.8.1 [INFO] [stderr] Checking geo-booleanop v0.3.2 [INFO] [stderr] Checking fontdb v0.9.1 [INFO] [stderr] Checking painter_core v0.1.0 (/opt/rustwide/workdir/core) [INFO] [stdout] warning: unused import: `std::f32::consts::PI` [INFO] [stdout] --> core/src/context2d.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f32::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `quad_to_curve` [INFO] [stdout] --> core/src/context2d.rs:4:42 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::path::{PathBuilder, PathData, quad_to_curve}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> core/src/context2d.rs:138:148 [INFO] [stdout] | [INFO] [stdout] 138 | ...>, mut font_bucket: Option<&'b mut dyn FontBucket>) -> Option<(PathData)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 138 - pub fn fill_text<'b>(&mut self, text: &str, x: f32, y: f32, max_width: Option, mut font_bucket: Option<&'b mut dyn FontBucket>) -> Option<(PathData)> { [INFO] [stdout] 138 + pub fn fill_text<'b>(&mut self, text: &str, x: f32, y: f32, max_width: Option, mut font_bucket: Option<&'b mut dyn FontBucket>) -> Option { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> core/src/context2d.rs:151:14 [INFO] [stdout] | [INFO] [stdout] 151 | Some((path)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 151 - Some((path)) [INFO] [stdout] 151 + Some(path) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> core/src/backend/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display`, `Formatter` [INFO] [stdout] --> core/src/style_bucket.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `svg::node::element::tag::Polygon` [INFO] [stdout] --> core/src/operate.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use svg::node::element::tag::Polygon; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LineCap`, `LineJoin`, `StrokeDash` [INFO] [stdout] --> core/src/operate.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use tiny_skia_path::{f32x2, LineCap, LineJoin, StrokeDash}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x1` [INFO] [stdout] --> core/src/path.rs:597:30 [INFO] [stdout] | [INFO] [stdout] 597 | pub fn arc_to(&mut self, x1: f32, y1: f32, x2: f32, y2: f32, transform: &Transform) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y1` [INFO] [stdout] --> core/src/path.rs:597:39 [INFO] [stdout] | [INFO] [stdout] 597 | pub fn arc_to(&mut self, x1: f32, y1: f32, x2: f32, y2: f32, transform: &Transform) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_y1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x2` [INFO] [stdout] --> core/src/path.rs:597:48 [INFO] [stdout] | [INFO] [stdout] 597 | pub fn arc_to(&mut self, x1: f32, y1: f32, x2: f32, y2: f32, transform: &Transform) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_x2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y2` [INFO] [stdout] --> core/src/path.rs:597:57 [INFO] [stdout] | [INFO] [stdout] 597 | pub fn arc_to(&mut self, x1: f32, y1: f32, x2: f32, y2: f32, transform: &Transform) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_y2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transform` [INFO] [stdout] --> core/src/path.rs:597:66 [INFO] [stdout] | [INFO] [stdout] 597 | pub fn arc_to(&mut self, x1: f32, y1: f32, x2: f32, y2: f32, transform: &Transform) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_width` [INFO] [stdout] --> core/src/context2d.rs:138:65 [INFO] [stdout] | [INFO] [stdout] 138 | ...xt: &str, x: f32, y: f32, max_width: Option, mut font_bucket: Option<&'b mut dyn FontBucket>) -> Option<(PathData)> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> core/src/context2d.rs:141:53 [INFO] [stdout] | [INFO] [stdout] 141 | self.font_bucket.as_mut().and_then(|mut fb| fb.get_glyph(&self.style_bucket.get_font_style(), text)) [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> core/src/context2d.rs:143:48 [INFO] [stdout] | [INFO] [stdout] 143 | font_bucket.as_mut().and_then(|mut fb| fb.get_glyph(&self.style_bucket.get_font_style(), text)) [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fill_rule` [INFO] [stdout] --> core/src/context2d.rs:213:31 [INFO] [stdout] | [INFO] [stdout] 213 | let Glyph { mut path, fill_rule, transform } = { [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `fill_rule: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_width` [INFO] [stdout] --> core/src/context2d.rs:212:67 [INFO] [stdout] | [INFO] [stdout] 212 | ...xt: &str, x: f32, y: f32, max_width: Option, mut font_bucket: Option<&'b mut dyn FontBucket>) -> Option<()> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> core/src/context2d.rs:215:53 [INFO] [stdout] | [INFO] [stdout] 215 | self.font_bucket.as_mut().and_then(|mut fb| fb.get_glyph(&self.style_bucket.get_font_style(), text)) [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> core/src/context2d.rs:217:48 [INFO] [stdout] | [INFO] [stdout] 217 | font_bucket.as_mut().and_then(|mut fb| fb.get_glyph(&self.style_bucket.get_font_style(), text)) [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> core/src/backend/svg.rs:292:26 [INFO] [stdout] | [INFO] [stdout] 292 | fn resize(&mut self, size: f32x2) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `seg` [INFO] [stdout] --> core/src/backend/svg.rs:298:32 [INFO] [stdout] | [INFO] [stdout] 298 | Segment::Pixel(ref seg) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_seg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> core/src/backend/svg.rs:310:13 [INFO] [stdout] | [INFO] [stdout] 310 | let mut svg = self.svg.clone(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> core/src/operate.rs:206:13 [INFO] [stdout] | [INFO] [stdout] 206 | let mut append_path = |clear_rect: &Option| -> Option { [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `effect` [INFO] [stdout] --> core/src/filter/drop_shadow.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | fn calc_effect_box(effect: DropShadow) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_effect` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `segment` is never read [INFO] [stdout] --> core/src/operate.rs:256:5 [INFO] [stdout] | [INFO] [stdout] 254 | pub struct OperateAppender<'a> { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 255 | operates: &'a mut Operates, [INFO] [stdout] 256 | segment: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_effect_box` is never used [INFO] [stdout] --> core/src/filter/drop_shadow.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn calc_effect_box(effect: DropShadow) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `difference`, `xor`, and `intersection` are never used [INFO] [stdout] --> core/src/helps/polygon.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Polygon { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn difference(&self, another: &Self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn xor(&self, another: &Self) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn intersection(&self, another: &Self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking painter_font v0.1.0 (/opt/rustwide/workdir/font) [INFO] [stdout] warning: unused variable: `raster_image` [INFO] [stdout] --> font/src/parser.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | let raster_image = font.glyph_raster_image(glyph_id, pixels_per_em); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_raster_image` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y1` [INFO] [stdout] --> font/src/parser.rs:102:46 [INFO] [stdout] | [INFO] [stdout] 102 | let Rect { x_min: x1, y_min: y1, x_max: x2, y_max: y2 } = rect; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_y1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `style` [INFO] [stdout] --> font/src/lib.rs:89:29 [INFO] [stdout] | [INFO] [stdout] 89 | fn default_glyph(&self, style: &FontStyles) -> painter_core::font::Glyph { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_style` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> font/src/woff.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | struct WOFFHeader { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 7 | signature: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | flavor: Vec, [INFO] [stdout] 9 | length: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | num_tables: Vec, [INFO] [stdout] 11 | reserved: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 12 | total_sfnt_size: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | major_version: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 14 | minor_version: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 15 | meta_offset: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 16 | meta_length: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 17 | meta_orig_length: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 18 | priv_offset: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 19 | priv_length: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WOFFHeader` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `family`, `hor_side_bearing`, `ver_side_bearing`, `italic_angle`, `style`, and `bbox` are never read [INFO] [stdout] --> font/src/parser.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Glyph { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 13 | family: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | hor_side_bearing: i16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 34 | ver_side_bearing: i16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | italic_angle: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 40 | style: Style, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 41 | [INFO] [stdout] 42 | bbox: BoundingBox, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Glyph` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.83 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.83 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.83 [INFO] [stderr] Checking js-sys v0.3.60 [INFO] [stderr] Checking web-sys v0.3.60 [INFO] [stderr] Checking painter_wasm v0.1.0 (/opt/rustwide/workdir/wasm) [INFO] [stdout] warning: unused import: `crate::js_console_info` [INFO] [stdout] --> wasm/src/path.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::js_console_info; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> wasm/src/path.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> wasm/src/canvas.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let mut ctx = Context::new_wh(width as f32, height as f32); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> wasm/src/canvas.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut font_db = FontDB::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_dash_offset` [INFO] [stdout] --> wasm/src/context.rs:113:44 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn set_line_dash_offset(&mut self, line_dash_offset: JsValue) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_dash_offset` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: floating-point types cannot be used in patterns [INFO] [stdout] --> wasm/src/path.rs:144:21 [INFO] [stdout] | [INFO] [stdout] 144 | 0f32 => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #41620 [INFO] [stdout] = note: `#[warn(illegal_floating_point_literal_pattern)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: floating-point types cannot be used in patterns [INFO] [stdout] --> wasm/src/path.rs:147:21 [INFO] [stdout] | [INFO] [stdout] 147 | 1f32 => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #41620 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: floating-point types cannot be used in patterns [INFO] [stdout] --> wasm/src/path.rs:150:21 [INFO] [stdout] | [INFO] [stdout] 150 | 2f32 => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #41620 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: floating-point types cannot be used in patterns [INFO] [stdout] --> wasm/src/path.rs:153:21 [INFO] [stdout] | [INFO] [stdout] 153 | 3f32 => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #41620 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `count` is assigned to, but never used [INFO] [stdout] --> wasm/src/path.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | let mut count = 0usize; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_count` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0446]: private type `Backend` in public interface [INFO] [stdout] --> wasm/src/canvas.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 13 | enum Backend { [INFO] [stdout] | ------------ `Backend` declared as private [INFO] [stdout] ... [INFO] [stdout] 53 | pub(crate) backend: Backend, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0446`. [INFO] [stdout] [INFO] [stderr] error: could not compile `painter_wasm` (lib) due to 2 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "7ed07193d37104bc00cb12b5c07f16991656b54bc0ffbe1a0949ffb685055efe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ed07193d37104bc00cb12b5c07f16991656b54bc0ffbe1a0949ffb685055efe", kill_on_drop: false }` [INFO] [stdout] 7ed07193d37104bc00cb12b5c07f16991656b54bc0ffbe1a0949ffb685055efe