[INFO] cloning repository https://github.com/kpietak/rust-lecture-examples [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kpietak/rust-lecture-examples" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkpietak%2Frust-lecture-examples", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkpietak%2Frust-lecture-examples'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a7de7b4953d8e8b4d25744628bb8a839acd9c32a [INFO] testing kpietak/rust-lecture-examples against master#b03b3a7ec92682be2917540b679478d41c95a30c for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkpietak%2Frust-lecture-examples" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kpietak/rust-lecture-examples [INFO] finished tweaking git repo https://github.com/kpietak/rust-lecture-examples [INFO] tweaked toml for git repo https://github.com/kpietak/rust-lecture-examples written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kpietak/rust-lecture-examples on toolchain b03b3a7ec92682be2917540b679478d41c95a30c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kpietak/rust-lecture-examples already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1b17b96d3a5b4bae6ef89508267a511e4199e913c8c02ebe2edabf0e8f9ce043 [INFO] running `Command { std: "docker" "start" "-a" "1b17b96d3a5b4bae6ef89508267a511e4199e913c8c02ebe2edabf0e8f9ce043", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1b17b96d3a5b4bae6ef89508267a511e4199e913c8c02ebe2edabf0e8f9ce043", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b17b96d3a5b4bae6ef89508267a511e4199e913c8c02ebe2edabf0e8f9ce043", kill_on_drop: false }` [INFO] [stdout] 1b17b96d3a5b4bae6ef89508267a511e4199e913c8c02ebe2edabf0e8f9ce043 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e76e6a7ca03c0157f35b6f7bc46f886d028e78595ada08ae7c3796596d599838 [INFO] running `Command { std: "docker" "start" "-a" "e76e6a7ca03c0157f35b6f7bc46f886d028e78595ada08ae7c3796596d599838", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling cc v1.0.88 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling bitflags v2.4.2 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling zerocopy v0.8.0-alpha.6 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling tower-layer v0.3.2 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Compiling rustls-pki-types v1.5.0 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling serde_json v1.0.116 [INFO] [stderr] Compiling anyhow v1.0.82 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling indexmap v2.2.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling encoding_rs v0.8.33 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling rustls-pemfile v2.1.2 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling socket2 v0.5.6 [INFO] [stderr] Compiling openssl-sys v0.9.101 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling getrandom v0.2.14 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling tokio v1.36.0 [INFO] [stderr] Compiling http-body v1.0.0 [INFO] [stderr] Compiling http-body-util v0.1.1 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling rand_core v0.9.0-alpha.1 [INFO] [stderr] Compiling rand_chacha v0.9.0-alpha.1 [INFO] [stderr] Compiling rand v0.9.0-alpha.1 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling h2 v0.4.4 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling hyper v1.3.1 [INFO] [stderr] Compiling hyper-util v0.1.3 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.4 [INFO] [stderr] Compiling rust_lecture_examples v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 34.69s [INFO] running `Command { std: "docker" "inspect" "e76e6a7ca03c0157f35b6f7bc46f886d028e78595ada08ae7c3796596d599838", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e76e6a7ca03c0157f35b6f7bc46f886d028e78595ada08ae7c3796596d599838", kill_on_drop: false }` [INFO] [stdout] e76e6a7ca03c0157f35b6f7bc46f886d028e78595ada08ae7c3796596d599838 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 504d181331f621af80cfcc7991a20869ac34faee1109ad03d28603d8279feb12 [INFO] running `Command { std: "docker" "start" "-a" "504d181331f621af80cfcc7991a20869ac34faee1109ad03d28603d8279feb12", kill_on_drop: false }` [INFO] [stderr] Compiling rust_lecture_examples v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `process_int` is never used [INFO] [stdout] --> examples/functions.rs:120:4 [INFO] [stdout] | [INFO] [stdout] 120 | fn process_int(a: i32, b: i32, f: F) -> i32 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::space::ship::Spaceship` [INFO] [stdout] --> examples/modules.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::space::ship::Spaceship; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ex2` is never used [INFO] [stdout] --> examples/lifetime.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn ex2() { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Introduction` is never constructed [INFO] [stdout] --> examples/lifetime.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct Introduction<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print` is never used [INFO] [stdout] --> examples/lifetime.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 46 | impl<'a> Introduction<'a> { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] 47 | fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_sample_text` is never used [INFO] [stdout] --> examples/lifetime.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn get_sample_text() -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> examples/basics.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let s2 = s1; // the value is moved from s1 to s2, s1 is no longer valid [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `borrow` is never used [INFO] [stdout] --> examples/collections.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn borrow(i : &i32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PositiveBackend` is never constructed [INFO] [stdout] --> examples/static-dispatch-benchmark.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct PositiveBackend; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `accelerate` is never used [INFO] [stdout] --> examples/structures.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Spaceship { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | fn accelerate(&mut self, acc : i32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `FlyingObject` is never used [INFO] [stdout] --> examples/structures.rs:77:7 [INFO] [stdout] | [INFO] [stdout] 77 | trait FlyingObject { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `shoot` is never used [INFO] [stdout] --> examples/structures.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 98 | impl Asteroid { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | fn shoot(&self) -> Missile { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> examples/errors.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_WIDTH` is never used [INFO] [stdout] --> examples/errors.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const DEFAULT_WIDTH: f64 = 1.0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_HEIGHT` is never used [INFO] [stdout] --> examples/errors.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const DEFAULT_HEIGHT: f64 = 1.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `area`, `convert_to_int`, and `read_from_file` are never used [INFO] [stdout] --> examples/errors.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl Rectangle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 18 | fn new(width : f64, height : f64) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn area(&self) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | fn convert_to_int(&self) -> Result<(u32, u32)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | fn read_from_file(path : &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bigger` is never used [INFO] [stdout] --> examples/errors.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn bigger(w1: f64, h1 : f64, w2 : f64, h2 : f64) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.97s [INFO] running `Command { std: "docker" "inspect" "504d181331f621af80cfcc7991a20869ac34faee1109ad03d28603d8279feb12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "504d181331f621af80cfcc7991a20869ac34faee1109ad03d28603d8279feb12", kill_on_drop: false }` [INFO] [stdout] 504d181331f621af80cfcc7991a20869ac34faee1109ad03d28603d8279feb12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] fd9fcd6b1700e0096ef7a23a930309c0390c6aa95fcce2c9a1974660ebeaac93 [INFO] running `Command { std: "docker" "start" "-a" "fd9fcd6b1700e0096ef7a23a930309c0390c6aa95fcce2c9a1974660ebeaac93", kill_on_drop: false }` [INFO] [stderr] warning: struct `PositiveBackend` is never constructed [INFO] [stderr] --> examples/static-dispatch-benchmark.rs:8:8 [INFO] [stderr] | [INFO] [stderr] 8 | struct PositiveBackend; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `rust_lecture_examples` (example "static-dispatch-benchmark") generated 1 warning [INFO] [stderr] warning: method `accelerate` is never used [INFO] [stderr] --> examples/structures.rs:30:8 [INFO] [stderr] | [INFO] [stderr] 18 | impl Spaceship { [INFO] [stderr] | -------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 30 | fn accelerate(&mut self, acc : i32) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait `FlyingObject` is never used [INFO] [stderr] --> examples/structures.rs:77:7 [INFO] [stderr] | [INFO] [stderr] 77 | trait FlyingObject { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `shoot` is never used [INFO] [stderr] --> examples/structures.rs:103:8 [INFO] [stderr] | [INFO] [stderr] 98 | impl Asteroid { [INFO] [stderr] | ------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 103 | fn shoot(&self) -> Missile { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `ex2` is never used [INFO] [stderr] --> examples/lifetime.rs:33:4 [INFO] [stderr] | [INFO] [stderr] 33 | fn ex2() { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct `Introduction` is never constructed [INFO] [stderr] --> examples/lifetime.rs:42:8 [INFO] [stderr] | [INFO] [stderr] 42 | struct Introduction<'a> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `print` is never used [INFO] [stderr] --> examples/lifetime.rs:47:8 [INFO] [stderr] | [INFO] [stderr] 46 | impl<'a> Introduction<'a> { [INFO] [stderr] | ------------------------- method in this implementation [INFO] [stderr] 47 | fn print(&self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_sample_text` is never used [INFO] [stderr] --> examples/lifetime.rs:53:4 [INFO] [stderr] | [INFO] [stderr] 53 | fn get_sample_text() -> &'static str { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `process_int` is never used [INFO] [stderr] --> examples/functions.rs:120:4 [INFO] [stderr] | [INFO] [stderr] 120 | fn process_int(a: i32, b: i32, f: F) -> i32 [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct `Rectangle` is never constructed [INFO] [stderr] --> examples/errors.rs:10:8 [INFO] [stderr] | [INFO] [stderr] 10 | struct Rectangle { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant `DEFAULT_WIDTH` is never used [INFO] [stderr] --> examples/errors.rs:15:7 [INFO] [stderr] | [INFO] [stderr] 15 | const DEFAULT_WIDTH: f64 = 1.0; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `DEFAULT_HEIGHT` is never used [INFO] [stderr] --> examples/errors.rs:16:7 [INFO] [stderr] | [INFO] [stderr] 16 | const DEFAULT_HEIGHT: f64 = 1.0; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `area`, `convert_to_int`, and `read_from_file` are never used [INFO] [stderr] --> examples/errors.rs:18:8 [INFO] [stderr] | [INFO] [stderr] 17 | impl Rectangle { [INFO] [stderr] | -------------- associated items in this implementation [INFO] [stderr] 18 | fn new(width : f64, height : f64) -> Result { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 26 | fn area(&self) -> f64 { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 30 | fn convert_to_int(&self) -> Result<(u32, u32)> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 42 | fn read_from_file(path : &str) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `bigger` is never used [INFO] [stderr] --> examples/errors.rs:59:4 [INFO] [stderr] | [INFO] [stderr] 59 | fn bigger(w1: f64, h1 : f64, w2 : f64, h2 : f64) -> Result { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::space::ship::Spaceship` [INFO] [stderr] --> examples/modules.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::space::ship::Spaceship; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `borrow` is never used [INFO] [stderr] --> examples/collections.rs:7:4 [INFO] [stderr] | [INFO] [stderr] 7 | fn borrow(i : &i32) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s2` [INFO] [stderr] --> examples/basics.rs:4:9 [INFO] [stderr] | [INFO] [stderr] 4 | let s2 = s1; // the value is moved from s1 to s2, s1 is no longer valid [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `rust_lecture_examples` (example "structures") generated 3 warnings [INFO] [stderr] warning: `rust_lecture_examples` (example "lifetime") generated 4 warnings [INFO] [stderr] warning: `rust_lecture_examples` (example "functions") generated 1 warning [INFO] [stderr] warning: `rust_lecture_examples` (example "errors") generated 5 warnings [INFO] [stderr] warning: `rust_lecture_examples` (example "modules") generated 1 warning (run `cargo fix --example "modules"` to apply 1 suggestion) [INFO] [stderr] warning: `rust_lecture_examples` (example "collections") generated 1 warning [INFO] [stderr] warning: `rust_lecture_examples` (example "basics") generated 1 warning [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_lecture_examples-a61e51b9e9670715) [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" "fd9fcd6b1700e0096ef7a23a930309c0390c6aa95fcce2c9a1974660ebeaac93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd9fcd6b1700e0096ef7a23a930309c0390c6aa95fcce2c9a1974660ebeaac93", kill_on_drop: false }` [INFO] [stdout] fd9fcd6b1700e0096ef7a23a930309c0390c6aa95fcce2c9a1974660ebeaac93