[INFO] fetching crate static_assert_generic 0.1.2... [INFO] testing static_assert_generic-0.1.2 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate static_assert_generic 0.1.2 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate static_assert_generic 0.1.2 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate static_assert_generic 0.1.2 [INFO] tweaked toml for crates.io crate static_assert_generic 0.1.2 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate static_assert_generic 0.1.2 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 4 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 376adc69febfba7dfc45ca53022e1ff857fe4cb8c37ca691b996e1bf8e5694d9 [INFO] running `Command { std: "docker" "start" "-a" "376adc69febfba7dfc45ca53022e1ff857fe4cb8c37ca691b996e1bf8e5694d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "376adc69febfba7dfc45ca53022e1ff857fe4cb8c37ca691b996e1bf8e5694d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "376adc69febfba7dfc45ca53022e1ff857fe4cb8c37ca691b996e1bf8e5694d9", kill_on_drop: false }` [INFO] [stdout] 376adc69febfba7dfc45ca53022e1ff857fe4cb8c37ca691b996e1bf8e5694d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 12177260fb45c08d443d8b72f73052f52001f00670d6ede81196feeb54e74ef1 [INFO] running `Command { std: "docker" "start" "-a" "12177260fb45c08d443d8b72f73052f52001f00670d6ede81196feeb54e74ef1", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling static_assert_generic v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.19s [INFO] running `Command { std: "docker" "inspect" "12177260fb45c08d443d8b72f73052f52001f00670d6ede81196feeb54e74ef1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12177260fb45c08d443d8b72f73052f52001f00670d6ede81196feeb54e74ef1", kill_on_drop: false }` [INFO] [stdout] 12177260fb45c08d443d8b72f73052f52001f00670d6ede81196feeb54e74ef1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3cba75a8033281dc076b3a72e5a3b46cb65076e07443f8927834d8f8224b499d [INFO] running `Command { std: "docker" "start" "-a" "3cba75a8033281dc076b3a72e5a3b46cb65076e07443f8927834d8f8224b499d", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling static_assert_generic v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.18s [INFO] running `Command { std: "docker" "inspect" "3cba75a8033281dc076b3a72e5a3b46cb65076e07443f8927834d8f8224b499d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3cba75a8033281dc076b3a72e5a3b46cb65076e07443f8927834d8f8224b499d", kill_on_drop: false }` [INFO] [stdout] 3cba75a8033281dc076b3a72e5a3b46cb65076e07443f8927834d8f8224b499d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0c64b23f002ae7d8c4a8eed683eb9b08a60f85e8658a2653203869b62cd60eec [INFO] running `Command { std: "docker" "start" "-a" "0c64b23f002ae7d8c4a8eed683eb9b08a60f85e8658a2653203869b62cd60eec", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/static_assert_generic-cae54bf4768e11e9) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/tests.rs (/opt/rustwide/target/debug/deps/tests-9decc57d3718bb32) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stderr] Doc-tests static_assert_generic [INFO] [stdout] test test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 19 tests [INFO] [stdout] test src/lib.rs - (line 108) ... FAILED [INFO] [stdout] test src/lib.rs - (line 116) ... FAILED [INFO] [stdout] test src/lib.rs - (line 100) ... FAILED [INFO] [stdout] test src/lib.rs - (line 18) ... FAILED [INFO] [stdout] test src/lib.rs - (line 30) ... ok [INFO] [stdout] test src/lib.rs - (line 81) ... FAILED [INFO] [stdout] test src/lib.rs - (line 69) ... FAILED [INFO] [stdout] test src/lib.rs - (line 124) ... FAILED [INFO] [stdout] test src/lib.rs - (line 46) ... FAILED [INFO] [stdout] test src/lib.rs - explicitly_drop (line 305) ... FAILED [INFO] [stdout] test src/lib.rs - explicitly_drop (line 314) ... FAILED [INFO] [stdout] test src/lib.rs - (line 59) ... FAILED [INFO] [stdout] test src/lib.rs - explicitly_drop (line 365) ... FAILED [INFO] [stdout] test src/lib.rs - explicitly_drop (line 338) ... FAILED [INFO] [stdout] test src/lib.rs - (line 93) ... FAILED [INFO] [stdout] test src/lib.rs - explicitly_drop (line 383) ... FAILED [INFO] [stdout] test src/lib.rs - explicitly_drop (line 373) ... FAILED [INFO] [stdout] test src/lib.rs - explicitly_drop (line 406) ... FAILED [INFO] [stdout] test src/lib.rs - explicitly_drop (line 424) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 108) stdout ---- [INFO] [stdout] error: unknown start of token: \u{a0} [INFO] [stdout] --> src/lib.rs:110:1 [INFO] [stdout] | [INFO] [stdout] 4 |     static_assert!((T) std::mem::size_of::() == 4 => "T must be 4 bytes long!"); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character ' ' (No-Break Space) looks like ' ' (Space), but it is not [INFO] [stdout] | [INFO] [stdout] 4 |   static_assert!((T) std::mem::size_of::() == 4 => "T must be 4 bytes long!"); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: cannot find macro `static_assert` in this scope [INFO] [stdout] --> src/lib.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 4 |     static_assert!((T) std::mem::size_of::() == 4 => "T must be 4 bytes long!"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use static_assert_generic::static_assert; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 116) stdout ---- [INFO] [stdout] error: unknown start of token: \u{a0} [INFO] [stdout] --> src/lib.rs:118:1 [INFO] [stdout] | [INFO] [stdout] 4 |     static_assert!((U?) true => "There isn't much you can statically check about unsized types."); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character ' ' (No-Break Space) looks like ' ' (Space), but it is not [INFO] [stdout] | [INFO] [stdout] 4 |   static_assert!((U?) true => "There isn't much you can statically check about unsized types."); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: cannot find macro `static_assert` in this scope [INFO] [stdout] --> src/lib.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 4 |     static_assert!((U?) true => "There isn't much you can statically check about unsized types."); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use static_assert_generic::static_assert; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 100) stdout ---- [INFO] [stdout] error: unknown start of token: \u{a0} [INFO] [stdout] --> src/lib.rs:102:1 [INFO] [stdout] | [INFO] [stdout] 4 |     static_assert!((C: u32) C > 3 => "C must be greater than 3!"); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character ' ' (No-Break Space) looks like ' ' (Space), but it is not [INFO] [stdout] | [INFO] [stdout] 4 |   static_assert!((C: u32) C > 3 => "C must be greater than 3!"); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: cannot find macro `static_assert` in this scope [INFO] [stdout] --> src/lib.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 4 |     static_assert!((C: u32) C > 3 => "C must be greater than 3!"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use static_assert_generic::static_assert; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 18) stdout ---- [INFO] [stdout] error: unknown start of token: \u{a0} [INFO] [stdout] --> src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 3 |     static_assert!((N: usize) N != 0 => "N must be a non-zero value!"); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character ' ' (No-Break Space) looks like ' ' (Space), but it is not [INFO] [stdout] | [INFO] [stdout] 3 |   static_assert!((N: usize) N != 0 => "N must be a non-zero value!"); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: cannot find macro `static_assert` in this scope [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 3 |     static_assert!((N: usize) N != 0 => "N must be a non-zero value!"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use static_assert_generic::static_assert; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 81) stdout ---- [INFO] [stdout] error: cannot find macro `static_assert` in this scope [INFO] [stdout] --> src/lib.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 5 | static_assert!(() 45 * 25 < 3); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use static_assert_generic::static_assert; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `static_assert` in this scope [INFO] [stdout] --> src/lib.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 3 | static_assert!(() 1 + 2 < 17); // True statement, compiles. [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use static_assert_generic::static_assert; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 69) stdout ---- [INFO] [stdout] error: unknown start of token: \u{a0} [INFO] [stdout] --> src/lib.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 4 |     static_assert!((T) ...); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character ' ' (No-Break Space) looks like ' ' (Space), but it is not [INFO] [stdout] | [INFO] [stdout] 4 |   static_assert!((T) ...); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: cannot find macro `static_assert` in this scope [INFO] [stdout] --> src/lib.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 4 |     static_assert!((T) ...); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use static_assert_generic::static_assert; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 124) stdout ---- [INFO] [stdout] error: unknown start of token: \u{a0} [INFO] [stdout] --> src/lib.rs:126:1 [INFO] [stdout] | [INFO] [stdout] 4 |     static_assert!((N: usize, M: usize) N > M => "N must be greater than M!"); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character ' ' (No-Break Space) looks like ' ' (Space), but it is not [INFO] [stdout] | [INFO] [stdout] 4 |   static_assert!((N: usize, M: usize) N > M => "N must be greater than M!"); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: cannot find macro `static_assert` in this scope [INFO] [stdout] --> src/lib.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 5 |     static_assert!((N: usize, T) N == std::mem::size_of::() / 2 => "N must be half the size of T!"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use static_assert_generic::static_assert; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `static_assert` in this scope [INFO] [stdout] --> src/lib.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 4 |     static_assert!((N: usize, M: usize) N > M => "N must be greater than M!"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use static_assert_generic::static_assert; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 46) stdout ---- [INFO] [stdout] error: unknown start of token: \u{a0} [INFO] [stdout] --> src/lib.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 4 |     static_assert!((N) N != 0 => "N must be a non-zero value!"); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character ' ' (No-Break Space) looks like ' ' (Space), but it is not [INFO] [stdout] | [INFO] [stdout] 4 |   static_assert!((N) N != 0 => "N must be a non-zero value!"); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: cannot find macro `static_assert` in this scope [INFO] [stdout] --> src/lib.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 4 |     static_assert!((N) N != 0 => "N must be a non-zero value!"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use static_assert_generic::static_assert; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - explicitly_drop (line 305) stdout ---- [INFO] [stdout] error: cannot find macro `explicitly_drop` in this scope [INFO] [stdout] --> src/lib.rs:307:5 [INFO] [stdout] | [INFO] [stdout] 4 | explicitly_drop!(T => "MyStruct must be dropped explicitly!"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use static_assert_generic::explicitly_drop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Foo` in this scope [INFO] [stdout] --> src/lib.rs:306:9 [INFO] [stdout] | [INFO] [stdout] 3 | impl Foo { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - explicitly_drop (line 314) stdout ---- [INFO] [stdout] error: cannot find macro `explicitly_drop` in this scope [INFO] [stdout] --> src/lib.rs:316:5 [INFO] [stdout] | [INFO] [stdout] 4 | explicitly_drop!(T => "Dependant on type generic"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use static_assert_generic::explicitly_drop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `explicitly_drop` in this scope [INFO] [stdout] --> src/lib.rs:320:5 [INFO] [stdout] | [INFO] [stdout] 8 | explicitly_drop!(T? => "If the type is unsized it needs special syntax"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use static_assert_generic::explicitly_drop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `explicitly_drop` in this scope [INFO] [stdout] --> src/lib.rs:324:5 [INFO] [stdout] | [INFO] [stdout] 12 | explicitly_drop!(C: u8 => "Dependant on const generic (specifying the type is needed)"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use static_assert_generic::explicitly_drop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `explicitly_drop` in this scope [INFO] [stdout] --> src/lib.rs:328:5 [INFO] [stdout] | [INFO] [stdout] 16 | explicitly_drop!(C: u8 => "Just one is needed, even if the type has more."); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use static_assert_generic::explicitly_drop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Foo` in this scope [INFO] [stdout] --> src/lib.rs:315:18 [INFO] [stdout] | [INFO] [stdout] 3 | impl Drop for Foo { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Foo` in this scope [INFO] [stdout] --> src/lib.rs:319:26 [INFO] [stdout] | [INFO] [stdout] 7 | impl Drop for Foo { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Foo` in this scope [INFO] [stdout] --> src/lib.rs:323:28 [INFO] [stdout] | [INFO] [stdout] 11 | impl Drop for Foo<{C}> { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Foo` in this scope [INFO] [stdout] --> src/lib.rs:327:51 [INFO] [stdout] | [INFO] [stdout] 15 | impl Drop for Foo<{C}, {D}, T, U, V> { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 59) stdout ---- [INFO] [stdout] error: unknown start of token: \u{a0} [INFO] [stdout] --> src/lib.rs:61:1 [INFO] [stdout] | [INFO] [stdout] 4 |     static_assert!(() N != 0 => "N must be a non-zero value!"); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character ' ' (No-Break Space) looks like ' ' (Space), but it is not [INFO] [stdout] | [INFO] [stdout] 4 |   static_assert!(() N != 0 => "N must be a non-zero value!"); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: cannot find macro `static_assert` in this scope [INFO] [stdout] --> src/lib.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 4 |     static_assert!(() N != 0 => "N must be a non-zero value!"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use static_assert_generic::static_assert; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - explicitly_drop (line 365) stdout ---- [INFO] [stdout] error: cannot find macro `explicitly_drop` in this scope [INFO] [stdout] --> src/lib.rs:367:5 [INFO] [stdout] | [INFO] [stdout] 4 | explicitly_drop!(T => "Allocation must be freed explicitly!"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use static_assert_generic::explicitly_drop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Allocation` in this scope [INFO] [stdout] --> src/lib.rs:366:18 [INFO] [stdout] | [INFO] [stdout] 3 | impl Drop for Allocation { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - explicitly_drop (line 338) stdout ---- [INFO] [stdout] error: expected identifier, found `...` [INFO] [stdout] --> src/lib.rs:340:5 [INFO] [stdout] | [INFO] [stdout] 3 | struct Allocator { [INFO] [stdout] | --------- while parsing this struct [INFO] [stdout] 4 | ... [INFO] [stdout] | ^^^ expected identifier [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 93) stdout ---- [INFO] [stdout] error: cannot find macro `static_assert` in this scope [INFO] [stdout] --> src/lib.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 3 | static_assert!(() 45 * 25 < 3 => "This is the error message!"); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use static_assert_generic::static_assert; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - explicitly_drop (line 383) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Allocator` in this scope [INFO] [stdout] --> src/lib.rs:384:19 [INFO] [stdout] | [INFO] [stdout] 3 | fn foo(allocator: Allocator) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use std::alloc::Allocator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Allocation` in this scope [INFO] [stdout] --> src/lib.rs:385:21 [INFO] [stdout] | [INFO] [stdout] 4 | let allocation: Allocation:: = allocator.alloc(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Whatever` in this scope [INFO] [stdout] --> src/lib.rs:385:34 [INFO] [stdout] | [INFO] [stdout] 4 | let allocation: Allocation:: = allocator.alloc(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 3 | fn foo(allocator: Allocator) { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `my_allocator` in this scope [INFO] [stdout] --> src/lib.rs:390:5 [INFO] [stdout] | [INFO] [stdout] 9 | foo(my_allocator); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - explicitly_drop (line 373) stdout ---- [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/lib.rs:374:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn free(&mut self, allocation: Allocation) { [INFO] [stdout] | ^^^^^^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Allocation` in this scope [INFO] [stdout] --> src/lib.rs:374:39 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn free(&mut self, allocation: Allocation) { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - explicitly_drop (line 406) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Allocator` in this scope [INFO] [stdout] --> src/lib.rs:407:19 [INFO] [stdout] | [INFO] [stdout] 3 | fn foo(allocator: Allocator) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use std::alloc::Allocator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Allocation` in this scope [INFO] [stdout] --> src/lib.rs:408:21 [INFO] [stdout] | [INFO] [stdout] 4 | let allocation: Allocation:: = allocator.alloc(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Whatever` in this scope [INFO] [stdout] --> src/lib.rs:408:34 [INFO] [stdout] | [INFO] [stdout] 4 | let allocation: Allocation:: = allocator.alloc(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 3 | fn foo(allocator: Allocator) { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `my_allocator` in this scope [INFO] [stdout] --> src/lib.rs:413:5 [INFO] [stdout] | [INFO] [stdout] 9 | foo(my_allocator); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - explicitly_drop (line 424) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Allocator` in this scope [INFO] [stdout] --> src/lib.rs:425:19 [INFO] [stdout] | [INFO] [stdout] 3 | fn bar(allocator: Allocator) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use std::alloc::Allocator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Allocation` in this scope [INFO] [stdout] --> src/lib.rs:426:21 [INFO] [stdout] | [INFO] [stdout] 4 | let allocation: Allocation:: = allocator.alloc(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Whatever` in this scope [INFO] [stdout] --> src/lib.rs:426:34 [INFO] [stdout] | [INFO] [stdout] 4 | let allocation: Allocation:: = allocator.alloc(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 3 | fn bar(allocator: Allocator) { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `my_allocator` in this scope [INFO] [stdout] --> src/lib.rs:433:5 [INFO] [stdout] | [INFO] [stdout] 11 | foo(my_allocator); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `foo` in this scope [INFO] [stdout] --> src/lib.rs:433:1 [INFO] [stdout] | [INFO] [stdout] 11 | foo(my_allocator); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/lib.rs:427:8 [INFO] [stdout] | [INFO] [stdout] 5 | if rand::random::() == 27 { [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 100) [INFO] [stdout] src/lib.rs - (line 108) [INFO] [stdout] src/lib.rs - (line 116) [INFO] [stdout] src/lib.rs - (line 124) [INFO] [stdout] src/lib.rs - (line 18) [INFO] [stdout] src/lib.rs - (line 46) [INFO] [stdout] src/lib.rs - (line 59) [INFO] [stdout] src/lib.rs - (line 69) [INFO] [stdout] src/lib.rs - (line 81) [INFO] [stdout] src/lib.rs - (line 93) [INFO] [stdout] src/lib.rs - explicitly_drop (line 305) [INFO] [stdout] src/lib.rs - explicitly_drop (line 314) [INFO] [stdout] src/lib.rs - explicitly_drop (line 338) [INFO] [stdout] src/lib.rs - explicitly_drop (line 365) [INFO] [stdout] src/lib.rs - explicitly_drop (line 373) [INFO] [stdout] src/lib.rs - explicitly_drop (line 383) [INFO] [stdout] src/lib.rs - explicitly_drop (line 406) [INFO] [stdout] src/lib.rs - explicitly_drop (line 424) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 18 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.85s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "0c64b23f002ae7d8c4a8eed683eb9b08a60f85e8658a2653203869b62cd60eec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c64b23f002ae7d8c4a8eed683eb9b08a60f85e8658a2653203869b62cd60eec", kill_on_drop: false }` [INFO] [stdout] 0c64b23f002ae7d8c4a8eed683eb9b08a60f85e8658a2653203869b62cd60eec