[INFO] cloning repository https://github.com/puzzzzzzle/rust_study [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/puzzzzzzle/rust_study" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpuzzzzzzle%2Frust_study", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpuzzzzzzle%2Frust_study'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 25496235be91a5c763f0717eaadb59dac8573773 [INFO] checking puzzzzzzle/rust_study against try#173780a87744406b7489b28349c0176f14bb3881 for pr-135841 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpuzzzzzzle%2Frust_study" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/puzzzzzzle/rust_study on toolchain 173780a87744406b7489b28349c0176f14bb3881 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+173780a87744406b7489b28349c0176f14bb3881" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/puzzzzzzle/rust_study [INFO] finished tweaking git repo https://github.com/puzzzzzzle/rust_study [INFO] tweaked toml for git repo https://github.com/puzzzzzzle/rust_study written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/puzzzzzzle/rust_study 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" "+173780a87744406b7489b28349c0176f14bb3881" "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 cxxbridge-flags v1.0.121 [INFO] [stderr] Downloaded cxx-build v1.0.121 [INFO] [stderr] Downloaded function_name-proc-macro v0.3.0 [INFO] [stderr] Downloaded function_name v0.3.0 [INFO] [stderr] Downloaded cxx-gen v0.7.121 [INFO] [stderr] Downloaded cxxbridge-macro v1.0.121 [INFO] [stderr] Downloaded cxx v1.0.121 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+173780a87744406b7489b28349c0176f14bb3881" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3f69a9562234ace4859c135a4f48b982e4dbe54d333e551593a61df13845db8a [INFO] running `Command { std: "docker" "start" "-a" "3f69a9562234ace4859c135a4f48b982e4dbe54d333e551593a61df13845db8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3f69a9562234ace4859c135a4f48b982e4dbe54d333e551593a61df13845db8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f69a9562234ace4859c135a4f48b982e4dbe54d333e551593a61df13845db8a", kill_on_drop: false }` [INFO] [stdout] 3f69a9562234ace4859c135a4f48b982e4dbe54d333e551593a61df13845db8a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+173780a87744406b7489b28349c0176f14bb3881" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c15a3f4ae4937fea74918f4fd53738a22b819b4f17b331e1a286b4bd6899b79d [INFO] running `Command { std: "docker" "start" "-a" "c15a3f4ae4937fea74918f4fd53738a22b819b4f17b331e1a286b4bd6899b79d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde v1.0.198 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling thiserror v1.0.59 [INFO] [stderr] Compiling cc v1.0.95 [INFO] [stderr] Compiling serde_json v1.0.116 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking destructure_traitobject v0.2.0 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling anyhow v1.0.82 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking unsafe-any-ors v1.0.0 [INFO] [stderr] Checking unsafe-libyaml v0.2.11 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking typemap-ors v1.0.0 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking log-mdc v0.1.0 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking arc-swap v1.7.1 [INFO] [stderr] Compiling proc_macros_trait v0.1.0 (/opt/rustwide/workdir/proc_macros_trait) [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling either v1.11.0 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling prettyplease v0.2.19 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Checking ordered-float v2.10.1 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling libloading v0.8.3 [INFO] [stderr] Compiling clang-sys v1.7.0 [INFO] [stderr] Compiling unicode-width v0.1.11 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Checking thread-id v4.2.1 [INFO] [stderr] Compiling link-cplusplus v1.0.9 [INFO] [stderr] Compiling target-lexicon v0.12.14 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.2 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling cxxbridge-flags v1.0.121 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling cxx v1.0.121 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling backtrace v0.3.71 [INFO] [stderr] Compiling is-terminal v0.4.12 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling gimli v0.28.1 [INFO] [stderr] Compiling miniz_oxide v0.7.2 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling object v0.32.2 [INFO] [stderr] Compiling indoc v1.0.9 [INFO] [stderr] Compiling rustversion v1.0.15 [INFO] [stderr] Compiling pyo3-build-config v0.19.2 [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Compiling rustc-demangle v0.1.23 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling smawk v0.3.2 [INFO] [stderr] Compiling bindgen v0.69.4 [INFO] [stderr] Compiling autocxx-bindgen v0.65.1 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling is_ci v1.2.0 [INFO] [stderr] Compiling unicode-linebreak v0.1.5 [INFO] [stderr] Compiling supports-color v2.1.0 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling textwrap v0.15.2 [INFO] [stderr] Compiling supports-unicode v2.1.0 [INFO] [stderr] Compiling supports-hyperlinks v2.1.0 [INFO] [stderr] Compiling terminal_size v0.1.17 [INFO] [stderr] Compiling scratch v1.0.7 [INFO] [stderr] Compiling owo-colors v3.5.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling fastrand v2.0.2 [INFO] [stderr] Checking num-iter v0.1.44 [INFO] [stderr] Compiling pyo3-ffi v0.19.2 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling rust_call_c_manul v0.1.0 (/opt/rustwide/workdir/rust_with_c/rust_with_c_manul) [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling pyo3 v0.19.2 [INFO] [stderr] Compiling pyo3-macros-backend v0.19.2 [INFO] [stderr] Checking guess_game v0.1.0 (/opt/rustwide/workdir/module_test/guess_game) [INFO] [stderr] Compiling autocxx v0.26.0 [INFO] [stderr] Checking unindent v0.1.11 [INFO] [stderr] Compiling function_name-proc-macro v0.3.0 [INFO] [stderr] Checking c_call_rust_auto v0.1.0 (/opt/rustwide/workdir/rust_with_c/c_call_rust_auto) [INFO] [stderr] Checking num-bigint v0.1.44 [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stderr] Checking function_name v0.3.0 [INFO] [stderr] Checking hello_mod v0.1.0 (/opt/rustwide/workdir/module_test/hello_mod) [INFO] [stdout] warning: function `hello` is never used [INFO] [stdout] --> module_test/hello_mod/src/hello_dir/hello_dir_2.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn hello() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello_private` is never used [INFO] [stdout] --> module_test/hello_mod/src/hello_sub.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | fn hello_private() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello` is never used [INFO] [stdout] --> module_test/hello_mod/src/hello_dir/hello_dir_2.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn hello() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello_private` is never used [INFO] [stdout] --> module_test/hello_mod/src/hello_sub.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | fn hello_private() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling cxx-gen v0.7.121 [INFO] [stderr] Compiling cxx-build v1.0.121 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling aquamarine v0.1.12 [INFO] [stderr] Compiling strum_macros v0.24.3 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling addr2line v0.21.0 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking stopwatch v0.0.7 [INFO] [stdout] warning: extern declarations without an explicit ABI are deprecated [INFO] [stdout] --> rust_with_c/rust_with_c_manul/src/lib.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | extern [INFO] [stdout] | ^^^^^^ help: explicitly specify the C ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(missing_abi)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern declarations without an explicit ABI are deprecated [INFO] [stdout] --> rust_with_c/rust_with_c_manul/src/lib.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | extern [INFO] [stdout] | ^^^^^^ help: explicitly specify the C ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(missing_abi)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Compiling serde_derive v1.0.198 [INFO] [stderr] Compiling thiserror-impl v1.0.59 [INFO] [stderr] Compiling proc_macros v0.1.0 (/opt/rustwide/workdir/proc_macros) [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling cxxbridge-macro v1.0.121 [INFO] [stderr] Compiling miette-derive v5.10.0 [INFO] [stderr] Compiling backtrace-ext v0.2.1 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stdout] warning: variable `p` is assigned to, but never used [INFO] [stdout] --> proc_macros/tests/test_trace_var.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let mut p = 1; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_p` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling miette v5.10.0 [INFO] [stderr] Compiling pyo3-macros v0.19.2 [INFO] [stderr] Compiling use_cxx_lib v0.1.0 (/opt/rustwide/workdir/rust_with_c/use_cxx_lib) [INFO] [stderr] Checking moveit v0.6.0 [INFO] [stderr] Checking pyo3_test v0.1.0 (/opt/rustwide/workdir/rust_with_python/pyo3_test) [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking serde-value v0.7.0 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Compiling rust_call_c_auto v0.1.0 (/opt/rustwide/workdir/rust_with_c/rust_call_c_auto) [INFO] [stderr] Checking log4rs v1.3.0 [INFO] [stderr] Compiling autocxx-parser v0.26.0 [INFO] [stderr] Compiling autocxx-engine v0.26.0 [INFO] [stderr] Compiling autocxx-macro v0.26.0 [INFO] [stderr] Checking common v0.1.0 (/opt/rustwide/workdir/common) [INFO] [stderr] Checking common_concepts v0.1.0 (/opt/rustwide/workdir/rust_language) [INFO] [stdout] warning: unused import: `std::pin::Pin` [INFO] [stdout] --> rust_language/examples/pin_test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::pin::Pin; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> rust_language/examples/unsafe_borrow_test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `{integer}: SampleRange<_>` is not satisfied [INFO] [stdout] --> rust_language/examples/dbg_test.rs:5:50 [INFO] [stdout] | [INFO] [stdout] 5 | let mut a = rand::thread_rng().gen_range(1, 101); [INFO] [stdout] | --------- ^ the trait `SampleRange<_>` is not implemented for `{integer}` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `SampleRange`: [INFO] [stdout] RangeInclusive [INFO] [stdout] std::ops::Range [INFO] [stdout] note: required by a bound in `gen_range` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.8.5/src/rng.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 129 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | --------- required by a bound in this associated function [INFO] [stdout] ... [INFO] [stdout] 132 | R: SampleRange [INFO] [stdout] | ^^^^^^^^^^^^^^ required by this bound in `Rng::gen_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> rust_language/examples/unsafe_borrow_test.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::future::Lazy` [INFO] [stdout] --> rust_language/examples/unsafe_borrow_test.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use futures::future::Lazy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> rust_language/examples/unsafe_borrow_test.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> rust_language/examples/dbg_test.rs:5:40 [INFO] [stdout] | [INFO] [stdout] 5 | let mut a = rand::thread_rng().gen_range(1, 101); [INFO] [stdout] | ^^^^^^^^^ --- unexpected argument #2 of type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.8.5/src/rng.rs:129:8 [INFO] [stdout] | [INFO] [stdout] 129 | fn gen_range(&mut self, range: R) -> T [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 5 - let mut a = rand::thread_rng().gen_range(1, 101); [INFO] [stdout] 5 + let mut a = rand::thread_rng().gen_range(1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `OnceCell` [INFO] [stdout] --> rust_language/examples/static_test.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::{OnceCell, RefCell}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `common_concepts` (example "dbg_test") due to 2 previous errors [INFO] [stdout] warning: unused import: `futures::executor::block_on` [INFO] [stdout] --> rust_language/examples/co_test.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use futures::executor::block_on; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> rust_language/examples/unsafe_borrow_test.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | struct Point(i32, i32); [INFO] [stdout] | ----- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = note: `Point` has derived impls for the traits `Default` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 | struct Point((), i32); [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::linux::raw::stat` [INFO] [stdout] --> rust_language/examples/static_test.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::os::linux::raw::stat; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> rust_language/examples/static_test.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Mutex` [INFO] [stdout] --> rust_language/examples/static_test.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StaticData` is never constructed [INFO] [stdout] --> rust_language/examples/unsafe_borrow_test.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | struct StaticData [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lazy_static::lazy_static` [INFO] [stdout] --> rust_language/examples/static_test.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use lazy_static::lazy_static; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `std::os::linux::raw::stat`: these type aliases are no longer supported by the standard library, the `libc` crate on crates.io should be used instead for the correct definitions [INFO] [stdout] --> rust_language/examples/static_test.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use std::os::linux::raw::stat; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_user` is never used [INFO] [stdout] --> rust_language/examples/c05_struct_test.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn build_user(username: String) -> User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `area` is never used [INFO] [stdout] --> rust_language/examples/c05_struct_test.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 59 | impl Rectangle { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 60 | fn area(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `area` is never used [INFO] [stdout] --> rust_language/examples/c05_struct_test.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn area(rectangle: &Rectangle) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `combine_vecs` is never used [INFO] [stdout] --> rust_language/examples/c05_struct_test.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn combine_vecs(v: Vec, u: Vec) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Result` and `anyhow` [INFO] [stdout] --> rust_language/examples/c07-1_error_handle.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{anyhow, Result}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `common` [INFO] [stdout] --> rust_language/examples/c07-1_error_handle.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use common; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::*` [INFO] [stdout] --> rust_language/examples/c07-1_error_handle.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello` is never used [INFO] [stdout] --> rust_language/examples/co_test.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | async fn hello() -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello_1` is never used [INFO] [stdout] --> rust_language/examples/co_test.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | async fn hello_1() -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello_1_2` is never used [INFO] [stdout] --> rust_language/examples/co_test.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | async fn hello_1_2() -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hello_latter` is never used [INFO] [stdout] --> rust_language/examples/co_test.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | async fn hello_latter() -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `i1`, `d1`, and `s1` are never read [INFO] [stdout] --> rust_language/examples/static_test.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct StaticData [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 9 | { [INFO] [stdout] 10 | i1: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 11 | d1: f64, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | s1: String, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `StaticData` has a derived impl for the trait `Debug`, 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: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> rust_language/examples/static_test.rs:47:33 [INFO] [stdout] | [INFO] [stdout] 47 | if let Some(gbl_data) = &GLB_DATA { [INFO] [stdout] | ^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 47 | if let Some(gbl_data) = &raw const GLB_DATA { [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IpAddrKind` is never used [INFO] [stdout] --> rust_language/examples/c04_enum_test.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | enum IpAddrKind { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IpAddr` is never constructed [INFO] [stdout] --> rust_language/examples/c04_enum_test.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | struct IpAddr { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UnknownIpAddr` is never constructed [INFO] [stdout] --> rust_language/examples/c04_enum_test.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | struct UnknownIpAddr { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IpAddr` is never used [INFO] [stdout] --> rust_language/examples/c04_enum_test.rs:57:10 [INFO] [stdout] | [INFO] [stdout] 57 | enum IpAddr { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c15a3f4ae4937fea74918f4fd53738a22b819b4f17b331e1a286b4bd6899b79d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c15a3f4ae4937fea74918f4fd53738a22b819b4f17b331e1a286b4bd6899b79d", kill_on_drop: false }` [INFO] [stdout] c15a3f4ae4937fea74918f4fd53738a22b819b4f17b331e1a286b4bd6899b79d