[INFO] fetching crate static_assert_generic 0.1.2... [INFO] testing static_assert_generic-0.1.2 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-2 [INFO] extracting crate static_assert_generic 0.1.2 into /workspace/builds/worker-7-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-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate static_assert_generic 0.1.2 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c1539c0171a9aa99d6b71b7fbec6e2a3115e352ecf912ec00e1a9b758b5a6728 [INFO] running `Command { std: "docker" "start" "-a" "c1539c0171a9aa99d6b71b7fbec6e2a3115e352ecf912ec00e1a9b758b5a6728", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c1539c0171a9aa99d6b71b7fbec6e2a3115e352ecf912ec00e1a9b758b5a6728", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1539c0171a9aa99d6b71b7fbec6e2a3115e352ecf912ec00e1a9b758b5a6728", kill_on_drop: false }` [INFO] [stdout] c1539c0171a9aa99d6b71b7fbec6e2a3115e352ecf912ec00e1a9b758b5a6728 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9698695c59d16fbe4cf140db174baeed7bdb4b4811f86cd15165056a502af1fb [INFO] running `Command { std: "docker" "start" "-a" "9698695c59d16fbe4cf140db174baeed7bdb4b4811f86cd15165056a502af1fb", kill_on_drop: false }` [INFO] [stderr] Compiling static_assert_generic v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.63s [INFO] running `Command { std: "docker" "inspect" "9698695c59d16fbe4cf140db174baeed7bdb4b4811f86cd15165056a502af1fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9698695c59d16fbe4cf140db174baeed7bdb4b4811f86cd15165056a502af1fb", kill_on_drop: false }` [INFO] [stdout] 9698695c59d16fbe4cf140db174baeed7bdb4b4811f86cd15165056a502af1fb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b5d18533d57de0717f9d769a8e97cf2d46da94990d1e680fd8e59156c28135c2 [INFO] running `Command { std: "docker" "start" "-a" "b5d18533d57de0717f9d769a8e97cf2d46da94990d1e680fd8e59156c28135c2", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling static_assert_generic v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.94s [INFO] running `Command { std: "docker" "inspect" "b5d18533d57de0717f9d769a8e97cf2d46da94990d1e680fd8e59156c28135c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5d18533d57de0717f9d769a8e97cf2d46da94990d1e680fd8e59156c28135c2", kill_on_drop: false }` [INFO] [stdout] b5d18533d57de0717f9d769a8e97cf2d46da94990d1e680fd8e59156c28135c2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0476695d181d5fdbae3bef4c3f925216623494fe0cce8c4e3fad2f10fe9fdf06 [INFO] running `Command { std: "docker" "start" "-a" "0476695d181d5fdbae3bef4c3f925216623494fe0cce8c4e3fad2f10fe9fdf06", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/static_assert_generic-a61daba54ad64a99) [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-1fb4062eed33fa4e) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test test ... ok [INFO] [stderr] Doc-tests static_assert_generic [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 19 tests [INFO] [stdout] test src/lib.rs - (line 69) ... FAILED [INFO] [stdout] test src/lib.rs - (line 81) ... FAILED [INFO] [stdout] test src/lib.rs - (line 93) ... FAILED [INFO] [stdout] test src/lib.rs - (line 124) ... FAILED [INFO] [stdout] test src/lib.rs - explicitly_drop (line 338) ... FAILED [INFO] [stdout] test src/lib.rs - explicitly_drop (line 373) ... 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 - (line 18) ... FAILED [INFO] [stdout] test src/lib.rs - explicitly_drop (line 305) ... FAILED [INFO] [stdout] test src/lib.rs - (line 116) ... FAILED [INFO] [stdout] test src/lib.rs - explicitly_drop (line 365) ... 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] test src/lib.rs - (line 46) ... FAILED [INFO] [stdout] test src/lib.rs - (line 108) ... FAILED [INFO] [stdout] test src/lib.rs - (line 30) ... ok [INFO] [stdout] test src/lib.rs - (line 100) ... FAILED [INFO] [stdout] test src/lib.rs - explicitly_drop (line 383) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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] 71 |     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] 71 |   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] 71 |     static_assert!((T) ...); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 69 + 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] 84 | static_assert!(() 45 * 25 < 3); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 81 + 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] 82 | static_assert!(() 1 + 2 < 17); // True statement, compiles. [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 81 + 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 93) stdout ---- [INFO] [stdout] error: cannot find macro `static_assert` in this scope [INFO] [stdout] --> src/lib.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 94 | 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] 93 + 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 - (line 124) stdout ---- [INFO] [stdout] error: unknown start of token: \u{a0} [INFO] [stdout] --> src/lib.rs:126:1 [INFO] [stdout] | [INFO] [stdout] 126 |     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] 126 |   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] 127 |     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] 124 + 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] 126 |     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] 124 + 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 - explicitly_drop (line 338) stdout ---- [INFO] [stdout] error: expected identifier, found `...` [INFO] [stdout] --> src/lib.rs:340:5 [INFO] [stdout] | [INFO] [stdout] 339 | struct Allocator { [INFO] [stdout] | --------- while parsing this struct [INFO] [stdout] 340 | ... [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 - 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] 374 | 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[E0425]: cannot find type `Allocation` in this scope [INFO] [stdout] --> src/lib.rs:374:39 [INFO] [stdout] | [INFO] [stdout] 374 | 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 E0425`. [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] 316 | explicitly_drop!(T => "Dependant on type generic"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 314 + 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] 320 | 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] 314 + 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] 324 | 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] 314 + 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] 328 | 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] 314 + use static_assert_generic::explicitly_drop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Foo` in this scope [INFO] [stdout] --> src/lib.rs:315:18 [INFO] [stdout] | [INFO] [stdout] 315 | impl Drop for Foo { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Foo` in this scope [INFO] [stdout] --> src/lib.rs:319:26 [INFO] [stdout] | [INFO] [stdout] 319 | impl Drop for Foo { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Foo` in this scope [INFO] [stdout] --> src/lib.rs:323:28 [INFO] [stdout] | [INFO] [stdout] 323 | impl Drop for Foo<{C}> { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Foo` in this scope [INFO] [stdout] --> src/lib.rs:327:51 [INFO] [stdout] | [INFO] [stdout] 327 | 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 E0425`. [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] 61 |     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] 61 |   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] 61 |     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] 59 + 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] 20 |     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] 20 |   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] 20 |     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] 19 + 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] 307 | explicitly_drop!(T => "MyStruct must be dropped explicitly!"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 305 + use static_assert_generic::explicitly_drop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Foo` in this scope [INFO] [stdout] --> src/lib.rs:306:9 [INFO] [stdout] | [INFO] [stdout] 306 | 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 E0425`. [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] 118 |     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] 118 |   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] 118 |     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] 116 + 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] 367 | explicitly_drop!(T => "Allocation must be freed explicitly!"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 365 + use static_assert_generic::explicitly_drop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Allocation` in this scope [INFO] [stdout] --> src/lib.rs:366:18 [INFO] [stdout] | [INFO] [stdout] 366 | 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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - explicitly_drop (line 406) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Allocator` in this scope [INFO] [stdout] --> src/lib.rs:407:19 [INFO] [stdout] | [INFO] [stdout] 407 | fn foo(allocator: Allocator) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 406 + use std::alloc::Allocator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Allocation` in this scope [INFO] [stdout] --> src/lib.rs:408:21 [INFO] [stdout] | [INFO] [stdout] 408 | let allocation: Allocation:: = allocator.alloc(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Whatever` in this scope [INFO] [stdout] --> src/lib.rs:408:34 [INFO] [stdout] | [INFO] [stdout] 408 | 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] 407 | 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] 413 | 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] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - explicitly_drop (line 424) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Allocator` in this scope [INFO] [stdout] --> src/lib.rs:425:19 [INFO] [stdout] | [INFO] [stdout] 425 | fn bar(allocator: Allocator) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 424 + use std::alloc::Allocator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Allocation` in this scope [INFO] [stdout] --> src/lib.rs:426:21 [INFO] [stdout] | [INFO] [stdout] 426 | let allocation: Allocation:: = allocator.alloc(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Whatever` in this scope [INFO] [stdout] --> src/lib.rs:426:34 [INFO] [stdout] | [INFO] [stdout] 426 | 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] 425 | 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] 433 | 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] 433 | foo(my_allocator); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `rand` in this scope [INFO] [stdout] --> src/lib.rs:427:8 [INFO] [stdout] | [INFO] [stdout] 427 | 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: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [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] 48 |     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] 48 |   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] 48 |     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] 46 + 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 108) stdout ---- [INFO] [stdout] error: unknown start of token: \u{a0} [INFO] [stdout] --> src/lib.rs:110:1 [INFO] [stdout] | [INFO] [stdout] 110 |     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] 110 |   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] 110 |     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] 108 + 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] 102 |     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] 102 |   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] 102 |     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] 100 + 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 383) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Allocator` in this scope [INFO] [stdout] --> src/lib.rs:384:19 [INFO] [stdout] | [INFO] [stdout] 384 | fn foo(allocator: Allocator) { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 383 + use std::alloc::Allocator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Allocation` in this scope [INFO] [stdout] --> src/lib.rs:385:21 [INFO] [stdout] | [INFO] [stdout] 385 | let allocation: Allocation:: = allocator.alloc(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `Whatever` in this scope [INFO] [stdout] --> src/lib.rs:385:34 [INFO] [stdout] | [INFO] [stdout] 385 | 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] 384 | 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] 390 | 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] For more information about this error, try `rustc --explain E0425`. [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.39s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "0476695d181d5fdbae3bef4c3f925216623494fe0cce8c4e3fad2f10fe9fdf06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0476695d181d5fdbae3bef4c3f925216623494fe0cce8c4e3fad2f10fe9fdf06", kill_on_drop: false }` [INFO] [stdout] 0476695d181d5fdbae3bef4c3f925216623494fe0cce8c4e3fad2f10fe9fdf06