[INFO] cloning repository https://github.com/Miniwoffer/mdbook-dot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Miniwoffer/mdbook-dot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMiniwoffer%2Fmdbook-dot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMiniwoffer%2Fmdbook-dot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5e7cf6e29993aa699ffcf60659acd6f62009f561 [INFO] testing Miniwoffer/mdbook-dot against 1.59.0 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMiniwoffer%2Fmdbook-dot" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Miniwoffer/mdbook-dot on toolchain 1.59.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Miniwoffer/mdbook-dot [INFO] finished tweaking git repo https://github.com/Miniwoffer/mdbook-dot [INFO] tweaked toml for git repo https://github.com/Miniwoffer/mdbook-dot written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/Miniwoffer/mdbook-dot already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded toml v0.4.8 [INFO] [stderr] Downloaded filetime v0.2.2 [INFO] [stderr] Downloaded walkdir v2.2.6 [INFO] [stderr] Downloaded mdbook v0.2.3 [INFO] [stderr] Downloaded markup5ever v0.7.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4fc3bc1137326c788068bebd45902dd285424da7afc084508ae475656e5a875b [INFO] running `Command { std: "docker" "start" "-a" "4fc3bc1137326c788068bebd45902dd285424da7afc084508ae475656e5a875b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4fc3bc1137326c788068bebd45902dd285424da7afc084508ae475656e5a875b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4fc3bc1137326c788068bebd45902dd285424da7afc084508ae475656e5a875b", kill_on_drop: false }` [INFO] [stdout] 4fc3bc1137326c788068bebd45902dd285424da7afc084508ae475656e5a875b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 40f2f904023fff57d2e6bf0cff4eded8eb6084e8eed61ae84b191000e872e453 [INFO] running `Command { std: "docker" "start" "-a" "40f2f904023fff57d2e6bf0cff4eded8eb6084e8eed61ae84b191000e872e453", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.43 [INFO] [stderr] Compiling cfg-if v0.1.6 [INFO] [stderr] Compiling rand_core v0.3.0 [INFO] [stderr] Compiling proc-macro2 v0.4.20 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Compiling serde v1.0.80 [INFO] [stderr] Compiling lazy_static v1.2.0 [INFO] [stderr] Compiling byteorder v1.2.7 [INFO] [stderr] Compiling ryu v0.2.6 [INFO] [stderr] Compiling string_cache_shared v0.3.0 [INFO] [stderr] Compiling unicode-normalization v0.1.7 [INFO] [stderr] Compiling itoa v0.4.3 [INFO] [stderr] Compiling httparse v1.3.3 [INFO] [stderr] Compiling traitobject v0.1.0 [INFO] [stderr] Compiling slab v0.4.1 [INFO] [stderr] Compiling regex v1.0.6 [INFO] [stderr] Compiling lazycell v1.2.0 [INFO] [stderr] Compiling stable_deref_trait v1.1.1 [INFO] [stderr] Compiling cc v1.0.25 [INFO] [stderr] Compiling ucd-util v0.1.2 [INFO] [stderr] Compiling ucd-trie v0.1.1 [INFO] [stderr] Compiling utf8-ranges v1.0.2 [INFO] [stderr] Compiling maplit v1.0.1 [INFO] [stderr] Compiling mac v0.1.1 [INFO] [stderr] Compiling scopeguard v0.3.3 [INFO] [stderr] Compiling futures v0.1.25 [INFO] [stderr] Compiling safemem v0.3.0 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling typeable v0.1.2 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling utf-8 v0.7.4 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling rustc-demangle v0.1.9 [INFO] [stderr] Compiling modifier v0.1.0 [INFO] [stderr] Compiling bitflags v1.0.4 [INFO] [stderr] Compiling crossbeam-utils v0.5.0 [INFO] [stderr] Compiling quick-error v1.2.2 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling same-file v1.0.4 [INFO] [stderr] Compiling sequence_trie v0.3.6 [INFO] [stderr] Compiling pulldown-cmark v0.1.2 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling termcolor v1.0.4 [INFO] [stderr] Compiling either v1.5.0 [INFO] [stderr] Compiling strsim v0.7.0 [INFO] [stderr] Compiling remove_dir_all v0.5.1 [INFO] [stderr] Compiling sha1 v0.6.0 [INFO] [stderr] Compiling is-match v0.1.0 [INFO] [stderr] Compiling strum v0.9.0 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling bitflags v0.9.1 [INFO] [stderr] Compiling shlex v0.1.1 [INFO] [stderr] Compiling open v1.2.2 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling memchr v2.1.1 [INFO] [stderr] Compiling parking_lot_core v0.3.1 [INFO] [stderr] Compiling log v0.4.6 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling owning_ref v0.3.3 [INFO] [stderr] Compiling rand_core v0.2.2 [INFO] [stderr] Compiling iovec v0.1.2 [INFO] [stderr] Compiling num_cpus v1.8.0 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling time v0.1.40 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling inotify-sys v0.1.3 [INFO] [stderr] Compiling filetime v0.2.2 [INFO] [stderr] Compiling rand v0.4.3 [INFO] [stderr] Compiling unsafe-any v0.4.2 [INFO] [stderr] Compiling textwrap v0.10.0 [INFO] [stderr] Compiling getopts v0.2.18 [INFO] [stderr] Compiling new_debug_unreachable v1.0.1 [INFO] [stderr] Compiling smallvec v0.6.5 [INFO] [stderr] Compiling itertools v0.7.8 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Compiling regex-syntax v0.6.2 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling walkdir v2.2.6 [INFO] [stderr] Compiling pest v2.0.2 [INFO] [stderr] Compiling tokio-executor v0.1.5 [INFO] [stderr] Compiling humantime v1.1.1 [INFO] [stderr] Compiling backtrace-sys v0.1.24 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling lock_api v0.1.4 [INFO] [stderr] Compiling phf_shared v0.7.23 [INFO] [stderr] Compiling rand v0.5.5 [INFO] [stderr] Compiling mio v0.6.16 [INFO] [stderr] Compiling bytes v0.4.10 [INFO] [stderr] Compiling typemap v0.3.3 [INFO] [stderr] Compiling quote v0.6.9 [INFO] [stderr] Compiling aho-corasick v0.6.9 [INFO] [stderr] Compiling clap v2.32.0 [INFO] [stderr] Compiling futf v0.1.4 [INFO] [stderr] Compiling serde_json v1.0.32 [INFO] [stderr] Compiling toml v0.4.8 [INFO] [stderr] Compiling mime v0.2.6 [INFO] [stderr] Compiling syn v0.15.18 [INFO] [stderr] Compiling syn v0.14.9 [INFO] [stderr] Compiling pest_meta v2.0.3 [INFO] [stderr] Compiling tokio-io v0.1.10 [INFO] [stderr] Compiling phf v0.7.23 [INFO] [stderr] Compiling chrono v0.4.6 [INFO] [stderr] Compiling backtrace v0.3.9 [INFO] [stderr] Compiling tendril v0.4.0 [INFO] [stderr] Compiling plugin v0.2.6 [INFO] [stderr] Compiling hyper v0.10.15 [INFO] [stderr] Compiling mio-extras v2.0.5 [INFO] [stderr] Compiling phf_generator v0.7.23 [INFO] [stderr] Compiling tempfile v3.0.4 [INFO] [stderr] Compiling error-chain v0.12.0 [INFO] [stderr] Compiling ws v0.7.9 [INFO] [stderr] Compiling pest_generator v2.0.0 [INFO] [stderr] Compiling phf_codegen v0.7.23 [INFO] [stderr] Compiling string_cache_codegen v0.4.2 [INFO] [stderr] Compiling parking_lot v0.6.4 [INFO] [stderr] Compiling mime_guess v1.8.6 [INFO] [stderr] Compiling toml-query v0.7.0 [INFO] [stderr] Compiling env_logger v0.5.13 [INFO] [stderr] Compiling strum_macros v0.9.1 [INFO] [stderr] Compiling tokio-reactor v0.1.6 [INFO] [stderr] Compiling string_cache v0.7.3 [INFO] [stderr] Compiling inotify v0.6.1 [INFO] [stderr] Compiling pest_derive v2.0.1 [INFO] [stderr] Compiling notify v4.0.6 [INFO] [stderr] Compiling handlebars v1.1.0 [INFO] [stderr] Compiling iron v0.6.0 [INFO] [stderr] Compiling mount v0.4.0 [INFO] [stderr] Compiling staticfile v0.5.0 [INFO] [stderr] Compiling serde_derive v1.0.80 [INFO] [stderr] Compiling html5ever v0.22.5 [INFO] [stderr] Compiling markup5ever v0.7.3 [INFO] [stderr] Compiling elasticlunr-rs v2.3.3 [INFO] [stderr] Compiling ammonia v1.2.0 [INFO] [stderr] Compiling mdbook v0.2.3 [INFO] [stderr] Compiling mdbook-dot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ArgMatches` [INFO] [stdout] --> src/bin/mdbook-dot.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | use clap::{App, Arg, ArgMatches, SubCommand}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/bin/mdbook-dot.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Chapter` [INFO] [stdout] --> src/bin/mdbook-dot.rs:14:34 [INFO] [stdout] | [INFO] [stdout] 14 | use mdbook::book::{Book,BookItem,Chapter}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sub_args` [INFO] [stdout] --> src/bin/mdbook-dot.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | if let Some(sub_args) = matches.subcommand_matches("supports") { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sub_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `front` [INFO] [stdout] --> src/bin/mdbook-dot.rs:81:34 [INFO] [stdout] | [INFO] [stdout] 81 | ... let (front,back) = chapter.content.split_at(start); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_front` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_replaced_items` [INFO] [stdout] --> src/bin/mdbook-dot.rs:68:29 [INFO] [stdout] | [INFO] [stdout] 68 | fn process <'a,I>(items: I, num_replaced_items: &mut usize) -> Result<()> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_replaced_items` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/bin/mdbook-dot.rs:112:32 [INFO] [stdout] | [INFO] [stdout] 112 | fn dot_to_image(input : String,path : String) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `renderer` [INFO] [stdout] --> src/bin/mdbook-dot.rs:64:33 [INFO] [stdout] | [INFO] [stdout] 64 | fn supports_renderer(&self, renderer: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_renderer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/mdbook-dot.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | let mut stdin = dot.stdin.as_mut().expect("Failed to open stdin"); [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: unused `Result` that must be used [INFO] [stdout] --> src/bin/mdbook-dot.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | serde_json::to_writer(io::stdout(), &processed_book); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/mdbook-dot.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | process(&mut book.sections, &mut num_replaced_items); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `from` that must be used [INFO] [stdout] --> src/bin/mdbook-dot.rs:85:37 [INFO] [stdout] | [INFO] [stdout] 85 | ... Error::from(format!("Failed to generate Dot: dot not closed")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 55s [INFO] running `Command { std: "docker" "inspect" "40f2f904023fff57d2e6bf0cff4eded8eb6084e8eed61ae84b191000e872e453", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40f2f904023fff57d2e6bf0cff4eded8eb6084e8eed61ae84b191000e872e453", kill_on_drop: false }` [INFO] [stdout] 40f2f904023fff57d2e6bf0cff4eded8eb6084e8eed61ae84b191000e872e453 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1a4d1fec5afb6e3f32bcb94839154d9991da9ca3b1775d2950634649d07d045c [INFO] running `Command { std: "docker" "start" "-a" "1a4d1fec5afb6e3f32bcb94839154d9991da9ca3b1775d2950634649d07d045c", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling mdbook-dot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ArgMatches` [INFO] [stdout] --> src/bin/mdbook-dot.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | use clap::{App, Arg, ArgMatches, SubCommand}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/bin/mdbook-dot.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Chapter` [INFO] [stdout] --> src/bin/mdbook-dot.rs:14:34 [INFO] [stdout] | [INFO] [stdout] 14 | use mdbook::book::{Book,BookItem,Chapter}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sub_args` [INFO] [stdout] --> src/bin/mdbook-dot.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | if let Some(sub_args) = matches.subcommand_matches("supports") { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sub_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `front` [INFO] [stdout] --> src/bin/mdbook-dot.rs:81:34 [INFO] [stdout] | [INFO] [stdout] 81 | ... let (front,back) = chapter.content.split_at(start); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_front` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_replaced_items` [INFO] [stdout] --> src/bin/mdbook-dot.rs:68:29 [INFO] [stdout] | [INFO] [stdout] 68 | fn process <'a,I>(items: I, num_replaced_items: &mut usize) -> Result<()> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_replaced_items` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/bin/mdbook-dot.rs:112:32 [INFO] [stdout] | [INFO] [stdout] 112 | fn dot_to_image(input : String,path : String) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `renderer` [INFO] [stdout] --> src/bin/mdbook-dot.rs:64:33 [INFO] [stdout] | [INFO] [stdout] 64 | fn supports_renderer(&self, renderer: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_renderer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/mdbook-dot.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | let mut stdin = dot.stdin.as_mut().expect("Failed to open stdin"); [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: unused `Result` that must be used [INFO] [stdout] --> src/bin/mdbook-dot.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | serde_json::to_writer(io::stdout(), &processed_book); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/mdbook-dot.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | process(&mut book.sections, &mut num_replaced_items); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `from` that must be used [INFO] [stdout] --> src/bin/mdbook-dot.rs:85:37 [INFO] [stdout] | [INFO] [stdout] 85 | ... Error::from(format!("Failed to generate Dot: dot not closed")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.95s [INFO] running `Command { std: "docker" "inspect" "1a4d1fec5afb6e3f32bcb94839154d9991da9ca3b1775d2950634649d07d045c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a4d1fec5afb6e3f32bcb94839154d9991da9ca3b1775d2950634649d07d045c", kill_on_drop: false }` [INFO] [stdout] 1a4d1fec5afb6e3f32bcb94839154d9991da9ca3b1775d2950634649d07d045c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 266edcbdadb17644b11fa64f04c742d4ef2117178e28635ed913735629027100 [INFO] running `Command { std: "docker" "start" "-a" "266edcbdadb17644b11fa64f04c742d4ef2117178e28635ed913735629027100", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `ArgMatches` [INFO] [stderr] --> src/bin/mdbook-dot.rs:6:22 [INFO] [stderr] | [INFO] [stderr] 6 | use clap::{App, Arg, ArgMatches, SubCommand}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::fs` [INFO] [stderr] --> src/bin/mdbook-dot.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use std::fs; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Chapter` [INFO] [stderr] --> src/bin/mdbook-dot.rs:14:34 [INFO] [stderr] | [INFO] [stderr] 14 | use mdbook::book::{Book,BookItem,Chapter}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `sub_args` [INFO] [stderr] --> src/bin/mdbook-dot.rs:34:17 [INFO] [stderr] | [INFO] [stderr] 34 | if let Some(sub_args) = matches.subcommand_matches("supports") { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sub_args` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `front` [INFO] [stderr] --> src/bin/mdbook-dot.rs:81:34 [INFO] [stderr] | [INFO] [stderr] 81 | ... let (front,back) = chapter.content.split_at(start); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_front` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `num_replaced_items` [INFO] [stderr] --> src/bin/mdbook-dot.rs:68:29 [INFO] [stderr] | [INFO] [stderr] 68 | fn process <'a,I>(items: I, num_replaced_items: &mut usize) -> Result<()> [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_replaced_items` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/bin/mdbook-dot.rs:112:32 [INFO] [stderr] | [INFO] [stderr] 112 | fn dot_to_image(input : String,path : String) -> Result { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `renderer` [INFO] [stderr] --> src/bin/mdbook-dot.rs:64:33 [INFO] [stderr] | [INFO] [stderr] 64 | fn supports_renderer(&self, renderer: &str) -> bool { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_renderer` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/bin/mdbook-dot.rs:118:13 [INFO] [stderr] | [INFO] [stderr] 118 | let mut stdin = dot.stdin.as_mut().expect("Failed to open stdin"); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/bin/mdbook-dot.rs:40:5 [INFO] [stderr] | [INFO] [stderr] 40 | serde_json::to_writer(io::stdout(), &processed_book); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/bin/mdbook-dot.rs:61:9 [INFO] [stderr] | [INFO] [stderr] 61 | process(&mut book.sections, &mut num_replaced_items); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: unused return value of `from` that must be used [INFO] [stderr] --> src/bin/mdbook-dot.rs:85:37 [INFO] [stderr] | [INFO] [stderr] 85 | ... Error::from(format!("Failed to generate Dot: dot not closed")); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `mdbook-dot` (bin "mdbook-dot" test) generated 12 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.19s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/mdbook_dot-01f5096b85e0e228) [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" "266edcbdadb17644b11fa64f04c742d4ef2117178e28635ed913735629027100", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "266edcbdadb17644b11fa64f04c742d4ef2117178e28635ed913735629027100", kill_on_drop: false }` [INFO] [stdout] 266edcbdadb17644b11fa64f04c742d4ef2117178e28635ed913735629027100