[INFO] cloning repository https://github.com/TheLudlows/rust-tour [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TheLudlows/rust-tour" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheLudlows%2Frust-tour", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheLudlows%2Frust-tour'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5054c863bf33552e1b0839b1e986cd62b5b417f0 [INFO] checking TheLudlows/rust-tour against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheLudlows%2Frust-tour" "/workspace/builds/worker-39/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-39/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/TheLudlows/rust-tour 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/TheLudlows/rust-tour [INFO] finished tweaking git repo https://github.com/TheLudlows/rust-tour [INFO] tweaked toml for git repo https://github.com/TheLudlows/rust-tour written to /workspace/builds/worker-39/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-39/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-39/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] [stdout] 41a0b922312d5d47cdb0f841202a5df3f25e29268bd5e0e29fde5e80d64475ff [INFO] running `Command { std: "docker" "start" "-a" "41a0b922312d5d47cdb0f841202a5df3f25e29268bd5e0e29fde5e80d64475ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "41a0b922312d5d47cdb0f841202a5df3f25e29268bd5e0e29fde5e80d64475ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41a0b922312d5d47cdb0f841202a5df3f25e29268bd5e0e29fde5e80d64475ff", kill_on_drop: false }` [INFO] [stdout] 41a0b922312d5d47cdb0f841202a5df3f25e29268bd5e0e29fde5e80d64475ff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-39/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-39/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] 562dff3105e313b712cdada2ecba5978bb112447f0b0236b559bc3e3737bdcc1 [INFO] running `Command { std: "docker" "start" "-a" "562dff3105e313b712cdada2ecba5978bb112447f0b0236b559bc3e3737bdcc1", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.100 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Checking quote v0.6.13 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking syn v0.14.9 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rust-tour v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/ptr.rs (2 fixes) [INFO] [stderr] Fixed src/refcell.rs (1 fix) [INFO] [stderr] Fixed src/cell.rs (3 fixes) [INFO] [stderr] Fixed src/conv.rs (2 fixes) [INFO] [stderr] Fixed src/thread_local.rs (4 fixes) [INFO] [stderr] Fixed src/macros.rs (1 fix) [INFO] [stderr] Fixed src/bytes.rs (1 fix) [INFO] [stderr] Fixed src/unique.rs (1 fix) [INFO] [stderr] Fixed src/flow_control.rs (1 fix) [INFO] [stderr] Fixed src/dequeue.rs (1 fix) [INFO] [stderr] Fixed src/drop.rs (1 fix) [INFO] [stderr] Fixed src/error.rs (1 fix) [INFO] [stderr] Fixed src/thread.rs (4 fixes) [INFO] [stderr] Fixed src/unsafes.rs (2 fixes) [INFO] [stderr] Fixed src/mem.rs (1 fix) [INFO] [stderr] Fixed src/boxes.rs (1 fix) [INFO] [stderr] Fixed src/atomic.rs (4 fixes) [INFO] [stderr] Fixed src/hashmap.rs (1 fix) [INFO] [stderr] Fixed src/fatpointer.rs (1 fix) [INFO] [stderr] Fixed src/any.rs (1 fix) [INFO] [stderr] Fixed src/generator.rs (2 fixes) [INFO] [stderr] Fixed src/static_.rs (4 fixes) [INFO] [stderr] Fixed src/file.rs (1 fix) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `thread` [INFO] [stdout] --> src/cell.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | 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 `thread` [INFO] [stdout] --> src/thread.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | let h = thread::spawn(|| { [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 `thread` [INFO] [stdout] --> src/thread.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | thread::sleep(Duration::from_secs(1)); [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 `thread` [INFO] [stdout] --> src/thread.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | let handle = 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 `thread` [INFO] [stdout] --> src/thread.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | thread::sleep(Duration::from_secs(1)); [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 `mpsc` [INFO] [stdout] --> src/thread.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | let (tx, rx) = mpsc::channel(); [INFO] [stdout] | ^^^^ use of undeclared crate or module `mpsc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/macros.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / macro_rules! unless { [INFO] [stdout] 4 | | ($arg:expr, $branch:expr) => { [INFO] [stdout] 5 | | if !$arg { [INFO] [stdout] 6 | | $branch [INFO] [stdout] 7 | | }; [INFO] [stdout] 8 | | }; [INFO] [stdout] 9 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `thread` [INFO] [stdout] --> src/thread.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | 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 `mpsc` [INFO] [stdout] --> src/thread.rs:44:20 [INFO] [stdout] | [INFO] [stdout] 44 | 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] --> src/thread.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | 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 `thread` [INFO] [stdout] --> src/thread.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | thread::sleep(Duration::from_secs(1)); [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 `thread` [INFO] [stdout] --> src/thread.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | 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 `thread` [INFO] [stdout] --> src/thread.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | thread::sleep(Duration::from_secs(1)); [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 `thread` [INFO] [stdout] --> src/thread.rs:98:22 [INFO] [stdout] | [INFO] [stdout] 98 | let handle = 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 `thread` [INFO] [stdout] --> src/thread.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | 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 `thread` [INFO] [stdout] --> src/thread.rs:130:5 [INFO] [stdout] | [INFO] [stdout] 130 | thread::sleep(Duration::from_millis(100)); [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 `thread` [INFO] [stdout] --> src/thread.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 169 | thread::spawn(|| { [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 `thread` [INFO] [stdout] --> src/thread.rs:201:17 [INFO] [stdout] | [INFO] [stdout] 201 | let j = 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 `thread` [INFO] [stdout] --> src/thread.rs:202:35 [INFO] [stdout] | [INFO] [stdout] 202 | println!("wait {:?}", thread::current().id()); [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 `thread` [INFO] [stdout] --> src/thread.rs:216:5 [INFO] [stdout] | [INFO] [stdout] 216 | thread::sleep(Duration::from_secs(1)); [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 `thread` [INFO] [stdout] --> src/thread.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | thread::park(); [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 `thread` [INFO] [stdout] --> src/thread.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | thread::yield_now() [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 `thread` [INFO] [stdout] --> src/thread.rs:229:5 [INFO] [stdout] | [INFO] [stdout] 229 | thread::sleep(Duration::from_secs(1)); [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 `thread` [INFO] [stdout] --> src/thread.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 240 | 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 `thread` [INFO] [stdout] --> src/thread.rs:252:17 [INFO] [stdout] | [INFO] [stdout] 252 | let t = 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 `thread` [INFO] [stdout] --> src/thread.rs:271:17 [INFO] [stdout] | [INFO] [stdout] 271 | let t = 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 `thread` [INFO] [stdout] --> src/thread.rs:294:5 [INFO] [stdout] | [INFO] [stdout] 294 | 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 `thread` [INFO] [stdout] --> src/thread.rs:312:5 [INFO] [stdout] | [INFO] [stdout] 312 | thread::spawn(move || println!("{}", &s)).join().unwrap(); [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 `slice` [INFO] [stdout] --> src/unsafes.rs:27:34 [INFO] [stdout] | [INFO] [stdout] 27 | let slice: &[i32] = unsafe { slice::from_raw_parts_mut(r, 10000) }; [INFO] [stdout] | ^^^^^ use of undeclared crate or module `slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mem` [INFO] [stdout] --> src/unsafes.rs:177:61 [INFO] [stdout] | [INFO] [stdout] 177 | let layout = Layout::from_size_align_unchecked(32 * mem::size_of::(), mem::size_of::()); [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] --> src/unsafes.rs:177:84 [INFO] [stdout] | [INFO] [stdout] 177 | let layout = Layout::from_size_align_unchecked(32 * mem::size_of::(), mem::size_of::()); [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] --> src/unsafes.rs:195:61 [INFO] [stdout] | [INFO] [stdout] 195 | let layout = Layout::from_size_align_unchecked(32 * mem::size_of::(), mem::size_of::()); [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] --> src/unsafes.rs:195:84 [INFO] [stdout] | [INFO] [stdout] 195 | let layout = Layout::from_size_align_unchecked(32 * mem::size_of::(), mem::size_of::()); [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 `thread` [INFO] [stdout] --> src/static_.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | 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 `thread` [INFO] [stdout] --> src/atomic.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | let t1 = 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 `thread` [INFO] [stdout] --> src/atomic.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | let t2 = 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 `thread` [INFO] [stdout] --> src/thread_local.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | thread::spawn(|| { [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 `mem` [INFO] [stdout] --> src/mem.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | println!("{}", mem::size_of::()); [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] --> src/mem.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | println!("{}", mem::size_of::()); [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] --> src/mem.rs:63:20 [INFO] [stdout] | [INFO] [stdout] 63 | println!("{}", mem::size_of::()); [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] --> src/mem.rs:64:20 [INFO] [stdout] | [INFO] [stdout] 64 | println!("{}", mem::size_of::()); [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] --> src/mem.rs:65:20 [INFO] [stdout] | [INFO] [stdout] 65 | println!("{}", mem::align_of::()); [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] --> src/mem.rs:66:20 [INFO] [stdout] | [INFO] [stdout] 66 | println!("{}", mem::align_of::()); [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] --> src/mem.rs:68:20 [INFO] [stdout] | [INFO] [stdout] 68 | println!("{}", mem::align_of::()); [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] --> src/mem.rs:69:20 [INFO] [stdout] | [INFO] [stdout] 69 | println!("{}", mem::size_of::>()); [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] --> src/mem.rs:70:20 [INFO] [stdout] | [INFO] [stdout] 70 | println!("{}", mem::size_of::>()); [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] --> src/mem.rs:71:22 [INFO] [stdout] | [INFO] [stdout] 71 | println!("E:{}", mem::size_of::()); [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] --> src/mem.rs:72:20 [INFO] [stdout] | [INFO] [stdout] 72 | println!("{}", mem::size_of::()); [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] --> src/mem.rs:73:20 [INFO] [stdout] | [INFO] [stdout] 73 | println!("{}", mem::align_of::()); [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] --> src/mem.rs:74:20 [INFO] [stdout] | [INFO] [stdout] 74 | println!("{}", mem::size_of::<&Foo>()); [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] --> src/mem.rs:76:20 [INFO] [stdout] | [INFO] [stdout] 76 | println!("{}", mem::size_of::()); [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] --> src/mem.rs:77:20 [INFO] [stdout] | [INFO] [stdout] 77 | println!("{}", mem::size_of::()); [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] --> src/mem.rs:78:20 [INFO] [stdout] | [INFO] [stdout] 78 | println!("{}", mem::size_of::()); [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] --> src/mem.rs:79:20 [INFO] [stdout] | [INFO] [stdout] 79 | println!("{}", mem::size_of::>()); [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] --> src/mem.rs:80:20 [INFO] [stdout] | [INFO] [stdout] 80 | println!("{}", mem::size_of::()); [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] --> src/mem.rs:81:20 [INFO] [stdout] | [INFO] [stdout] 81 | println!("{}", mem::align_of::()); [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] --> src/mem.rs:82:20 [INFO] [stdout] | [INFO] [stdout] 82 | println!("{}", mem::align_of::<&i32>()); [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 `ptr` [INFO] [stdout] --> src/conv.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | ptr::write(&mut x[i], Box::new(i as u32)); [INFO] [stdout] | ^^^ use of undeclared crate or module `ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `fmt` [INFO] [stdout] --> src/ptr.rs:12:49 [INFO] [stdout] | [INFO] [stdout] 12 | fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { [INFO] [stdout] | ^^^ use of undeclared crate or module `fmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ptr` [INFO] [stdout] --> src/ptr.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | let f2 = ptr::read(&f1); [INFO] [stdout] | ^^^ use of undeclared crate or module `ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `type_name_of_val` in this scope [INFO] [stdout] --> src/any.rs:30:20 [INFO] [stdout] | [INFO] [stdout] 30 | println!("{}", type_name_of_val(&s)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::any::type_name_of_val; [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::type_name_of_val; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `type_name_of_val` in this scope [INFO] [stdout] --> src/any.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | println!("{}", type_name_of_val("a")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::any::type_name_of_val; [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::type_name_of_val; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Cell` in this scope [INFO] [stdout] --> src/cell.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | b: Cell, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 | use core::cell::Cell; [INFO] [stdout] | [INFO] [stdout] 6 | use crate::thread_local::Cell; [INFO] [stdout] | [INFO] [stdout] 6 | use std::cell::Cell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Cell` in this scope [INFO] [stdout] --> src/cell.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | c: Cell, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 | use core::cell::Cell; [INFO] [stdout] | [INFO] [stdout] 6 | use crate::thread_local::Cell; [INFO] [stdout] | [INFO] [stdout] 6 | use std::cell::Cell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cell` [INFO] [stdout] --> src/cell.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | b: Cell::new(20), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 | use core::cell::Cell; [INFO] [stdout] | [INFO] [stdout] 6 | use crate::thread_local::Cell; [INFO] [stdout] | [INFO] [stdout] 6 | use std::cell::Cell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cell` [INFO] [stdout] --> src/cell.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | c: Cell::new("c".to_string()), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 | use core::cell::Cell; [INFO] [stdout] | [INFO] [stdout] 6 | use crate::thread_local::Cell; [INFO] [stdout] | [INFO] [stdout] 6 | 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/cell.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let c = Arc::new(Mutex::new(RefCell::new(1))); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutex` [INFO] [stdout] --> src/cell.rs:25:22 [INFO] [stdout] | [INFO] [stdout] 25 | let c = Arc::new(Mutex::new(RefCell::new(1))); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Mutex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RefCell` [INFO] [stdout] --> src/cell.rs:25:33 [INFO] [stdout] | [INFO] [stdout] 25 | let c = Arc::new(Mutex::new(RefCell::new(1))); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 | use core::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] 6 | use crate::weakref::RefCell; [INFO] [stdout] | [INFO] [stdout] 6 | use std::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VecDeque` [INFO] [stdout] --> src/dequeue.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | let mut dq = VecDeque::new(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::VecDeque; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LinkedList` [INFO] [stdout] --> src/dequeue.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | let mut list = LinkedList::new(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::LinkedList; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `needs_drop` in this scope [INFO] [stdout] --> src/drop.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 25 | assert_eq!(needs_drop::(), false); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::intrinsics::needs_drop; [INFO] [stdout] | [INFO] [stdout] 3 | use core::mem::needs_drop; [INFO] [stdout] | [INFO] [stdout] 3 | use std::intrinsics::needs_drop; [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem::needs_drop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `needs_drop` in this scope [INFO] [stdout] --> src/drop.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | assert_eq!(needs_drop::>(), true); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::intrinsics::needs_drop; [INFO] [stdout] | [INFO] [stdout] 3 | use core::mem::needs_drop; [INFO] [stdout] | [INFO] [stdout] 3 | use std::intrinsics::needs_drop; [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem::needs_drop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `File` [INFO] [stdout] --> src/error.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let f = File::open("hello.txt"); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Pin` [INFO] [stdout] --> src/generator.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | Pin::new(&mut generator).resume(()); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use core::pin::Pin; [INFO] [stdout] | [INFO] [stdout] 5 | use std::pin::Pin; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Pin` [INFO] [stdout] --> src/generator.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Pin::new(&mut generator).resume(()); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use core::pin::Pin; [INFO] [stdout] | [INFO] [stdout] 5 | use std::pin::Pin; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Pin` [INFO] [stdout] --> src/generator.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | Pin::new(&mut generator).resume(()); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use core::pin::Pin; [INFO] [stdout] | [INFO] [stdout] 5 | use std::pin::Pin; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Generator` in this scope [INFO] [stdout] --> src/generator.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | impl Generator for __Generator { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 30 | impl Iterator for __Generator { [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use core::ops::Generator; [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::Generator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Pin` in this scope [INFO] [stdout] --> src/generator.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | fn resume(mut self: Pin<&mut Self>, resume: ()) -> GeneratorState { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use core::pin::Pin; [INFO] [stdout] | [INFO] [stdout] 5 | use std::pin::Pin; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GeneratorState` in this scope [INFO] [stdout] --> src/generator.rs:34:64 [INFO] [stdout] | [INFO] [stdout] 34 | fn resume(mut self: Pin<&mut Self>, resume: ()) -> GeneratorState { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use core::ops::GeneratorState; [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::GeneratorState; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GeneratorState` [INFO] [stdout] --> src/generator.rs:38:25 [INFO] [stdout] | [INFO] [stdout] 38 | GeneratorState::Yielded(1) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use core::ops::GeneratorState; [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::GeneratorState; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `GeneratorState` [INFO] [stdout] --> src/generator.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | GeneratorState::Complete(s) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use core::ops::GeneratorState; [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::GeneratorState; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Pin` [INFO] [stdout] --> src/generator.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | Pin::new(&mut generator).resume(()); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use core::pin::Pin; [INFO] [stdout] | [INFO] [stdout] 5 | use std::pin::Pin; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Pin` [INFO] [stdout] --> src/generator.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | Pin::new(&mut generator).resume(()); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use core::pin::Pin; [INFO] [stdout] | [INFO] [stdout] 5 | use std::pin::Pin; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Pin` [INFO] [stdout] --> src/generator.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let r = Pin::new(&mut generator).resume(()); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use core::pin::Pin; [INFO] [stdout] | [INFO] [stdout] 5 | use std::pin::Pin; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Pin` [INFO] [stdout] --> src/generator.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let r = Pin::new(&mut generator).resume(()); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use core::pin::Pin; [INFO] [stdout] | [INFO] [stdout] 5 | use std::pin::Pin; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/hashmap.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | 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] 4 | use crate::drop_t::HashMap; [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/refcell.rs:59:27 [INFO] [stdout] | [INFO] [stdout] 59 | let rc = RefCell::new(HashMap::new()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::drop_t::HashMap; [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/thread.rs:12:23 [INFO] [stdout] | [INFO] [stdout] 12 | thread::sleep(Duration::from_secs(1)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 4 | 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/thread.rs:23:23 [INFO] [stdout] | [INFO] [stdout] 23 | thread::sleep(Duration::from_secs(1)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mpsc` [INFO] [stdout] --> src/thread.rs:45:21 [INFO] [stdout] | [INFO] [stdout] 45 | let tx1 = mpsc::Sender::clone(&tx); [INFO] [stdout] | ^^^^^^ not found in `mpsc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::mpsc::Sender; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/thread.rs:56:27 [INFO] [stdout] | [INFO] [stdout] 56 | thread::sleep(Duration::from_secs(1)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 4 | 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/thread.rs:70:27 [INFO] [stdout] | [INFO] [stdout] 70 | thread::sleep(Duration::from_secs(1)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutex` [INFO] [stdout] --> src/thread.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let m = Mutex::new(5); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Mutex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/thread.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | let counter = Arc::new(Mutex::new(0)); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutex` [INFO] [stdout] --> src/thread.rs:92:28 [INFO] [stdout] | [INFO] [stdout] 92 | let counter = Arc::new(Mutex::new(0)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Mutex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/thread.rs:116:16 [INFO] [stdout] | [INFO] [stdout] 116 | let data = Arc::new(Mutex::new(vec![2, 5, 6])); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutex` [INFO] [stdout] --> src/thread.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | let data = Arc::new(Mutex::new(vec![2, 5, 6])); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Mutex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/thread.rs:130:19 [INFO] [stdout] | [INFO] [stdout] 130 | thread::sleep(Duration::from_millis(100)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RwLock` [INFO] [stdout] --> src/thread.rs:136:16 [INFO] [stdout] | [INFO] [stdout] 136 | let lock = RwLock::new(5); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::RwLock; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `thread` [INFO] [stdout] --> src/thread.rs:152:21 [INFO] [stdout] | [INFO] [stdout] 152 | let t = thread::Builder::new() [INFO] [stdout] | ^^^^^^^ not found in `thread` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::thread::Builder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RefCell` in this scope [INFO] [stdout] --> src/thread.rs:164:32 [INFO] [stdout] | [INFO] [stdout] 164 | thread_local!(static LOCAL:RefCell = RefCell::new(1)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use core::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] 4 | use crate::weakref::RefCell; [INFO] [stdout] | [INFO] [stdout] 4 | 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/thread.rs:164:47 [INFO] [stdout] | [INFO] [stdout] 164 | thread_local!(static LOCAL:RefCell = RefCell::new(1)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use core::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] 4 | use crate::weakref::RefCell; [INFO] [stdout] | [INFO] [stdout] 4 | use std::cell::RefCell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/thread.rs:197:19 [INFO] [stdout] | [INFO] [stdout] 197 | let barrier = Arc::new(Barrier::new(5)); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | 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/thread.rs:197:28 [INFO] [stdout] | [INFO] [stdout] 197 | let barrier = Arc::new(Barrier::new(5)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Barrier; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `time` [INFO] [stdout] --> src/thread.rs:215:28 [INFO] [stdout] | [INFO] [stdout] 215 | println!("{:?}", time::SystemTime::now()); [INFO] [stdout] | ^^^^^^^^^^ not found in `time` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::SystemTime; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/thread.rs:216:19 [INFO] [stdout] | [INFO] [stdout] 216 | thread::sleep(Duration::from_secs(1)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `time` [INFO] [stdout] --> src/thread.rs:217:28 [INFO] [stdout] | [INFO] [stdout] 217 | println!("{:?}", time::SystemTime::now()); [INFO] [stdout] | ^^^^^^^^^^ not found in `time` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::SystemTime; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `thread` [INFO] [stdout] --> src/thread.rs:222:21 [INFO] [stdout] | [INFO] [stdout] 222 | let t = thread::Builder::new() [INFO] [stdout] | ^^^^^^^ not found in `thread` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use crate::thread::Builder; [INFO] [stdout] | [INFO] [stdout] 4 | use std::thread::Builder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/thread.rs:229:19 [INFO] [stdout] | [INFO] [stdout] 229 | thread::sleep(Duration::from_secs(1)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 4 | 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/thread.rs:237:15 [INFO] [stdout] | [INFO] [stdout] 237 | let arc = Arc::new(String::from("hello")); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/thread.rs:248:16 [INFO] [stdout] | [INFO] [stdout] 248 | let lock = Arc::new(Mutex::new(String::from("hello"))); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutex` [INFO] [stdout] --> src/thread.rs:248:25 [INFO] [stdout] | [INFO] [stdout] 248 | let lock = Arc::new(Mutex::new(String::from("hello"))); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Mutex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/thread.rs:267:16 [INFO] [stdout] | [INFO] [stdout] 267 | let lock = Arc::new(Mutex::new(String::from("hello "))); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutex` [INFO] [stdout] --> src/thread.rs:267:25 [INFO] [stdout] | [INFO] [stdout] 267 | let lock = Arc::new(Mutex::new(String::from("hello "))); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Mutex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/thread.rs:292:16 [INFO] [stdout] | [INFO] [stdout] 292 | let pair = Arc::new((Mutex::new(false), Condvar::new())); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutex` [INFO] [stdout] --> src/thread.rs:292:26 [INFO] [stdout] | [INFO] [stdout] 292 | let pair = Arc::new((Mutex::new(false), Condvar::new())); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Mutex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Condvar` [INFO] [stdout] --> src/thread.rs:292:45 [INFO] [stdout] | [INFO] [stdout] 292 | let pair = Arc::new((Mutex::new(false), Condvar::new())); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Condvar; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Unique` [INFO] [stdout] --> src/unique.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let u = Unique::new(&mut p).unwrap(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use core::ptr::Unique; [INFO] [stdout] | [INFO] [stdout] 4 | use std::ptr::Unique; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Unique` in this scope [INFO] [stdout] --> src/unique.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | let u: Unique = Unique::dangling(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use core::ptr::Unique; [INFO] [stdout] | [INFO] [stdout] 4 | use std::ptr::Unique; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Unique` [INFO] [stdout] --> src/unique.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | let u: Unique = Unique::dangling(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use core::ptr::Unique; [INFO] [stdout] | [INFO] [stdout] 4 | use std::ptr::Unique; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Unique` in this scope [INFO] [stdout] --> src/unique.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | let u: Unique = Unique::dangling(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use core::ptr::Unique; [INFO] [stdout] | [INFO] [stdout] 4 | use std::ptr::Unique; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Unique` [INFO] [stdout] --> src/unique.rs:12:30 [INFO] [stdout] | [INFO] [stdout] 12 | let u: Unique = Unique::dangling(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use core::ptr::Unique; [INFO] [stdout] | [INFO] [stdout] 4 | use std::ptr::Unique; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Layout` [INFO] [stdout] --> src/unsafes.rs:177:22 [INFO] [stdout] | [INFO] [stdout] 177 | let layout = Layout::from_size_align_unchecked(32 * mem::size_of::(), mem::size_of::()); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use core::alloc::Layout; [INFO] [stdout] | [INFO] [stdout] 5 | use std::alloc::Layout; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Layout` [INFO] [stdout] --> src/unsafes.rs:195:22 [INFO] [stdout] | [INFO] [stdout] 195 | let layout = Layout::from_size_align_unchecked(32 * mem::size_of::(), mem::size_of::()); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use core::alloc::Layout; [INFO] [stdout] | [INFO] [stdout] 5 | use std::alloc::Layout; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `current_dir` in this scope [INFO] [stdout] --> src/file.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | let mut ps = current_dir().unwrap().read_dir().unwrap().into_iter() [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 | use std::env::current_dir; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `current_dir` in this scope [INFO] [stdout] --> src/file.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let p = current_dir().unwrap().join("a"); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 | use std::env::current_dir; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `File` in this scope [INFO] [stdout] --> src/static_.rs:76:47 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn read_in_background(f: &'static mut File) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `File` [INFO] [stdout] --> src/static_.rs:85:18 [INFO] [stdout] | [INFO] [stdout] 85 | let mut _f = File::open("/tmp/1.log").unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Read` in this scope [INFO] [stdout] --> src/static_.rs:95:14 [INFO] [stdout] | [INFO] [stdout] 95 | impl<'a> Read for MyCursor<'a> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `min` in this scope [INFO] [stdout] --> src/static_.rs:97:24 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { [INFO] [stdout] | --------- similarly named constant `main` defined here [INFO] [stdout] ... [INFO] [stdout] 97 | let size = min(buf.len(), self.data.len()); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: a constant with a similar name exists [INFO] [stdout] | [INFO] [stdout] 97 | let size = main(buf.len(), self.data.len()); [INFO] [stdout] | ~~~~ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use core::cmp::min; [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp::min; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/atomic.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | let atomic = Arc::new(AtomicUsize::new(0)); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtomicUsize` [INFO] [stdout] --> src/atomic.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | let atomic = Arc::new(AtomicUsize::new(0)); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 7 | use core::sync::atomic::AtomicUsize; [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::atomic::AtomicUsize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SeqCst` in this scope [INFO] [stdout] --> src/atomic.rs:14:30 [INFO] [stdout] | [INFO] [stdout] 14 | c1.store(c1.load(SeqCst) + 1, SeqCst); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 7 | use core::sync::atomic::Ordering::SeqCst; [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::atomic::Ordering::SeqCst; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SeqCst` in this scope [INFO] [stdout] --> src/atomic.rs:14:43 [INFO] [stdout] | [INFO] [stdout] 14 | c1.store(c1.load(SeqCst) + 1, SeqCst); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 7 | use core::sync::atomic::Ordering::SeqCst; [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::atomic::Ordering::SeqCst; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `AcqRel` in this scope [INFO] [stdout] --> src/atomic.rs:19:30 [INFO] [stdout] | [INFO] [stdout] 19 | c2.store(c2.load(AcqRel) + 1, SeqCst); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 7 | use core::sync::atomic::Ordering::AcqRel; [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::atomic::Ordering::AcqRel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SeqCst` in this scope [INFO] [stdout] --> src/atomic.rs:19:43 [INFO] [stdout] | [INFO] [stdout] 19 | c2.store(c2.load(AcqRel) + 1, SeqCst); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 7 | use core::sync::atomic::Ordering::SeqCst; [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::atomic::Ordering::SeqCst; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Relaxed` in this scope [INFO] [stdout] --> src/atomic.rs:25:32 [INFO] [stdout] | [INFO] [stdout] 25 | println!("{}", atomic.load(Relaxed)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 7 | use core::sync::atomic::Ordering::Relaxed; [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::atomic::Ordering::Relaxed; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `AtomicUsize` in this scope [INFO] [stdout] --> src/atomic.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | let a: AtomicUsize = AtomicUsize::new(1); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 7 | use core::sync::atomic::AtomicUsize; [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::atomic::AtomicUsize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtomicUsize` [INFO] [stdout] --> src/atomic.rs:30:26 [INFO] [stdout] | [INFO] [stdout] 30 | let a: AtomicUsize = AtomicUsize::new(1); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 7 | use core::sync::atomic::AtomicUsize; [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::atomic::AtomicUsize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Relaxed` in this scope [INFO] [stdout] --> src/atomic.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 31 | a.fetch_add(1, Relaxed); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 7 | use core::sync::atomic::Ordering::Relaxed; [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::atomic::Ordering::Relaxed; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `size_of` in this scope [INFO] [stdout] --> src/fatpointer.rs:8:36 [INFO] [stdout] | [INFO] [stdout] 8 | println!("&dyn Trait:-----{}", size_of::<&dyn SomeTrait>()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::intrinsics::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use core::mem::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use std::intrinsics::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem::size_of; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `size_of` in this scope [INFO] [stdout] --> src/fatpointer.rs:9:36 [INFO] [stdout] | [INFO] [stdout] 9 | println!("&[&dyn Trait]:--{}", size_of::<&[&dyn SomeTrait]>()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::intrinsics::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use core::mem::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use std::intrinsics::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem::size_of; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `size_of` in this scope [INFO] [stdout] --> src/fatpointer.rs:10:36 [INFO] [stdout] | [INFO] [stdout] 10 | println!("Box:-----{}", size_of::>()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::intrinsics::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use core::mem::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use std::intrinsics::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem::size_of; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `size_of` in this scope [INFO] [stdout] --> src/fatpointer.rs:11:36 [INFO] [stdout] | [INFO] [stdout] 11 | println!("&i32:-----------{}", size_of::<&i32>()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::intrinsics::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use core::mem::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use std::intrinsics::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem::size_of; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `size_of` in this scope [INFO] [stdout] --> src/fatpointer.rs:12:36 [INFO] [stdout] | [INFO] [stdout] 12 | println!("&[i32]:---------{}", size_of::<&[i32]>()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::intrinsics::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use core::mem::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use std::intrinsics::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem::size_of; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `size_of` in this scope [INFO] [stdout] --> src/fatpointer.rs:13:36 [INFO] [stdout] | [INFO] [stdout] 13 | println!("Box:-------{}", size_of::>()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::intrinsics::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use core::mem::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use std::intrinsics::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem::size_of; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `size_of` in this scope [INFO] [stdout] --> src/fatpointer.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 14 | println!("&Box:------{}", size_of::<&Box>()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::intrinsics::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use core::mem::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use std::intrinsics::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem::size_of; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `size_of` in this scope [INFO] [stdout] --> src/fatpointer.rs:15:36 [INFO] [stdout] | [INFO] [stdout] 15 | println!("[&dyn Trait;4]:-{}", size_of::<[&dyn SomeTrait; 4]>()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::intrinsics::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use core::mem::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use std::intrinsics::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem::size_of; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `size_of` in this scope [INFO] [stdout] --> src/fatpointer.rs:16:36 [INFO] [stdout] | [INFO] [stdout] 16 | println!("[i32;4]:--------{}", size_of::<[i32; 4]>()); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::intrinsics::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use core::mem::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use std::intrinsics::size_of; [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem::size_of; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/thread_local.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let t = Instant::now(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::drop_t::Instant; [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Relaxed` in this scope [INFO] [stdout] --> src/thread_local.rs:37:36 [INFO] [stdout] | [INFO] [stdout] 37 | N.fetch_add(1, Relaxed); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::sync::atomic::Ordering::Relaxed; [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::atomic::Ordering::Relaxed; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Relaxed` in this scope [INFO] [stdout] --> src/thread_local.rs:38:35 [INFO] [stdout] | [INFO] [stdout] 38 | it.set(N.load(Relaxed)); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::sync::atomic::Ordering::Relaxed; [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::atomic::Ordering::Relaxed; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `TestStruct` in this scope [INFO] [stdout] --> src/thread_local.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | let s = TestStruct { a: 1 }; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 57 | use crate::thread_local::test::TestStruct; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MaybeUninit` [INFO] [stdout] --> src/conv.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | x = MaybeUninit::uninit().assume_init(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use core::mem::MaybeUninit; [INFO] [stdout] | [INFO] [stdout] 4 | use std::mem::MaybeUninit; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Pointer` in this scope [INFO] [stdout] --> src/ptr.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | impl Pointer for Foo { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use core::fmt::Pointer; [INFO] [stdout] | [INFO] [stdout] 5 | use std::fmt::Pointer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Formatter` in this scope [INFO] [stdout] --> src/ptr.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 12 | fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 5 | use core::fmt::Formatter; [INFO] [stdout] | [INFO] [stdout] 5 | use crate::debug_display::Formatter; [INFO] [stdout] | [INFO] [stdout] 5 | use std::fmt::Formatter; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> src/bytes.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | let b = Bytes::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use bytes::Bytes; [INFO] [stdout] | [INFO] [stdout] 4 | use core::str::Bytes; [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 4 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/rc.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-tour` due to 158 previous errors [INFO] [stdout] error: aborting due to 157 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0422, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [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" "562dff3105e313b712cdada2ecba5978bb112447f0b0236b559bc3e3737bdcc1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "562dff3105e313b712cdada2ecba5978bb112447f0b0236b559bc3e3737bdcc1", kill_on_drop: false }` [INFO] [stdout] 562dff3105e313b712cdada2ecba5978bb112447f0b0236b559bc3e3737bdcc1