[INFO] fetching crate styc 0.1.0... [INFO] building styc-0.1.0 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate styc 0.1.0 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate styc 0.1.0 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate styc 0.1.0 [INFO] finished tweaking crates.io crate styc 0.1.0 [INFO] tweaked toml for crates.io crate styc 0.1.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "generate-lockfile" "--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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 47582768d8a631cf7aa87b2722816516cd61af2c81123e49cf2d0fb7c1cf0b06 [INFO] running `Command { std: "docker" "start" "-a" "47582768d8a631cf7aa87b2722816516cd61af2c81123e49cf2d0fb7c1cf0b06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "47582768d8a631cf7aa87b2722816516cd61af2c81123e49cf2d0fb7c1cf0b06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47582768d8a631cf7aa87b2722816516cd61af2c81123e49cf2d0fb7c1cf0b06", kill_on_drop: false }` [INFO] [stdout] 47582768d8a631cf7aa87b2722816516cd61af2c81123e49cf2d0fb7c1cf0b06 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0296bc3a6dffd34c6f9db155dcec86dbf41dd614358f076580a335acc36cffc7 [INFO] running `Command { std: "docker" "start" "-a" "0296bc3a6dffd34c6f9db155dcec86dbf41dd614358f076580a335acc36cffc7", kill_on_drop: false }` [INFO] [stderr] Compiling styc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ptr::write` [INFO] [stdout] --> src/shape/set.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ptr::write; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::op` [INFO] [stdout] --> src/shape/set.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::op; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SymbolShape` [INFO] [stdout] --> src/shape/set.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::shape::{Shape, SymbolShape}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `HashSet` [INFO] [stdout] --> src/shape/structure.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeMap, HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Map` [INFO] [stdout] --> src/shape/structure.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::Map; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::type_name_of_val` [INFO] [stdout] --> src/shape/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::any::type_name_of_val; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `library::*` [INFO] [stdout] --> src/shape/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use library::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pointer` [INFO] [stdout] --> src/shape/mod.rs:10:34 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fmt::{Debug, Formatter, Pointer}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Set`, `Scalar`, `Symbol`, `Vector`, `Structure`, and `Nominative` are never constructed [INFO] [stdout] --> src/shape/mod.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum Shape { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 25 | Set(SetShape), [INFO] [stdout] | ^^^ [INFO] [stdout] 26 | Scalar(ScalarShape), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | Symbol(SymbolShape), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 28 | Vector(VectorShape), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 29 | Structure(StructureShape), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 30 | Nominative(NominativeShape), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Shape` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/shape/mod.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 33 | impl Shape { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 34 | pub const fn scalar(min: u128, max: u128) -> Shape { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub const fn scalar_const(value: u128) -> Shape { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn symbol(name: &str) -> Shape { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn set(slots: [Shape; N]) -> Shape { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn vector(size: &ScalarShape, shape: &Shape) -> Shape { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn nominative(name: &str) -> Shape { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn structure(arr: [(&str, &Shape); N]) -> Shape { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `U8` is never used [INFO] [stdout] --> src/shape/library.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const U8: Shape = Shape::scalar(u8::MIN as u128, u8::MAX as u128); [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `U16` is never used [INFO] [stdout] --> src/shape/library.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const U16: Shape = Shape::scalar(u16::MIN as u128, u16::MAX as u128); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `U32` is never used [INFO] [stdout] --> src/shape/library.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const U32: Shape = Shape::scalar(u32::MIN as u128, u32::MAX as u128); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `U64` is never used [INFO] [stdout] --> src/shape/library.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const U64: Shape = Shape::scalar(u64::MIN as u128, u64::MAX as u128); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `UNIT` is never used [INFO] [stdout] --> src/shape/library.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const UNIT: Shape = Shape::Set(SetShape::empty()); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `new_const` are never used [INFO] [stdout] --> src/shape/scalar.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl ScalarShape { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] 13 | pub const fn new(min: u128, max: u128) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn new_const(value: u128) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/shape/symbol.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl SymbolShape { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 10 | [INFO] [stdout] 11 | pub fn new(name: &str) -> SymbolShape { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `empty` are never used [INFO] [stdout] --> src/shape/set.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl SetShape { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 22 | pub fn new(slots: [Shape; N]) -> SetShape { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub(crate) const fn empty() -> SetShape { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/shape/vector.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl VectorShape { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 13 | pub fn new(size: &ScalarShape, shape: &Shape) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/shape/structure.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl StructureShape { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new(arr: [(&str, &Shape); N]) -> StructureShape { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/shape/nominative.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl NominativeShape { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 16 | pub fn new(name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BinaryOperation` is never used [INFO] [stdout] --> src/op/operation.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait BinaryOperation { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BasicAdditionOperation` is never constructed [INFO] [stdout] --> src/op/addition.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct BasicAdditionOperation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.34s [INFO] running `Command { std: "docker" "inspect" "0296bc3a6dffd34c6f9db155dcec86dbf41dd614358f076580a335acc36cffc7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0296bc3a6dffd34c6f9db155dcec86dbf41dd614358f076580a335acc36cffc7", kill_on_drop: false }` [INFO] [stdout] 0296bc3a6dffd34c6f9db155dcec86dbf41dd614358f076580a335acc36cffc7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 675b7611acb3743057a0c7b0cda4214f2acc7efc31e92182143de53452d7cfe2 [INFO] running `Command { std: "docker" "start" "-a" "675b7611acb3743057a0c7b0cda4214f2acc7efc31e92182143de53452d7cfe2", kill_on_drop: false }` [INFO] [stderr] Compiling styc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ptr::write` [INFO] [stdout] --> src/shape/set.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ptr::write; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::op` [INFO] [stdout] --> src/shape/set.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::op; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SymbolShape` [INFO] [stdout] --> src/shape/set.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::shape::{Shape, SymbolShape}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `HashSet` [INFO] [stdout] --> src/shape/structure.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeMap, HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Map` [INFO] [stdout] --> src/shape/structure.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::Map; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::type_name_of_val` [INFO] [stdout] --> src/shape/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::any::type_name_of_val; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `library::*` [INFO] [stdout] --> src/shape/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use library::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pointer` [INFO] [stdout] --> src/shape/mod.rs:10:34 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fmt::{Debug, Formatter, Pointer}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Set`, `Scalar`, `Symbol`, `Vector`, `Structure`, and `Nominative` are never constructed [INFO] [stdout] --> src/shape/mod.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum Shape { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 25 | Set(SetShape), [INFO] [stdout] | ^^^ [INFO] [stdout] 26 | Scalar(ScalarShape), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 27 | Symbol(SymbolShape), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 28 | Vector(VectorShape), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 29 | Structure(StructureShape), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 30 | Nominative(NominativeShape), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Shape` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/shape/mod.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 33 | impl Shape { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 34 | pub const fn scalar(min: u128, max: u128) -> Shape { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub const fn scalar_const(value: u128) -> Shape { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn symbol(name: &str) -> Shape { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn set(slots: [Shape; N]) -> Shape { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn vector(size: &ScalarShape, shape: &Shape) -> Shape { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn nominative(name: &str) -> Shape { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn structure(arr: [(&str, &Shape); N]) -> Shape { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `U8` is never used [INFO] [stdout] --> src/shape/library.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const U8: Shape = Shape::scalar(u8::MIN as u128, u8::MAX as u128); [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `U16` is never used [INFO] [stdout] --> src/shape/library.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const U16: Shape = Shape::scalar(u16::MIN as u128, u16::MAX as u128); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `U32` is never used [INFO] [stdout] --> src/shape/library.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const U32: Shape = Shape::scalar(u32::MIN as u128, u32::MAX as u128); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `U64` is never used [INFO] [stdout] --> src/shape/library.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const U64: Shape = Shape::scalar(u64::MIN as u128, u64::MAX as u128); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `UNIT` is never used [INFO] [stdout] --> src/shape/library.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const UNIT: Shape = Shape::Set(SetShape::empty()); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `new_const` are never used [INFO] [stdout] --> src/shape/scalar.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl ScalarShape { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] 13 | pub const fn new(min: u128, max: u128) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn new_const(value: u128) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/shape/symbol.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl SymbolShape { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 10 | [INFO] [stdout] 11 | pub fn new(name: &str) -> SymbolShape { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `empty` are never used [INFO] [stdout] --> src/shape/set.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl SetShape { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 22 | pub fn new(slots: [Shape; N]) -> SetShape { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub(crate) const fn empty() -> SetShape { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/shape/vector.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl VectorShape { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 13 | pub fn new(size: &ScalarShape, shape: &Shape) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/shape/structure.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl StructureShape { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new(arr: [(&str, &Shape); N]) -> StructureShape { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/shape/nominative.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl NominativeShape { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 16 | pub fn new(name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BinaryOperation` is never used [INFO] [stdout] --> src/op/operation.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait BinaryOperation { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BasicAdditionOperation` is never constructed [INFO] [stdout] --> src/op/addition.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct BasicAdditionOperation; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::write` [INFO] [stdout] --> src/shape/set.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ptr::write; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::op` [INFO] [stdout] --> src/shape/set.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::op; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SymbolShape` [INFO] [stdout] --> src/shape/set.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::shape::{Shape, SymbolShape}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `HashSet` [INFO] [stdout] --> src/shape/structure.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{BTreeMap, HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::Map` [INFO] [stdout] --> src/shape/structure.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::Map; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::type_name_of_val` [INFO] [stdout] --> src/shape/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::any::type_name_of_val; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `library::*` [INFO] [stdout] --> src/shape/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use library::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pointer` [INFO] [stdout] --> src/shape/mod.rs:10:34 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fmt::{Debug, Formatter, Pointer}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Vector` and `Nominative` are never constructed [INFO] [stdout] --> src/shape/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum Shape { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 28 | Vector(VectorShape), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 29 | Structure(StructureShape), [INFO] [stdout] 30 | Nominative(NominativeShape), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Shape` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `scalar_const`, `vector`, and `nominative` are never used [INFO] [stdout] --> src/shape/mod.rs:38:18 [INFO] [stdout] | [INFO] [stdout] 33 | impl Shape { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub const fn scalar_const(value: u128) -> Shape { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn vector(size: &ScalarShape, shape: &Shape) -> Shape { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn nominative(name: &str) -> Shape { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `U8` is never used [INFO] [stdout] --> src/shape/library.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const U8: Shape = Shape::scalar(u8::MIN as u128, u8::MAX as u128); [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `U16` is never used [INFO] [stdout] --> src/shape/library.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const U16: Shape = Shape::scalar(u16::MIN as u128, u16::MAX as u128); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `U32` is never used [INFO] [stdout] --> src/shape/library.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const U32: Shape = Shape::scalar(u32::MIN as u128, u32::MAX as u128); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `U64` is never used [INFO] [stdout] --> src/shape/library.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const U64: Shape = Shape::scalar(u64::MIN as u128, u64::MAX as u128); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `UNIT` is never used [INFO] [stdout] --> src/shape/library.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const UNIT: Shape = Shape::Set(SetShape::empty()); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_const` is never used [INFO] [stdout] --> src/shape/scalar.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl ScalarShape { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn new_const(value: u128) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `empty` is never used [INFO] [stdout] --> src/shape/set.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 21 | impl SetShape { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub(crate) const fn empty() -> SetShape { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/shape/vector.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl VectorShape { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 13 | pub fn new(size: &ScalarShape, shape: &Shape) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/shape/nominative.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl NominativeShape { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 16 | pub fn new(name: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.63s [INFO] running `Command { std: "docker" "inspect" "675b7611acb3743057a0c7b0cda4214f2acc7efc31e92182143de53452d7cfe2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "675b7611acb3743057a0c7b0cda4214f2acc7efc31e92182143de53452d7cfe2", kill_on_drop: false }` [INFO] [stdout] 675b7611acb3743057a0c7b0cda4214f2acc7efc31e92182143de53452d7cfe2