[INFO] fetching crate sot 0.0.2... [INFO] testing sot-0.0.2 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate sot 0.0.2 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate sot 0.0.2 [INFO] finished tweaking crates.io crate sot 0.0.2 [INFO] tweaked toml for crates.io crate sot 0.0.2 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate sot 0.0.2 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 79 packages to latest compatible versions [INFO] [stderr] Adding bincode v1.3.3 (available: v2.0.1) [INFO] [stderr] Adding ctor v0.1.26 (available: v0.5.0) [INFO] [stderr] Adding itertools v0.10.5 (available: v0.14.0) [INFO] [stderr] Adding predicates v2.1.5 (available: v3.1.3) [INFO] [stderr] Adding simple_logger v2.3.0 (available: v5.0.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded typed-arena v1.7.0 [INFO] [stderr] Downloaded xml-builder v0.5.4 [INFO] [stderr] Downloaded fsutils v0.1.7 [INFO] [stderr] Downloaded colored v2.2.0 [INFO] [stderr] Downloaded simple_logger v2.3.0 [INFO] [stderr] Downloaded ctor v0.1.26 [INFO] [stderr] Downloaded humantime v1.3.0 [INFO] [stderr] Downloaded sxd-xpath v0.4.2 [INFO] [stderr] Downloaded env_logger v0.7.1 [INFO] [stderr] Downloaded peresil v0.3.0 [INFO] [stderr] Downloaded sxd-document v0.3.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 05f3d50e2dfb2f9986cf20612f2e7714fe3fa9ea7dc0dfd0f79599ef5f8395df [INFO] running `Command { std: "docker" "start" "-a" "05f3d50e2dfb2f9986cf20612f2e7714fe3fa9ea7dc0dfd0f79599ef5f8395df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "05f3d50e2dfb2f9986cf20612f2e7714fe3fa9ea7dc0dfd0f79599ef5f8395df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05f3d50e2dfb2f9986cf20612f2e7714fe3fa9ea7dc0dfd0f79599ef5f8395df", kill_on_drop: false }` [INFO] [stdout] 05f3d50e2dfb2f9986cf20612f2e7714fe3fa9ea7dc0dfd0f79599ef5f8395df [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2548ba2a1ca692696018f8592f0f6d57699ed0f87a3fec89335c4ec8ad5d5b8c [INFO] running `Command { std: "docker" "start" "-a" "2548ba2a1ca692696018f8592f0f6d57699ed0f87a3fec89335c4ec8ad5d5b8c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling peresil v0.3.0 [INFO] [stderr] Compiling deranged v0.5.4 [INFO] [stderr] Compiling typed-arena v1.7.0 [INFO] [stderr] Compiling num_threads v0.1.7 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling sxd-document v0.3.2 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling xml-builder v0.5.4 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling sxd-xpath v0.4.2 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling simple_logger v2.3.0 [INFO] [stderr] Compiling ctor v0.1.26 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling regex v1.11.3 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling sot v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Edge` is never constructed [INFO] [stdout] --> src/sot.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | struct Edge { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/sot.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl Edge { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 41 | fn new(to: u32, a: String) -> Edge { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vertex` is never constructed [INFO] [stdout] --> src/sot.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | struct Vertex { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `empty` is never used [INFO] [stdout] --> src/sot.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl Vertex { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 53 | /// Make an empty one. [INFO] [stdout] 54 | pub fn empty() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sot` is never constructed [INFO] [stdout] --> src/sot.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct Sot { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `empty` and `max` are never used [INFO] [stdout] --> src/sot.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl Sot { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 86 | /// Makes an empty Sot, with no vertices and no edges. [INFO] [stdout] 87 | pub fn empty() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn max(&self) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `inconsistencies` and `lost_edges` are never used [INFO] [stdout] --> src/sot/inconsistencies.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Sot { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn inconsistencies(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn lost_edges(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `inspect` and `inspect_v` are never used [INFO] [stdout] --> src/sot/inspect.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Sot { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn inspect(&self, loc: &str) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn inspect_v(&self, v: u32, seen: &mut HashSet) -> Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `merge` is never used [INFO] [stdout] --> src/sot/merge.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Sot { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 26 | /// Merge this new Sot into itself. [INFO] [stdout] 27 | pub fn merge(&mut self, sot: &Sot) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/sot/ops.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Sot { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 28 | /// Add a new vertex `v1` to the Sot. [INFO] [stdout] 29 | pub fn add(&mut self, v1: u32) -> Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn bind(&mut self, v1: u32, v2: u32, a: &str) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn put(&mut self, v: u32, d: Vec) -> Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn data(&self, v: u32) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn kids(&self, _v: u32) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn kid(&self, v: u32, a: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn find(&self, v1: u32, loc: &str) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Script` is never constructed [INFO] [stdout] --> src/sot/parse.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | struct Script { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `deploy_to`, `commands`, `deploy_one`, `parse_data`, and `parse` are never used [INFO] [stdout] --> src/sot/parse.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Script { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 35 | /// Make a new one. [INFO] [stdout] 36 | pub fn new(s: &str) -> Script { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn deploy_to(&mut self, sot: &mut Sot) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn commands(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn deploy_one(&mut self, cmd: &str, sot: &mut Sot) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | fn parse_data(s: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | fn parse(&mut self, s: &str, sot: &mut Sot) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_str` is never used [INFO] [stdout] --> src/sot/parse.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 140 | impl Sot { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 141 | /// Parse string with instructions. [INFO] [stdout] 142 | pub fn from_str(txt: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `save` and `load` are never used [INFO] [stdout] --> src/sot/serialization.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Sot { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn save(&mut self, path: &Path) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn load(path: &Path) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `slice` is never used [INFO] [stdout] --> src/sot/slice.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Sot { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn slice(&mut self, loc: &str) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_xml` is never used [INFO] [stdout] --> src/sot/xml.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Sot { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 27 | /// Make XML graph. [INFO] [stdout] 28 | pub fn to_xml(&self) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&u32` instead of cloning the inner type [INFO] [stdout] --> src/sot/xml.rs:34:70 [INFO] [stdout] | [INFO] [stdout] 34 | for (v, vtx) in self.vertices.iter().sorted_by_key(|(v, _)| v.clone()) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.58s [INFO] running `Command { std: "docker" "inspect" "2548ba2a1ca692696018f8592f0f6d57699ed0f87a3fec89335c4ec8ad5d5b8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2548ba2a1ca692696018f8592f0f6d57699ed0f87a3fec89335c4ec8ad5d5b8c", kill_on_drop: false }` [INFO] [stdout] 2548ba2a1ca692696018f8592f0f6d57699ed0f87a3fec89335c4ec8ad5d5b8c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 05baa42977b21d83d010fc4325ee8166d99023046781b057a8439bc6eaaa1c1b [INFO] running `Command { std: "docker" "start" "-a" "05baa42977b21d83d010fc4325ee8166d99023046781b057a8439bc6eaaa1c1b", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling humantime v1.3.0 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling difflib v0.4.0 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling predicates-core v1.0.9 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling normalize-line-endings v0.3.0 [INFO] [stdout] warning: struct `Edge` is never constructed [INFO] [stdout] --> src/sot.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | struct Edge { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/sot.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl Edge { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 41 | fn new(to: u32, a: String) -> Edge { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vertex` is never constructed [INFO] [stdout] --> src/sot.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | struct Vertex { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `empty` is never used [INFO] [stdout] --> src/sot.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl Vertex { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 53 | /// Make an empty one. [INFO] [stdout] 54 | pub fn empty() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sot` is never constructed [INFO] [stdout] --> src/sot.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct Sot { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `empty` and `max` are never used [INFO] [stdout] --> src/sot.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl Sot { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 86 | /// Makes an empty Sot, with no vertices and no edges. [INFO] [stdout] 87 | pub fn empty() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn max(&self) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `inconsistencies` and `lost_edges` are never used [INFO] [stdout] --> src/sot/inconsistencies.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Sot { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn inconsistencies(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn lost_edges(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `inspect` and `inspect_v` are never used [INFO] [stdout] --> src/sot/inspect.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Sot { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn inspect(&self, loc: &str) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn inspect_v(&self, v: u32, seen: &mut HashSet) -> Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `merge` is never used [INFO] [stdout] --> src/sot/merge.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Sot { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 26 | /// Merge this new Sot into itself. [INFO] [stdout] 27 | pub fn merge(&mut self, sot: &Sot) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/sot/ops.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Sot { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] 28 | /// Add a new vertex `v1` to the Sot. [INFO] [stdout] 29 | pub fn add(&mut self, v1: u32) -> Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn bind(&mut self, v1: u32, v2: u32, a: &str) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn put(&mut self, v: u32, d: Vec) -> Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn data(&self, v: u32) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn kids(&self, _v: u32) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn kid(&self, v: u32, a: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn find(&self, v1: u32, loc: &str) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Script` is never constructed [INFO] [stdout] --> src/sot/parse.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | struct Script { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `deploy_to`, `commands`, `deploy_one`, `parse_data`, and `parse` are never used [INFO] [stdout] --> src/sot/parse.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Script { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 35 | /// Make a new one. [INFO] [stdout] 36 | pub fn new(s: &str) -> Script { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn deploy_to(&mut self, sot: &mut Sot) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn commands(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | fn deploy_one(&mut self, cmd: &str, sot: &mut Sot) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | fn parse_data(s: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | fn parse(&mut self, s: &str, sot: &mut Sot) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_str` is never used [INFO] [stdout] --> src/sot/parse.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 140 | impl Sot { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 141 | /// Parse string with instructions. [INFO] [stdout] 142 | pub fn from_str(txt: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `save` and `load` are never used [INFO] [stdout] --> src/sot/serialization.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Sot { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn save(&mut self, path: &Path) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn load(path: &Path) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `slice` is never used [INFO] [stdout] --> src/sot/slice.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Sot { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn slice(&mut self, loc: &str) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_xml` is never used [INFO] [stdout] --> src/sot/xml.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Sot { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 27 | /// Make XML graph. [INFO] [stdout] 28 | pub fn to_xml(&self) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&u32` instead of cloning the inner type [INFO] [stdout] --> src/sot/xml.rs:34:70 [INFO] [stdout] | [INFO] [stdout] 34 | for (v, vtx) in self.vertices.iter().sorted_by_key(|(v, _)| v.clone()) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling fsutils v0.1.7 [INFO] [stderr] Compiling float-cmp v0.9.0 [INFO] [stderr] Compiling predicates v2.1.5 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling sot v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&u32` instead of cloning the inner type [INFO] [stdout] --> src/sot/xml.rs:34:70 [INFO] [stdout] | [INFO] [stdout] 34 | for (v, vtx) in self.vertices.iter().sorted_by_key(|(v, _)| v.clone()) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 8.29s [INFO] running `Command { std: "docker" "inspect" "05baa42977b21d83d010fc4325ee8166d99023046781b057a8439bc6eaaa1c1b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05baa42977b21d83d010fc4325ee8166d99023046781b057a8439bc6eaaa1c1b", kill_on_drop: false }` [INFO] [stdout] 05baa42977b21d83d010fc4325ee8166d99023046781b057a8439bc6eaaa1c1b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f7df6243c2517eb24662ebcf3e9454af2224df3dd33856e5aaef50f5b8a3bdc1 [INFO] running `Command { std: "docker" "start" "-a" "f7df6243c2517eb24662ebcf3e9454af2224df3dd33856e5aaef50f5b8a3bdc1", kill_on_drop: false }` [INFO] [stderr] warning: struct `Edge` is never constructed [INFO] [stderr] --> src/sot.rs:35:8 [INFO] [stderr] | [INFO] [stderr] 35 | struct Edge { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/sot.rs:41:8 [INFO] [stderr] | [INFO] [stderr] 40 | impl Edge { [INFO] [stderr] | --------- associated function in this implementation [INFO] [stderr] 41 | fn new(to: u32, a: String) -> Edge { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Vertex` is never constructed [INFO] [stderr] --> src/sot.rs:47:8 [INFO] [stderr] | [INFO] [stderr] 47 | struct Vertex { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `empty` is never used [INFO] [stderr] --> src/sot.rs:54:12 [INFO] [stderr] | [INFO] [stderr] 52 | impl Vertex { [INFO] [stderr] | ----------- associated function in this implementation [INFO] [stderr] 53 | /// Make an empty one. [INFO] [stderr] 54 | pub fn empty() -> Self { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Sot` is never constructed [INFO] [stderr] --> src/sot.rs:63:12 [INFO] [stderr] | [INFO] [stderr] 63 | pub struct Sot { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `empty` and `max` are never used [INFO] [stderr] --> src/sot.rs:87:12 [INFO] [stderr] | [INFO] [stderr] 85 | impl Sot { [INFO] [stderr] | -------- associated items in this implementation [INFO] [stderr] 86 | /// Makes an empty Sot, with no vertices and no edges. [INFO] [stderr] 87 | pub fn empty() -> Self { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 94 | pub fn max(&self) -> u32 { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `inconsistencies` and `lost_edges` are never used [INFO] [stderr] --> src/sot/inconsistencies.rs:27:12 [INFO] [stderr] | [INFO] [stderr] 24 | impl Sot { [INFO] [stderr] | -------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 27 | pub fn inconsistencies(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 39 | fn lost_edges(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `inspect` and `inspect_v` are never used [INFO] [stderr] --> src/sot/inspect.rs:29:12 [INFO] [stderr] | [INFO] [stderr] 26 | impl Sot { [INFO] [stderr] | -------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 29 | pub fn inspect(&self, loc: &str) -> Result { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 42 | fn inspect_v(&self, v: u32, seen: &mut HashSet) -> Result> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `merge` is never used [INFO] [stderr] --> src/sot/merge.rs:27:12 [INFO] [stderr] | [INFO] [stderr] 25 | impl Sot { [INFO] [stderr] | -------- method in this implementation [INFO] [stderr] 26 | /// Merge this new Sot into itself. [INFO] [stderr] 27 | pub fn merge(&mut self, sot: &Sot) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple methods are never used [INFO] [stderr] --> src/sot/ops.rs:29:12 [INFO] [stderr] | [INFO] [stderr] 27 | impl Sot { [INFO] [stderr] | -------- methods in this implementation [INFO] [stderr] 28 | /// Add a new vertex `v1` to the Sot. [INFO] [stderr] 29 | pub fn add(&mut self, v1: u32) -> Result<()> { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 41 | pub fn bind(&mut self, v1: u32, v2: u32, a: &str) -> Result<()> { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 66 | pub fn put(&mut self, v: u32, d: Vec) -> Result<()> { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 77 | pub fn data(&self, v: u32) -> Result> { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 86 | pub fn kids(&self, _v: u32) -> Result> { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 91 | pub fn kid(&self, v: u32, a: &str) -> Option { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 107 | pub fn find(&self, v1: u32, loc: &str) -> Result { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Script` is never constructed [INFO] [stderr] --> src/sot/parse.rs:29:8 [INFO] [stderr] | [INFO] [stderr] 29 | struct Script { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `deploy_to`, `commands`, `deploy_one`, `parse_data`, and `parse` are never used [INFO] [stderr] --> src/sot/parse.rs:36:12 [INFO] [stderr] | [INFO] [stderr] 34 | impl Script { [INFO] [stderr] | ----------- associated items in this implementation [INFO] [stderr] 35 | /// Make a new one. [INFO] [stderr] 36 | pub fn new(s: &str) -> Script { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 44 | pub fn deploy_to(&mut self, sot: &mut Sot) -> Result { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 56 | fn commands(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 71 | fn deploy_one(&mut self, cmd: &str, sot: &mut Sot) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 108 | fn parse_data(s: &str) -> Result> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 126 | fn parse(&mut self, s: &str, sot: &mut Sot) -> Result { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from_str` is never used [INFO] [stderr] --> src/sot/parse.rs:142:12 [INFO] [stderr] | [INFO] [stderr] 140 | impl Sot { [INFO] [stderr] | -------- associated function in this implementation [INFO] [stderr] 141 | /// Parse string with instructions. [INFO] [stderr] 142 | pub fn from_str(txt: &str) -> Result { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `save` and `load` are never used [INFO] [stderr] --> src/sot/serialization.rs:32:12 [INFO] [stderr] | [INFO] [stderr] 29 | impl Sot { [INFO] [stderr] | -------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 32 | pub fn save(&mut self, path: &Path) -> Result { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 48 | pub fn load(path: &Path) -> Result { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `slice` is never used [INFO] [stderr] --> src/sot/slice.rs:28:12 [INFO] [stderr] | [INFO] [stderr] 25 | impl Sot { [INFO] [stderr] | -------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 28 | pub fn slice(&mut self, loc: &str) -> Result { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `to_xml` is never used [INFO] [stderr] --> src/sot/xml.rs:28:12 [INFO] [stderr] | [INFO] [stderr] 26 | impl Sot { [INFO] [stderr] | -------- method in this implementation [INFO] [stderr] 27 | /// Make XML graph. [INFO] [stderr] 28 | pub fn to_xml(&self) -> Result { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: using `.clone()` on a double reference, which returns `&u32` instead of cloning the inner type [INFO] [stderr] --> src/sot/xml.rs:34:70 [INFO] [stderr] | [INFO] [stderr] 34 | for (v, vtx) in self.vertices.iter().sorted_by_key(|(v, _)| v.clone()) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `sot` (lib) generated 17 warnings [INFO] [stderr] warning: `sot` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/sot-45a38d435e9b30c7) [INFO] [stdout] running 18 tests [INFO] [stdout] test sot::calculates_max ... ok [INFO] [stdout] test sot::inconsistencies::finds_lost_edge ... ok [INFO] [stdout] test sot::makes_an_empty_sot ... ok [INFO] [stdout] test sot::merge::merges_two_sots ... ok [INFO] [stdout] test sot::ops::finds_all_kids ... ignored [INFO] [stdout] test sot::ops::binds_to_root ... ok [INFO] [stdout] test sot::ops::adds_simple_vertex ... ok [INFO] [stdout] test sot::ops::binds_two_names ... ok [INFO] [stdout] test sot::ops::finds_root ... ok [INFO] [stdout] test sot::ops::pre_defined_ids ... ok [INFO] [stdout] test sot::ops::binds_simple_vertices ... ok [INFO] [stdout] test sot::ops::sets_simple_data ... ok [INFO] [stdout] test sot::slice::makes_a_slice ... ok [INFO] [stdout] test sot::serialization::saves_and_loads ... ok [INFO] [stdout] test sot::inspect::inspects_simple_object ... ok [INFO] [stdout] test sot::ops::overwrites_edge ... ok [INFO] [stderr] Doc-tests sot [INFO] [stdout] test sot::parse::simple_command ... ok [INFO] [stdout] test sot::xml::prints_simple_graph ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 17 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "f7df6243c2517eb24662ebcf3e9454af2224df3dd33856e5aaef50f5b8a3bdc1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7df6243c2517eb24662ebcf3e9454af2224df3dd33856e5aaef50f5b8a3bdc1", kill_on_drop: false }` [INFO] [stdout] f7df6243c2517eb24662ebcf3e9454af2224df3dd33856e5aaef50f5b8a3bdc1