[INFO] cloning repository https://github.com/ZhangYan0001/rust_test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ZhangYan0001/rust_test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZhangYan0001%2Frust_test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZhangYan0001%2Frust_test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e06beb3a522637e8d891932c15003debd5828f69 [INFO] checking ZhangYan0001/rust_test/e06beb3a522637e8d891932c15003debd5828f69 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZhangYan0001%2Frust_test" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ZhangYan0001/rust_test on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ZhangYan0001/rust_test [INFO] finished tweaking git repo https://github.com/ZhangYan0001/rust_test [INFO] tweaked toml for git repo https://github.com/ZhangYan0001/rust_test written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ZhangYan0001/rust_test 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 42cdc77e49f30972f56bec34509110fa84a3159f117f122995357b07b184b42c [INFO] running `Command { std: "docker" "start" "-a" "42cdc77e49f30972f56bec34509110fa84a3159f117f122995357b07b184b42c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "42cdc77e49f30972f56bec34509110fa84a3159f117f122995357b07b184b42c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42cdc77e49f30972f56bec34509110fa84a3159f117f122995357b07b184b42c", kill_on_drop: false }` [INFO] [stdout] 42cdc77e49f30972f56bec34509110fa84a3159f117f122995357b07b184b42c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a0cf793553bdbcf0f9ceb723779b26738b09286924201a9c884527caabd9d853 [INFO] running `Command { std: "docker" "start" "-a" "a0cf793553bdbcf0f9ceb723779b26738b09286924201a9c884527caabd9d853", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking advance_rs_learn v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/lib.rs (7 fixes) [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/lib.rs:96:22 [INFO] [stdout] | [INFO] [stdout] 96 | fn fn_mut(func: F) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/lib.rs:104:21 [INFO] [stdout] | [INFO] [stdout] 104 | fn fn_fn(func: F) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/lib.rs:343:17 [INFO] [stdout] | [INFO] [stdout] 343 | let b = *a + 1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/lib.rs:418:17 [INFO] [stdout] | [INFO] [stdout] 418 | let sum = *z + 1; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v2` [INFO] [stdout] --> src/lib.rs:438:17 [INFO] [stdout] | [INFO] [stdout] 438 | let v2 = *v + 1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `query` and `value` are never read [INFO] [stdout] --> src/lib.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Cache [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 31 | query: T, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 32 | value: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `value` are never used [INFO] [stdout] --> src/lib.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 35 | / impl Cache [INFO] [stdout] 36 | | where [INFO] [stdout] 37 | | T: Fn(u32) -> u32, [INFO] [stdout] | |______________________________- associated items in this implementation [INFO] [stdout] 38 | { [INFO] [stdout] 39 | fn new(query: T) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn value(&mut self, arg: u32) -> u32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fn_once` is never used [INFO] [stdout] --> src/lib.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | fn fn_once(func: F) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fn_mut` is never used [INFO] [stdout] --> src/lib.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | fn fn_mut(func: F) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fn_fn` is never used [INFO] [stdout] --> src/lib.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | fn fn_fn(func: F) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `for_vec` is never used [INFO] [stdout] --> src/lib.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 126 | fn for_vec(vec: &mut Vec) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `iter_vec` is never used [INFO] [stdout] --> src/lib.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 133 | fn iter_vec(vec: &mut Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `diff_iters` is never used [INFO] [stdout] --> src/lib.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | fn diff_iters() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `consumer_adapter` is never used [INFO] [stdout] --> src/lib.rs:201:12 [INFO] [stdout] | [INFO] [stdout] 201 | fn consumer_adapter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `iterator_adapter` is never used [INFO] [stdout] --> src/lib.rs:225:12 [INFO] [stdout] | [INFO] [stdout] 225 | fn iterator_adapter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collect_hash_map` is never used [INFO] [stdout] --> src/lib.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 235 | fn collect_hash_map() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shoe` is never constructed [INFO] [stdout] --> src/lib.rs:243:16 [INFO] [stdout] | [INFO] [stdout] 243 | struct Shoe { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `closure_adapter` is never used [INFO] [stdout] --> src/lib.rs:253:12 [INFO] [stdout] | [INFO] [stdout] 253 | fn closure_adapter(shoes: Vec, shoe_size: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Counter` is never constructed [INFO] [stdout] --> src/lib.rs:257:16 [INFO] [stdout] | [INFO] [stdout] 257 | struct Counter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:262:16 [INFO] [stdout] | [INFO] [stdout] 261 | impl Counter { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 262 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `box_ex` is never used [INFO] [stdout] --> src/lib.rs:339:12 [INFO] [stdout] | [INFO] [stdout] 339 | fn box_ex() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dered_ex` is never used [INFO] [stdout] --> src/lib.rs:411:12 [INFO] [stdout] | [INFO] [stdout] 411 | fn dered_ex() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:424:20 [INFO] [stdout] | [INFO] [stdout] 423 | impl MyBox { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 424 | fn new(x: T) -> MyBox { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rc_ex` is never used [INFO] [stdout] --> src/lib.rs:451:12 [INFO] [stdout] | [INFO] [stdout] 451 | fn rc_ex() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `arc_ex` is never used [INFO] [stdout] --> src/lib.rs:462:12 [INFO] [stdout] | [INFO] [stdout] 462 | fn arc_ex() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cell_ex` is never used [INFO] [stdout] --> src/lib.rs:476:12 [INFO] [stdout] | [INFO] [stdout] 476 | fn cell_ex() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_thread` is never used [INFO] [stdout] --> src/lib.rs:582:12 [INFO] [stdout] | [INFO] [stdout] 582 | fn move_thread() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RefCell` in this scope [INFO] [stdout] --> src/lib.rs:499:28 [INFO] [stdout] | [INFO] [stdout] 499 | msg_cache: RefCell>, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 324 + use std::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RefCell` [INFO] [stdout] --> src/lib.rs:509:28 [INFO] [stdout] | [INFO] [stdout] 509 | msg_cache: RefCell::new(Vec::new()), [INFO] [stdout] | ^^^^^^^ use of undeclared type `RefCell` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 324 + use std::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RefCell` [INFO] [stdout] --> src/lib.rs:517:29 [INFO] [stdout] | [INFO] [stdout] 517 | let s = Rc::new(RefCell::new("hello world".to_string())); [INFO] [stdout] | ^^^^^^^ use of undeclared type `RefCell` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 324 + use std::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/lib.rs:547:35 [INFO] [stdout] | [INFO] [stdout] 547 | thread::sleep(Duration::from_millis(1)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 533 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/lib.rs:553:31 [INFO] [stdout] | [INFO] [stdout] 553 | thread::sleep(Duration::from_millis(1)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 533 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/lib.rs:568:35 [INFO] [stdout] | [INFO] [stdout] 568 | thread::sleep(Duration::from_millis(1)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 533 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/lib.rs:574:31 [INFO] [stdout] | [INFO] [stdout] 574 | thread::sleep(Duration::from_millis(1)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 533 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/lib.rs:609:27 [INFO] [stdout] | [INFO] [stdout] 609 | thread::sleep(Duration::from_millis(100)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Duration` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 533 + use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/lib.rs:620:27 [INFO] [stdout] | [INFO] [stdout] 620 | let barrier = Arc::new(Barrier::new(6)); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 533 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Barrier` [INFO] [stdout] --> src/lib.rs:620:36 [INFO] [stdout] | [INFO] [stdout] 620 | let barrier = Arc::new(Barrier::new(6)); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Barrier` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 533 + use std::sync::Barrier; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RefCell` in this scope [INFO] [stdout] --> src/lib.rs:647:33 [INFO] [stdout] | [INFO] [stdout] 647 | pub static FOO: RefCell = RefCell::new(1); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 533 + use std::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RefCell` [INFO] [stdout] --> src/lib.rs:647:48 [INFO] [stdout] | [INFO] [stdout] 647 | pub static FOO: RefCell = RefCell::new(1); [INFO] [stdout] | ^^^^^^^ use of undeclared type `RefCell` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 533 + use std::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Arc` in this scope [INFO] [stdout] --> src/lib.rs:670:22 [INFO] [stdout] | [INFO] [stdout] 670 | let tls: Arc>> = Arc::new(ThreadLocal::new()); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 533 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ThreadLocal` in this scope [INFO] [stdout] --> src/lib.rs:670:26 [INFO] [stdout] | [INFO] [stdout] 670 | let tls: Arc>> = Arc::new(ThreadLocal::new()); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 533 + use thread_local::ThreadLocal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Cell` in this scope [INFO] [stdout] --> src/lib.rs:670:38 [INFO] [stdout] | [INFO] [stdout] 670 | let tls: Arc>> = Arc::new(ThreadLocal::new()); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 533 + use std::cell::Cell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/lib.rs:670:52 [INFO] [stdout] | [INFO] [stdout] 670 | let tls: Arc>> = Arc::new(ThreadLocal::new()); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 533 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ThreadLocal` [INFO] [stdout] --> src/lib.rs:670:61 [INFO] [stdout] | [INFO] [stdout] 670 | let tls: Arc>> = Arc::new(ThreadLocal::new()); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `ThreadLocal` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 533 + use thread_local::ThreadLocal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cell` [INFO] [stdout] --> src/lib.rs:677:47 [INFO] [stdout] | [INFO] [stdout] 677 | let cell = tls2.get_or(|| Cell::new(0)); [INFO] [stdout] | ^^^^ use of undeclared type `Cell` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 533 + use std::cell::Cell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/lib.rs:686:23 [INFO] [stdout] | [INFO] [stdout] 686 | let tls = Arc::try_unwrap(tls).unwrap(); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 533 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/lib.rs:96:22 [INFO] [stdout] | [INFO] [stdout] 96 | fn fn_mut(func: F) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/lib.rs:104:21 [INFO] [stdout] | [INFO] [stdout] 104 | fn fn_fn(func: F) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/lib.rs:314:24 [INFO] [stdout] | [INFO] [stdout] 314 | .map(|(idx, val)| val) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/lib.rs:343:17 [INFO] [stdout] | [INFO] [stdout] 343 | let b = *a + 1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/lib.rs:418:17 [INFO] [stdout] | [INFO] [stdout] 418 | let sum = *z + 1; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advance_rs_learn` (lib test) due to 20 previous errors; 6 warnings emitted [INFO] [stdout] warning: unused variable: `v2` [INFO] [stdout] --> src/lib.rs:438:17 [INFO] [stdout] | [INFO] [stdout] 438 | let v2 = *v + 1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 19 previous errors; 6 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: 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" "a0cf793553bdbcf0f9ceb723779b26738b09286924201a9c884527caabd9d853", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0cf793553bdbcf0f9ceb723779b26738b09286924201a9c884527caabd9d853", kill_on_drop: false }` [INFO] [stdout] a0cf793553bdbcf0f9ceb723779b26738b09286924201a9c884527caabd9d853