[INFO] cloning repository https://github.com/duanjp8617/ringbuf [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/duanjp8617/ringbuf" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fduanjp8617%2Fringbuf", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fduanjp8617%2Fringbuf'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7da9bf2d7e1cb9f50d21d5540098fcfcd288897f [INFO] testing duanjp8617/ringbuf against beta-2022-02-22 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fduanjp8617%2Fringbuf" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/duanjp8617/ringbuf on toolchain beta-2022-02-22 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/duanjp8617/ringbuf [INFO] finished tweaking git repo https://github.com/duanjp8617/ringbuf [INFO] tweaked toml for git repo https://github.com/duanjp8617/ringbuf written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/duanjp8617/ringbuf already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] bad63fa2356c82f09dfaf67ddf317f1a1315ba79eaa2b806c82c1f99c36d07c1 [INFO] running `Command { std: "docker" "start" "-a" "bad63fa2356c82f09dfaf67ddf317f1a1315ba79eaa2b806c82c1f99c36d07c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bad63fa2356c82f09dfaf67ddf317f1a1315ba79eaa2b806c82c1f99c36d07c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bad63fa2356c82f09dfaf67ddf317f1a1315ba79eaa2b806c82c1f99c36d07c1", kill_on_drop: false }` [INFO] [stdout] bad63fa2356c82f09dfaf67ddf317f1a1315ba79eaa2b806c82c1f99c36d07c1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 415ad92106cecb65d30cdc43b736d64e3a557ee6b99dcc3c770d97dac5b6c790 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "415ad92106cecb65d30cdc43b736d64e3a557ee6b99dcc3c770d97dac5b6c790", kill_on_drop: false }` [INFO] [stderr] Compiling ringbuf v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.68s [INFO] running `Command { std: "docker" "inspect" "415ad92106cecb65d30cdc43b736d64e3a557ee6b99dcc3c770d97dac5b6c790", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "415ad92106cecb65d30cdc43b736d64e3a557ee6b99dcc3c770d97dac5b6c790", kill_on_drop: false }` [INFO] [stdout] 415ad92106cecb65d30cdc43b736d64e3a557ee6b99dcc3c770d97dac5b6c790 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3fb58fcede38aacaa99ee0a63b19c2bc89ccbcca110eca369d48f88573bf3084 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3fb58fcede38aacaa99ee0a63b19c2bc89ccbcca110eca369d48f88573bf3084", kill_on_drop: false }` [INFO] [stderr] Compiling ringbuf v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.06s [INFO] running `Command { std: "docker" "inspect" "3fb58fcede38aacaa99ee0a63b19c2bc89ccbcca110eca369d48f88573bf3084", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3fb58fcede38aacaa99ee0a63b19c2bc89ccbcca110eca369d48f88573bf3084", kill_on_drop: false }` [INFO] [stdout] 3fb58fcede38aacaa99ee0a63b19c2bc89ccbcca110eca369d48f88573bf3084 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 5d19f05845762864e2ccc1c666055189941efe35ecdc240133f043a6b44bf009 [INFO] running `Command { std: "docker" "start" "-a" "5d19f05845762864e2ccc1c666055189941efe35ecdc240133f043a6b44bf009", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/ringbuf-198fcc7babbb7d54) [INFO] [stdout] [INFO] [stdout] running 11 tests [INFO] [stdout] test tests::capacity ... ok [INFO] [stdout] test tests::drop ... ok [INFO] [stdout] test tests::cache_aligned ... ok [INFO] [stdout] test tests::zero_sized_batch ... ok [INFO] [stdout] test tests::super_large_capacity - should panic ... ok [INFO] [stdout] test tests::capacity_of_one - should panic ... ok [INFO] [stdout] test tests::batched_small_queue ... ok [INFO] [stdout] test tests::batched_two_threads ... ok [INFO] [stdout] test tests::two_threads ... ok [INFO] [stdout] test tests::send_around ... ok [INFO] [stderr] Doc-tests ringbuf [INFO] [stdout] test tests::zero_sized_object ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 37.35s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/lib.rs - SyncRingBuf (line 80) ... FAILED [INFO] [stdout] test src/lib.rs - SyncRingBuf (line 29) ... FAILED [INFO] [stdout] test src/lib.rs - SyncRingBuf (line 40) ... FAILED [INFO] [stdout] test src/lib.rs - SyncRingBuf::try_send (line 127) ... FAILED [INFO] [stdout] test src/lib.rs - Sender (line 373) ... FAILED [INFO] [stdout] test src/lib.rs - SyncRingBuf::send_batch (line 187) ... FAILED [INFO] [stdout] test src/lib.rs - Receiver (line 454) ... FAILED [INFO] [stdout] test src/lib.rs - SyncRingBuf::try_recv (line 244) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - SyncRingBuf (line 80) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SyncRingBuf` [INFO] [stdout] --> src/lib.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 3 | use SyncRingBuf::lib::SyncRingBuf; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SyncRingBuf` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SyncRingBuf` [INFO] [stdout] --> src/lib.rs:82:11 [INFO] [stdout] | [INFO] [stdout] 4 | let srb = SyncRingBuf::with_capacity_at_least(2); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SyncRingBuf` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SyncRingBuf` [INFO] [stdout] --> src/lib.rs:84:11 [INFO] [stdout] | [INFO] [stdout] 6 | let srb = SyncRingBuf::with_capacity_at_least(7); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SyncRingBuf` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SyncRingBuf` [INFO] [stdout] --> src/lib.rs:86:11 [INFO] [stdout] | [INFO] [stdout] 8 | let srb = SyncRingBuf::with_capacity_at_least(16); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SyncRingBuf` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - SyncRingBuf (line 29) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `SyncRingBuf` [INFO] [stdout] --> src/lib.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 3 | use SyncRingBuf::lib; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SyncRingBuf` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SyncRingBuf` [INFO] [stdout] --> src/lib.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 5 | let srb = SyncRingBuf::with_capacity_at_least(2); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SyncRingBuf` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - SyncRingBuf (line 40) stdout ---- [INFO] [stdout] error: unknown start of token: \u{ff01} [INFO] [stdout] --> src/lib.rs:44:20 [INFO] [stdout] | [INFO] [stdout] 6 | let data_send = Vec!(1, 2, 3).as_ptr(); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character '!' (Fullwidth Exclamation Mark) looks like '!' (Exclamation Mark), but it is not [INFO] [stdout] | [INFO] [stdout] 6 | let data_send = Vec!(1, 2, 3).as_ptr(); [INFO] [stdout] | ~ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SyncRingBuf` [INFO] [stdout] --> src/lib.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 3 | use SyncRingBuf::lib::SyncRingBuf; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SyncRingBuf` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `Vec` in this scope [INFO] [stdout] --> src/lib.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 6 | let data_send = Vec!(1, 2, 3).as_ptr(); [INFO] [stdout] | ^^^ help: a macro with a similar name exists (notice the capitalization): `vec` [INFO] [stdout] | [INFO] [stdout] = note: `Vec` is in scope, but it is a struct, not a macro [INFO] [stdout] [INFO] [stdout] error: cannot find macro `Vec` in this scope [INFO] [stdout] --> src/lib.rs:51:27 [INFO] [stdout] | [INFO] [stdout] 13 | assert_eq!(data_recv, Vec!(1, 2, 3).as_mut_ptr()); [INFO] [stdout] | ^^^ help: a macro with a similar name exists (notice the capitalization): `vec` [INFO] [stdout] | [INFO] [stdout] = note: `Vec` is in scope, but it is a struct, not a macro [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SyncRingBuf` [INFO] [stdout] --> src/lib.rs:43:11 [INFO] [stdout] | [INFO] [stdout] 5 | let srb = SyncRingBuf::with_capacity_at_least(10); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SyncRingBuf` [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/lib.rs:45:18 [INFO] [stdout] | [INFO] [stdout] 7 | let data_recv = Vec::with_capacity().as_mut_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^-- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - SyncRingBuf::try_send (line 127) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SyncRingBuf` [INFO] [stdout] --> src/lib.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 3 | use SyncRingBuf::lib::SyncRingBuf; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SyncRingBuf` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SyncRingBuf` [INFO] [stdout] --> src/lib.rs:130:11 [INFO] [stdout] | [INFO] [stdout] 5 | let srb = SyncRingBuf::with_capacity_at_least(2); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SyncRingBuf` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Sender (line 373) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `SyncRingBuf` [INFO] [stdout] --> src/lib.rs:374:5 [INFO] [stdout] | [INFO] [stdout] 3 | use SyncRingBuf::lib; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SyncRingBuf` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `Vec` in this scope [INFO] [stdout] --> src/lib.rs:382:30 [INFO] [stdout] | [INFO] [stdout] 11 | assert_eq!(s.send_batch(&mut Vec!(2, 3)), 0); [INFO] [stdout] | ^^^ help: a macro with a similar name exists (notice the capitalization): `vec` [INFO] [stdout] | [INFO] [stdout] = note: `Vec` is in scope, but it is a struct, not a macro [INFO] [stdout] [INFO] [stdout] error: cannot find macro `Vec` in this scope [INFO] [stdout] --> src/lib.rs:379:30 [INFO] [stdout] | [INFO] [stdout] 8 | assert_eq!(s.send_batch(&mut Vec!(2, 3)), 2); [INFO] [stdout] | ^^^ help: a macro with a similar name exists (notice the capitalization): `vec` [INFO] [stdout] | [INFO] [stdout] = note: `Vec` is in scope, but it is a struct, not a macro [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - SyncRingBuf::send_batch (line 187) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SyncRingBuf` [INFO] [stdout] --> src/lib.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 3 | use SyncRingBuf::lib::SyncRingBuf; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SyncRingBuf` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `Vec` in this scope [INFO] [stdout] --> src/lib.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 7 | let batch = Vec!(1, 2, 3, 4, 5).as_ptr(); [INFO] [stdout] | ^^^ help: a macro with a similar name exists (notice the capitalization): `vec` [INFO] [stdout] | [INFO] [stdout] = note: `Vec` is in scope, but it is a struct, not a macro [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SyncRingBuf` [INFO] [stdout] --> src/lib.rs:190:13 [INFO] [stdout] | [INFO] [stdout] 5 | let srb_a = SyncRingBuf::with_capacity_at_least(2); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SyncRingBuf` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SyncRingBuf` [INFO] [stdout] --> src/lib.rs:191:13 [INFO] [stdout] | [INFO] [stdout] 6 | let srb_b = SyncRingBuf::with_capacity_at_least(10); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SyncRingBuf` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Receiver (line 454) stdout ---- [INFO] [stdout] error: mismatched closing delimiter: `}` [INFO] [stdout] --> src/lib.rs:463:11 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_454_0() { [INFO] [stdout] | - closing delimiter possibly meant for this [INFO] [stdout] ... [INFO] [stdout] 11 | assert_eq!(r.recv_batch(&mut batch, 0); [INFO] [stdout] | ^ unclosed delimiter [INFO] [stdout] 12 | } _doctest_main_src_lib_rs_454_0() } [INFO] [stdout] | ^ mismatched closing delimiter [INFO] [stdout] [INFO] [stdout] error: no rules expected the token `;` [INFO] [stdout] --> src/lib.rs:461:39 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(r.recv_batch(&mut batch, 3); [INFO] [stdout] | ^ no rules expected this token in macro call [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `SyncRingBuf` [INFO] [stdout] --> src/lib.rs:455:5 [INFO] [stdout] | [INFO] [stdout] 3 | use SyncRingBuf::lib; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SyncRingBuf` [INFO] [stdout] [INFO] [stdout] error: cannot find macro `Vec` in this scope [INFO] [stdout] --> src/lib.rs:459:30 [INFO] [stdout] | [INFO] [stdout] 7 | assert_eq!(s.send_batch(&mut Vec!(1, 2, 3)), 0); [INFO] [stdout] | ^^^ help: a macro with a similar name exists (notice the capitalization): `vec` [INFO] [stdout] | [INFO] [stdout] = note: `Vec` is in scope, but it is a struct, not a macro [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - SyncRingBuf::try_recv (line 244) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SyncRingBuf` [INFO] [stdout] --> src/lib.rs:245:5 [INFO] [stdout] | [INFO] [stdout] 3 | use SyncRingBuf::lib::SyncRingBuf; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SyncRingBuf` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SyncRingBuf` [INFO] [stdout] --> src/lib.rs:247:11 [INFO] [stdout] | [INFO] [stdout] 5 | let srb = SyncRingBuf::with_capacity_at_least(2); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `SyncRingBuf` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - Receiver (line 454) [INFO] [stdout] src/lib.rs - Sender (line 373) [INFO] [stdout] src/lib.rs - SyncRingBuf (line 29) [INFO] [stdout] src/lib.rs - SyncRingBuf (line 40) [INFO] [stdout] src/lib.rs - SyncRingBuf (line 80) [INFO] [stdout] src/lib.rs - SyncRingBuf::send_batch (line 187) [INFO] [stdout] src/lib.rs - SyncRingBuf::try_recv (line 244) [INFO] [stdout] src/lib.rs - SyncRingBuf::try_send (line 127) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.18s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "5d19f05845762864e2ccc1c666055189941efe35ecdc240133f043a6b44bf009", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d19f05845762864e2ccc1c666055189941efe35ecdc240133f043a6b44bf009", kill_on_drop: false }` [INFO] [stdout] 5d19f05845762864e2ccc1c666055189941efe35ecdc240133f043a6b44bf009