[INFO] cloning repository https://github.com/yew1eb/rustlab [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yew1eb/rustlab" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyew1eb%2Frustlab", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyew1eb%2Frustlab'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3ccf8588ba87d3ef5505dfdf8ef1bf9c93fa192e [INFO] checking yew1eb/rustlab against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyew1eb%2Frustlab" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yew1eb/rustlab on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yew1eb/rustlab [INFO] finished tweaking git repo https://github.com/yew1eb/rustlab [INFO] tweaked toml for git repo https://github.com/yew1eb/rustlab written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/yew1eb/rustlab already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] cfb3ef89f8b97a19e7a5a306173fede675b2ba9bddc80431ae29880dcb47918d [INFO] running `Command { std: "docker" "start" "-a" "cfb3ef89f8b97a19e7a5a306173fede675b2ba9bddc80431ae29880dcb47918d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cfb3ef89f8b97a19e7a5a306173fede675b2ba9bddc80431ae29880dcb47918d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfb3ef89f8b97a19e7a5a306173fede675b2ba9bddc80431ae29880dcb47918d", kill_on_drop: false }` [INFO] [stdout] cfb3ef89f8b97a19e7a5a306173fede675b2ba9bddc80431ae29880dcb47918d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a7edd353eb51bdb94e61b3dffc99de60ff1082717e8b18ec82b892265ef685cb [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "a7edd353eb51bdb94e61b3dffc99de60ff1082717e8b18ec82b892265ef685cb", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] memchr v2.4.0: use_std [INFO] [stderr] memchr v2.4.0 (as host dependency): default [INFO] [stderr] regex v1.5.3 (as host dependency): aho-corasick, default, memchr, perf, perf-cache, perf-dfa, perf-inline, perf-literal [INFO] [stderr] regex-syntax v0.6.25 (as host dependency): default [INFO] [stderr] standback v0.2.11 (as host dependency): std [INFO] [stderr] tokio v0.2.22: winapi [INFO] [stderr] [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking futures-core v0.3.7 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking futures-sink v0.3.7 [INFO] [stderr] Checking futures-io v0.3.7 [INFO] [stderr] Checking once_cell v1.4.1 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking adler v0.2.3 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking gimli v0.23.0 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking rustc-demangle v0.1.18 [INFO] [stderr] Checking object v0.22.0 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling const_fn v0.4.3 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Compiling encoding_rs v0.8.26 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling shlex v0.1.1 [INFO] [stderr] Checking language-tags v0.2.2 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking treeline v0.1.0 [INFO] [stderr] Checking normalize-line-endings v0.3.0 [INFO] [stderr] Checking difference v2.0.0 [INFO] [stderr] Checking home v0.5.3 [INFO] [stderr] Checking mylib v0.1.0 (/tmp/fixit/example-projects/trpl-webserver/mylib) [INFO] [stderr] Migrating example-projects/trpl-webserver/mylib/src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Checking rustlab v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Compiling standback v0.2.11 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling time v0.2.22 [INFO] [stderr] Compiling cookie v0.14.3 [INFO] [stdout] warning: field is never read: `id` [INFO] [stdout] --> example-projects/trpl-webserver/mylib/src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | id: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking lock_api v0.4.1 [INFO] [stderr] Checking instant v0.1.8 [INFO] [stderr] Checking http v0.2.1 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stdout] warning: field is never read: `id` [INFO] [stdout] --> example-projects/trpl-webserver/mylib/src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | id: usize, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking futures-channel v0.3.7 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking futures-task v0.3.7 [INFO] [stderr] Compiling libloading v0.7.0 [INFO] [stderr] Checking tinyvec v1.0.1 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking predicates-tree v1.0.2 [INFO] [stderr] Checking log v0.4.11 [INFO] [stderr] Compiling clang-sys v1.2.0 [INFO] [stderr] Checking trpl-webserver v0.1.0 (/tmp/fixit/example-projects/trpl-webserver) [INFO] [stderr] Migrating example-projects/trpl-webserver/src/main.rs from 2018 edition to 2021 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Compiling mysqlclient-sys v0.2.4 [INFO] [stderr] Checking regex-automata v0.1.9 [INFO] [stderr] Checking tracing v0.1.21 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Compiling jobserver v0.1.21 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.35 [INFO] [stderr] Checking signal-hook-registry v1.2.2 [INFO] [stderr] Checking parking_lot_core v0.8.0 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking socket2 v0.3.15 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Compiling bindgen v0.57.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking addr2line v0.14.0 [INFO] [stderr] Checking bstr v0.2.16 [INFO] [stderr] Compiling cc v1.0.61 [INFO] [stderr] Checking resolv-conf v0.6.3 [INFO] [stderr] Checking parking_lot v0.11.0 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking regex v1.5.3 [INFO] [stderr] Checking sha-1 v0.9.2 [INFO] [stderr] Checking backtrace v0.3.54 [INFO] [stderr] Checking flate2 v1.0.19 [INFO] [stderr] Checking crossbeam-channel v0.4.4 [INFO] [stderr] Checking scheduled-thread-pool v0.2.5 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking float-cmp v0.8.0 [INFO] [stderr] Checking r2d2 v0.8.9 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking tokio v0.2.22 [INFO] [stderr] Compiling cexpr v0.4.0 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking predicates v1.0.8 [INFO] [stderr] Checking env_logger v0.8.1 [INFO] [stderr] Checking basic-exercises v0.1.0 (/tmp/fixit/basic-exercises) [INFO] [stderr] Migrating basic-exercises/src/main.rs from 2018 edition to 2021 [INFO] [stderr] Compiling brotli-sys v0.3.2 [INFO] [stderr] Fixed basic-exercises/src/std_misc_channels_base.rs (3 fixes) [INFO] [stderr] Fixed basic-exercises/src/std_misc_io_fs_base.rs (2 fixes) [INFO] [stderr] Fixed basic-exercises/src/closure_base.rs (1 fix) [INFO] [stderr] Fixed basic-exercises/src/std_hashmap_base.rs (1 fix) [INFO] [stderr] Fixed basic-exercises/src/std_misc_path_file_base.rs (4 fixes) [INFO] [stderr] Fixed basic-exercises/src/std_misc_env_arg_base.rs (1 fix) [INFO] [stderr] Fixed basic-exercises/src/std_misc_process_base.rs (3 fixes) [INFO] [stderr] Fixed basic-exercises/src/std_result_base.rs (1 fix) [INFO] [stderr] Fixed basic-exercises/src/std_hashset_base.rs (1 fix) [INFO] [stderr] Fixed basic-exercises/src/std_box_base.rs (1 fix) [INFO] [stderr] Fixed basic-exercises/src/std_misc_threads_base.rs (1 fix) [INFO] [stderr] Fixed basic-exercises/src/destructuring_base.rs (2 fixes) [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> basic-exercises/src/macros_base.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / macro_rules! say_hello { [INFO] [stdout] 2 | | // `()` 表示此宏不接受任何参数。 [INFO] [stdout] 3 | | () => { [INFO] [stdout] 4 | | // 此宏将会展开成这个代码块里面的内容。 [INFO] [stdout] 5 | | println!("Hello!"); [INFO] [stdout] 6 | | }; [INFO] [stdout] 7 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> basic-exercises/src/macros_base.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | / macro_rules! print_result { [INFO] [stdout] 27 | | // 此宏接受一个 `expr` 类型的表达式,将它转换成一个字符串, [INFO] [stdout] 28 | | // 并伴随着表达式的结果。 [INFO] [stdout] 29 | | // `expr` 指示符用于表达式。 [INFO] [stdout] ... | [INFO] [stdout] 34 | | }; [INFO] [stdout] 35 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> basic-exercises/src/macros_base.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | / macro_rules! test { [INFO] [stdout] 40 | | // 参数不需要使用逗号隔开。 [INFO] [stdout] 41 | | // 可以使用任意模板(原文:Any template can be used!)! [INFO] [stdout] 42 | | ($left:expr; and $right:expr) => { [INFO] [stdout] ... | [INFO] [stdout] 58 | | }; [INFO] [stdout] 59 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> basic-exercises/src/macros_base.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | / macro_rules! find_min { [INFO] [stdout] 63 | | // 基本情形: [INFO] [stdout] 64 | | ($x:expr) => ($x); [INFO] [stdout] 65 | | // `$x` 后面跟着至少一个 `$y,` [INFO] [stdout] ... | [INFO] [stdout] 69 | | ) [INFO] [stdout] 70 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking assert_cmd v1.0.3 [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mem` [INFO] [stdout] --> basic-exercises/src/std_box_base.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | mem::size_of_val(&point) [INFO] [stdout] | ^^^ use of undeclared crate or module `mem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mem` [INFO] [stdout] --> basic-exercises/src/std_box_base.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | mem::size_of_val(&rectangle) [INFO] [stdout] | ^^^ use of undeclared crate or module `mem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mem` [INFO] [stdout] --> basic-exercises/src/std_box_base.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | mem::size_of_val(&boxed_point) [INFO] [stdout] | ^^^ use of undeclared crate or module `mem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mem` [INFO] [stdout] --> basic-exercises/src/std_box_base.rs:65:13 [INFO] [stdout] | [INFO] [stdout] 65 | mem::size_of_val(&boxed_rectangle) [INFO] [stdout] | ^^^ use of undeclared crate or module `mem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mem` [INFO] [stdout] --> basic-exercises/src/std_box_base.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | mem::size_of_val(&box_in_a_box) [INFO] [stdout] | ^^^ use of undeclared crate or module `mem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mem` [INFO] [stdout] --> basic-exercises/src/std_box_base.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | mem::size_of_val(&unboxed_point) [INFO] [stdout] | ^^^ use of undeclared crate or module `mem` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mpsc` [INFO] [stdout] --> basic-exercises/src/std_misc_channels_base.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 15 | let (tx, rx) = mpsc::channel::(); [INFO] [stdout] | ^^^^ use of undeclared crate or module `mpsc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `thread` [INFO] [stdout] --> basic-exercises/src/std_misc_channels_base.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | thread::spawn(move || { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fs` [INFO] [stdout] --> basic-exercises/src/std_misc_io_fs_base.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | match fs::create_dir("a") { [INFO] [stdout] | ^^ use of undeclared crate or module `fs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fs` [INFO] [stdout] --> basic-exercises/src/std_misc_io_fs_base.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | fs::create_dir_all("a/c/d").unwrap_or_else(|why| { [INFO] [stdout] | ^^ use of undeclared crate or module `fs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `unix` [INFO] [stdout] --> basic-exercises/src/std_misc_io_fs_base.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | unix::fs::symlink("../b.txt", "a/c/b.txt").unwrap_or_else(|why| { [INFO] [stdout] | ^^^^ use of undeclared crate or module `unix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fs` [INFO] [stdout] --> basic-exercises/src/std_misc_io_fs_base.rs:77:15 [INFO] [stdout] | [INFO] [stdout] 77 | match fs::read_dir("a") { [INFO] [stdout] | ^^ use of undeclared crate or module `fs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fs` [INFO] [stdout] --> basic-exercises/src/std_misc_io_fs_base.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | fs::remove_file("a/c/e.txt").unwrap_or_else(|why| { [INFO] [stdout] | ^^ use of undeclared crate or module `fs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fs` [INFO] [stdout] --> basic-exercises/src/std_misc_io_fs_base.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | fs::remove_dir("a/c/d").unwrap_or_else(|why| { [INFO] [stdout] | ^^ use of undeclared crate or module `fs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `thread` [INFO] [stdout] --> basic-exercises/src/std_misc_threads_base.rs:17:27 [INFO] [stdout] | [INFO] [stdout] 17 | childern.push(thread::spawn(move || { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> basic-exercises/src/std_hashmap_base.rs:23:28 [INFO] [stdout] | [INFO] [stdout] 23 | let mut contacts = HashMap::new(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 19 | use crate::closure_base::test::HashMap; [INFO] [stdout] | [INFO] [stdout] 19 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> basic-exercises/src/std_hashmap_base.rs:59:25 [INFO] [stdout] | [INFO] [stdout] 59 | let mut scores: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 19 | use crate::closure_base::test::HashMap; [INFO] [stdout] | [INFO] [stdout] 19 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> basic-exercises/src/std_hashmap_base.rs:59:48 [INFO] [stdout] | [INFO] [stdout] 59 | let mut scores: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 19 | use crate::closure_base::test::HashMap; [INFO] [stdout] | [INFO] [stdout] 19 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> basic-exercises/src/std_hashmap_base.rs:65:21 [INFO] [stdout] | [INFO] [stdout] 65 | let scores: HashMap<_, _> = keys.iter().zip(values.iter()).collect(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 19 | use crate::closure_base::test::HashMap; [INFO] [stdout] | [INFO] [stdout] 19 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> basic-exercises/src/std_hashmap_base.rs:72:23 [INFO] [stdout] | [INFO] [stdout] 72 | let mut ss1 = HashMap::new(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 19 | use crate::closure_base::test::HashMap; [INFO] [stdout] | [INFO] [stdout] 19 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> basic-exercises/src/std_hashmap_base.rs:83:23 [INFO] [stdout] | [INFO] [stdout] 83 | let mut map = HashMap::new(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 19 | use crate::closure_base::test::HashMap; [INFO] [stdout] | [INFO] [stdout] 19 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> basic-exercises/src/std_hashmap_base.rs:102:32 [INFO] [stdout] | [INFO] [stdout] 102 | let mut book_hashmap = HashMap::new(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 19 | use crate::closure_base::test::HashMap; [INFO] [stdout] | [INFO] [stdout] 19 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> basic-exercises/src/std_hashmap_base.rs:114:31 [INFO] [stdout] | [INFO] [stdout] 114 | let mut book_reviews: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 19 | use crate::closure_base::test::HashMap; [INFO] [stdout] | [INFO] [stdout] 19 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> basic-exercises/src/std_hashmap_base.rs:114:57 [INFO] [stdout] | [INFO] [stdout] 114 | let mut book_reviews: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 19 | use crate::closure_base::test::HashMap; [INFO] [stdout] | [INFO] [stdout] 19 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HashSet` in this scope [INFO] [stdout] --> basic-exercises/src/std_hashset_base.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | let mut a: HashSet = vec![1i32, 2, 3].into_iter().collect(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashSet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HashSet` in this scope [INFO] [stdout] --> basic-exercises/src/std_hashset_base.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | let mut b: HashSet = vec![2i32, 3, 4].into_iter().collect(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashSet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashSet` [INFO] [stdout] --> basic-exercises/src/std_hashset_base.rs:55:34 [INFO] [stdout] | [INFO] [stdout] 55 | let mut number_hashset = HashSet::new(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::HashSet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> basic-exercises/src/std_misc_path_file_base.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | let path = Path::new("."); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::std_misc_io_fs_base::Path; [INFO] [stdout] | [INFO] [stdout] 8 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> basic-exercises/src/std_misc_path_file_base.rs:36:20 [INFO] [stdout] | [INFO] [stdout] 36 | let path = Path::new("./hello.txt"); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::std_misc_io_fs_base::Path; [INFO] [stdout] | [INFO] [stdout] 8 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `File` [INFO] [stdout] --> basic-exercises/src/std_misc_path_file_base.rs:40:30 [INFO] [stdout] | [INFO] [stdout] 40 | let mut file = match File::open(&path) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::std_misc_io_fs_base::File; [INFO] [stdout] | [INFO] [stdout] 8 | use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> basic-exercises/src/std_misc_path_file_base.rs:67:20 [INFO] [stdout] | [INFO] [stdout] 67 | let path = Path::new("hello.txt"); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::std_misc_io_fs_base::Path; [INFO] [stdout] | [INFO] [stdout] 8 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `File` [INFO] [stdout] --> basic-exercises/src/std_misc_path_file_base.rs:71:30 [INFO] [stdout] | [INFO] [stdout] 71 | let mut file = match File::create(&path) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::std_misc_io_fs_base::File; [INFO] [stdout] | [INFO] [stdout] 8 | use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Command` [INFO] [stdout] --> basic-exercises/src/std_misc_process_base.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | let output = Command::new("rustc") [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 7 | use std::process::Command; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Command` [INFO] [stdout] --> basic-exercises/src/std_misc_process_base.rs:32:29 [INFO] [stdout] | [INFO] [stdout] 32 | let process = match Command::new("wc") [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 7 | use std::process::Command; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stdio` [INFO] [stdout] --> basic-exercises/src/std_misc_process_base.rs:33:20 [INFO] [stdout] | [INFO] [stdout] 33 | .stdin(Stdio::piped()) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 7 | use std::process::Stdio; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Stdio` [INFO] [stdout] --> basic-exercises/src/std_misc_process_base.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | .stdout(Stdio::piped()) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 7 | use std::process::Stdio; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Command` [INFO] [stdout] --> basic-exercises/src/std_misc_process_base.rs:66:25 [INFO] [stdout] | [INFO] [stdout] 66 | let mut child = Command::new("sleep").arg("5").spawn().unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 7 | use std::process::Command; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> basic-exercises/src/basic_type.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> basic-exercises/src/main.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | #![warn(unused_imports)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> basic-exercises/src/collection_types.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> basic-exercises/src/loops.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | 'second_loop: loop { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> basic-exercises/src/macros_base.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | println!("Hello!"); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 78 | say_hello!() [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: macro invocations at the end of a block are treated as expressions [INFO] [stdout] = note: to ignore the value produced by the macro, add a semicolon after the invocation of `say_hello` [INFO] [stdout] = note: this warning originates in the macro `say_hello` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> basic-exercises/src/std_hashset_base.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> basic-exercises/src/std_misc_path_file_base.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> basic-exercises/src/std_misc_process_base.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> basic-exercises/src/std_vector_base.rs:72:10 [INFO] [stdout] | [INFO] [stdout] 72 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> basic-exercises/src/struct_base.rs:48:20 [INFO] [stdout] | [INFO] [stdout] 48 | struct A {}; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 37 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `basic-exercises` due to 38 previous errors; 9 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "a7edd353eb51bdb94e61b3dffc99de60ff1082717e8b18ec82b892265ef685cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7edd353eb51bdb94e61b3dffc99de60ff1082717e8b18ec82b892265ef685cb", kill_on_drop: false }` [INFO] [stdout] a7edd353eb51bdb94e61b3dffc99de60ff1082717e8b18ec82b892265ef685cb