[INFO] fetching crate linearize 0.1.4... [INFO] testing linearize-0.1.4 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate linearize 0.1.4 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate linearize 0.1.4 [INFO] finished tweaking crates.io crate linearize 0.1.4 [INFO] tweaked toml for crates.io crate linearize 0.1.4 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate linearize 0.1.4 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] crate crates.io crate linearize 0.1.4 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] cd444e39ff0f6e7e00aa606acb6192098b9f4e9498bb93f5a09753a0d82700b5 [INFO] running `Command { std: "docker" "start" "-a" "cd444e39ff0f6e7e00aa606acb6192098b9f4e9498bb93f5a09753a0d82700b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cd444e39ff0f6e7e00aa606acb6192098b9f4e9498bb93f5a09753a0d82700b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd444e39ff0f6e7e00aa606acb6192098b9f4e9498bb93f5a09753a0d82700b5", kill_on_drop: false }` [INFO] [stdout] cd444e39ff0f6e7e00aa606acb6192098b9f4e9498bb93f5a09753a0d82700b5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 4eaf002c3177fd7cfeae224c455ecb176475eb0da07d0f49054227c8a97d1354 [INFO] running `Command { std: "docker" "start" "-a" "4eaf002c3177fd7cfeae224c455ecb176475eb0da07d0f49054227c8a97d1354", kill_on_drop: false }` [INFO] [stderr] Compiling linearize v0.1.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.54s [INFO] running `Command { std: "docker" "inspect" "4eaf002c3177fd7cfeae224c455ecb176475eb0da07d0f49054227c8a97d1354", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4eaf002c3177fd7cfeae224c455ecb176475eb0da07d0f49054227c8a97d1354", kill_on_drop: false }` [INFO] [stdout] 4eaf002c3177fd7cfeae224c455ecb176475eb0da07d0f49054227c8a97d1354 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 291562d9413c696f2155afc2bcca99f8ba2806e219cecfb7c57d9406431357b9 [INFO] running `Command { std: "docker" "start" "-a" "291562d9413c696f2155afc2bcca99f8ba2806e219cecfb7c57d9406431357b9", kill_on_drop: false }` [INFO] [stderr] Compiling linearize v0.1.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.41s [INFO] running `Command { std: "docker" "inspect" "291562d9413c696f2155afc2bcca99f8ba2806e219cecfb7c57d9406431357b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "291562d9413c696f2155afc2bcca99f8ba2806e219cecfb7c57d9406431357b9", kill_on_drop: false }` [INFO] [stdout] 291562d9413c696f2155afc2bcca99f8ba2806e219cecfb7c57d9406431357b9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 867a6692594188413cdd8e00451e16a3d583ab664769b84fb457e180e6de0631 [INFO] running `Command { std: "docker" "start" "-a" "867a6692594188413cdd8e00451e16a3d583ab664769b84fb457e180e6de0631", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/linearize-651fb4ff78c2ed45) [INFO] [stdout] [INFO] [stdout] running 11 tests [INFO] [stdout] test impls::bool::test ... ok [INFO] [stdout] test impls::enums::core::fmt::alignment::test ... ok [INFO] [stdout] test impls::enums::core::num::fp_category::test ... ok [INFO] [stdout] test impls::enums::std::net::shutdown::test ... ok [INFO] [stdout] test impls::enums::core::cmp::ordering::test ... ok [INFO] [stdout] test impls::integers::test_u32 ... ok [INFO] [stdout] test impls::integers::test_u16 ... ok [INFO] [stdout] test impls::integers::test_u8 ... ok [INFO] [stdout] test impls::phantom_data::test ... ok [INFO] [stdout] test impls::phantom_pinned::test ... ok [INFO] [stdout] test impls::unit::test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests linearize [INFO] [stdout] [INFO] [stdout] running 46 tests [INFO] [stdout] test src/lib.rs - (line 13) ... FAILED [INFO] [stdout] test src/lib.rs - (line 35) ... FAILED [INFO] [stdout] test src/linearized.rs - linearized::Linearized::get (line 103) ... ok [INFO] [stdout] test src/copy_map.rs - copy_map::StaticCopyMap::from_fn (line 42) ... ok [INFO] [stdout] test src/copy_map.rs - copy_map::StaticCopyMap::into_static_map (line 133) ... ok [INFO] [stdout] test src/copy_map.rs - copy_map::StaticCopyMap::as_static_map_mut (line 199) ... ok [INFO] [stdout] test src/linearized.rs - linearized::Linearized::delinearize (line 121) ... ok [INFO] [stdout] test src/copy_map.rs - copy_map::StaticCopyMap::as_static_map (line 175) ... ok [INFO] [stdout] test src/copy_map.rs - copy_map::StaticCopyMap::map (line 227) ... ok [INFO] [stdout] test src/copy_map.rs - copy_map::StaticCopyMap::into_values (line 278) ... ok [INFO] [stdout] test src/macro.rs - r#macro::static_map (line 108) - compile fail ... ok [INFO] [stdout] test src/copy_map.rs - copy_map::StaticCopyMap::from_static_map (line 154) ... ok [INFO] [stdout] test src/copy_map.rs - copy_map::StaticCopyMap::from_mut (line 85) ... ok [INFO] [stdout] test src/copy_map.rs - copy_map::StaticCopyMap::from_ref (line 62) ... ok [INFO] [stdout] test src/copy_map.rs - copy_map::StaticCopyMap::map_values (line 254) ... ok [INFO] [stdout] test src/linearized.rs - linearized::Linearized::new (line 67) ... ok [INFO] [stdout] test src/linearized.rs - linearized::Linearized (line 26) ... ok [INFO] [stdout] test src/copy_map.rs - copy_map::StaticCopyMap::try_from_iter (line 106) ... ok [INFO] [stdout] test src/macro.rs - r#macro::static_map (line 126) ... FAILED [INFO] [stdout] test src/map.rs - map::StaticMap (line 28) ... FAILED [INFO] [stdout] test src/macro.rs - r#macro::static_map (line 117) ... ok [INFO] [stdout] test src/macro.rs - r#macro::static_map (line 166) ... FAILED [INFO] [stdout] test src/macro.rs - r#macro::static_map (line 73) ... ok [INFO] [stdout] test src/macro.rs - r#macro::static_map (line 157) ... ok [INFO] [stdout] test src/macro.rs - r#macro::static_map (line 94) ... ok [INFO] [stdout] test src/map.rs - map::StaticMap::as_copy_mut (line 353) ... ok [INFO] [stdout] test src/map.rs - map::StaticMap::clear (line 482) ... ok [INFO] [stdout] test src/map.rs - map::StaticMap (line 75) ... ok [INFO] [stdout] test src/map.rs - map::StaticMap::from_mut (line 229) ... ok [INFO] [stdout] test src/map.rs - map::StaticMap::from_ref (line 206) ... ok [INFO] [stdout] test src/map.rs - map::StaticMap::from_fn (line 180) ... ok [INFO] [stdout] test src/map.rs - map::StaticMap::as_copy (line 329) ... ok [INFO] [stdout] test src/map.rs - map::StaticMap::each_mut (line 400) ... ok [INFO] [stdout] test src/macro.rs - r#macro::static_map (line 85) ... ok [INFO] [stdout] test src/map.rs - map::StaticMap::each_ref (line 381) ... ok [INFO] [stdout] test src/map.rs - map::StaticMap::from_copy (line 305) ... ok [INFO] [stdout] test src/map.rs - map::StaticMap::iter (line 571) ... ok [INFO] [stdout] test src/map.rs - map::StaticMap::keys (line 508) ... ok [INFO] [stdout] test src/map.rs - map::StaticMap::iter_mut (line 594) ... ok [INFO] [stdout] test src/map.rs - map::StaticMap::into_values (line 617) ... ok [INFO] [stdout] test src/map.rs - map::StaticMap::into_copy (line 281) ... ok [INFO] [stdout] test src/map.rs - map::StaticMap::map_values (line 461) ... ok [INFO] [stdout] test src/map.rs - map::StaticMap::map (line 425) ... ok [INFO] [stdout] test src/map.rs - map::StaticMap::values (line 531) ... ok [INFO] [stdout] test src/map.rs - map::StaticMap::values_mut (line 551) ... ok [INFO] [stdout] test src/map.rs - map::StaticMap::try_from_iter (line 250) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 13) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `linearize_derive` [INFO] [stdout] --> src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 6 | use linearize_derive::Linearize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `linearize_derive` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `linearize_derive`, use `cargo add linearize_derive` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ColorFormat: Linearize` is not satisfied in `StaticMap` [INFO] [stdout] --> src/lib.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 16 | let mut channels = StaticMap::default(); [INFO] [stdout] | ^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: within `StaticMap`, the trait `Linearize` is not implemented for `ColorFormat` [INFO] [stdout] --> src/lib.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 9 | enum ColorFormat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Linearize`: [INFO] [stdout] () [INFO] [stdout] FpCategory [INFO] [stdout] Infallible [INFO] [stdout] PhantomData [INFO] [stdout] PhantomPinned [INFO] [stdout] Shutdown [INFO] [stdout] bool [INFO] [stdout] i16 [INFO] [stdout] and 7 others [INFO] [stdout] note: required because it appears within the type `StaticMap` [INFO] [stdout] --> /opt/rustwide/workdir/src/map.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 165 | pub struct StaticMap( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] note: required by a bound in `default` [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/default.rs:140:5 [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ColorFormat: Linearize` is not satisfied [INFO] [stdout] --> src/lib.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 17 | channels[ColorFormat::R] = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Linearize` is not implemented for `ColorFormat` [INFO] [stdout] --> src/lib.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 9 | enum ColorFormat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Linearize`: [INFO] [stdout] () [INFO] [stdout] FpCategory [INFO] [stdout] Infallible [INFO] [stdout] PhantomData [INFO] [stdout] PhantomPinned [INFO] [stdout] Shutdown [INFO] [stdout] bool [INFO] [stdout] i16 [INFO] [stdout] and 7 others [INFO] [stdout] = note: required for `StaticMap` to implement `Index` [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `StaticMap` [INFO] [stdout] --> src/lib.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 18 | channels[ColorFormat::Rgb { alpha: false }] = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `StaticMap` [INFO] [stdout] --> src/lib.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 19 | channels[ColorFormat::Rgb { alpha: true }] = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `StaticMap` [INFO] [stdout] --> src/lib.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(channels[ColorFormat::Rgb { alpha: false }], 3); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ColorFormat: Linearize` is not satisfied in `StaticMap` [INFO] [stdout] --> src/lib.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 16 | let mut channels = StaticMap::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: within `StaticMap`, the trait `Linearize` is not implemented for `ColorFormat` [INFO] [stdout] --> src/lib.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 9 | enum ColorFormat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Linearize`: [INFO] [stdout] () [INFO] [stdout] FpCategory [INFO] [stdout] Infallible [INFO] [stdout] PhantomData [INFO] [stdout] PhantomPinned [INFO] [stdout] Shutdown [INFO] [stdout] bool [INFO] [stdout] i16 [INFO] [stdout] and 7 others [INFO] [stdout] note: required because it appears within the type `StaticMap` [INFO] [stdout] --> /opt/rustwide/workdir/src/map.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 165 | pub struct StaticMap( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] = note: the return type of a function must have a statically known size [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0608. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 35) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `linearize_derive` [INFO] [stdout] --> src/lib.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 6 | use linearize_derive::Linearize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `linearize_derive` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `linearize_derive`, use `cargo add linearize_derive` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ColorFormat: Linearize` is not satisfied [INFO] [stdout] --> src/lib.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 16 | let channels = static_map! { [INFO] [stdout] | ________________^ [INFO] [stdout] 17 | | ColorFormat::R => 1, [INFO] [stdout] 18 | | ColorFormat::Rgb { alpha } => 3 + alpha as u32, [INFO] [stdout] 19 | | }; [INFO] [stdout] | |_^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Linearize` is not implemented for `ColorFormat` [INFO] [stdout] --> src/lib.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 9 | enum ColorFormat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Linearize`: [INFO] [stdout] () [INFO] [stdout] FpCategory [INFO] [stdout] Infallible [INFO] [stdout] PhantomData [INFO] [stdout] PhantomPinned [INFO] [stdout] Shutdown [INFO] [stdout] bool [INFO] [stdout] i16 [INFO] [stdout] and 7 others [INFO] [stdout] note: required by a bound in `linearize::Builder` [INFO] [stdout] --> /opt/rustwide/workdir/src/macro.rs:325:8 [INFO] [stdout] | [INFO] [stdout] 323 | pub struct Builder(pub MaybeUninit>) [INFO] [stdout] | ------- required by a bound in this struct [INFO] [stdout] 324 | where [INFO] [stdout] 325 | L: Linearize; [INFO] [stdout] | ^^^^^^^^^ required by this bound in `Builder` [INFO] [stdout] = note: this error originates in the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ColorFormat: Linearize` is not satisfied [INFO] [stdout] --> src/lib.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 16 | let channels = static_map! { [INFO] [stdout] | ________________^ [INFO] [stdout] 17 | | ColorFormat::R => 1, [INFO] [stdout] 18 | | ColorFormat::Rgb { alpha } => 3 + alpha as u32, [INFO] [stdout] 19 | | }; [INFO] [stdout] | |_^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Linearize` is not implemented for `ColorFormat` [INFO] [stdout] --> src/lib.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 9 | enum ColorFormat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Linearize`: [INFO] [stdout] () [INFO] [stdout] FpCategory [INFO] [stdout] Infallible [INFO] [stdout] PhantomData [INFO] [stdout] PhantomPinned [INFO] [stdout] Shutdown [INFO] [stdout] bool [INFO] [stdout] i16 [INFO] [stdout] and 7 others [INFO] [stdout] note: required by a bound in `linearize::Builder::::new` [INFO] [stdout] --> /opt/rustwide/workdir/src/macro.rs:329:8 [INFO] [stdout] | [INFO] [stdout] 329 | L: Linearize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `Builder::::new` [INFO] [stdout] ... [INFO] [stdout] 334 | pub const fn new() -> Self { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ColorFormat: Linearize` is not satisfied [INFO] [stdout] --> src/lib.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 16 | let channels = static_map! { [INFO] [stdout] | ________________^ [INFO] [stdout] 17 | | ColorFormat::R => 1, [INFO] [stdout] 18 | | ColorFormat::Rgb { alpha } => 3 + alpha as u32, [INFO] [stdout] 19 | | }; [INFO] [stdout] | |_^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Linearize` is not implemented for `ColorFormat` [INFO] [stdout] --> src/lib.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 9 | enum ColorFormat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Linearize`: [INFO] [stdout] () [INFO] [stdout] FpCategory [INFO] [stdout] Infallible [INFO] [stdout] PhantomData [INFO] [stdout] PhantomPinned [INFO] [stdout] Shutdown [INFO] [stdout] bool [INFO] [stdout] i16 [INFO] [stdout] and 7 others [INFO] [stdout] note: required by a bound in `linearize::Builder::::get` [INFO] [stdout] --> /opt/rustwide/workdir/src/macro.rs:329:8 [INFO] [stdout] | [INFO] [stdout] 329 | L: Linearize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `Builder::::get` [INFO] [stdout] ... [INFO] [stdout] 383 | pub const unsafe fn get(self) -> StaticMap { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the macro `$crate::static_map_internal_wrapper` which comes from the expansion of the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ColorFormat: Linearize` is not satisfied [INFO] [stdout] --> src/lib.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 16 | let channels = static_map! { [INFO] [stdout] | ________________^ [INFO] [stdout] 17 | | ColorFormat::R => 1, [INFO] [stdout] 18 | | ColorFormat::Rgb { alpha } => 3 + alpha as u32, [INFO] [stdout] 19 | | }; [INFO] [stdout] | |_^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Linearize` is not implemented for `ColorFormat` [INFO] [stdout] --> src/lib.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 9 | enum ColorFormat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Linearize`: [INFO] [stdout] () [INFO] [stdout] FpCategory [INFO] [stdout] Infallible [INFO] [stdout] PhantomData [INFO] [stdout] PhantomPinned [INFO] [stdout] Shutdown [INFO] [stdout] bool [INFO] [stdout] i16 [INFO] [stdout] and 7 others [INFO] [stdout] note: required by a bound in `linearize::Builder::::len` [INFO] [stdout] --> /opt/rustwide/workdir/src/macro.rs:329:8 [INFO] [stdout] | [INFO] [stdout] 329 | L: Linearize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `Builder::::len` [INFO] [stdout] ... [INFO] [stdout] 341 | pub const fn len(&self) -> usize { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the macro `$crate::static_map_internal` which comes from the expansion of the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ColorFormat: Linearize` is not satisfied [INFO] [stdout] --> src/lib.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 16 | let channels = static_map! { [INFO] [stdout] | ________________^ [INFO] [stdout] 17 | | ColorFormat::R => 1, [INFO] [stdout] 18 | | ColorFormat::Rgb { alpha } => 3 + alpha as u32, [INFO] [stdout] 19 | | }; [INFO] [stdout] | |_^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Linearize` is not implemented for `ColorFormat` [INFO] [stdout] --> src/lib.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 9 | enum ColorFormat { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Linearize`: [INFO] [stdout] () [INFO] [stdout] FpCategory [INFO] [stdout] Infallible [INFO] [stdout] PhantomData [INFO] [stdout] PhantomPinned [INFO] [stdout] Shutdown [INFO] [stdout] bool [INFO] [stdout] i16 [INFO] [stdout] and 7 others [INFO] [stdout] note: required by a bound in `linearize::Builder::::key` [INFO] [stdout] --> /opt/rustwide/workdir/src/macro.rs:329:8 [INFO] [stdout] | [INFO] [stdout] 329 | L: Linearize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `Builder::::key` [INFO] [stdout] ... [INFO] [stdout] 351 | pub unsafe fn key(&self, i: usize) -> L { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] = note: this error originates in the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `set` exists for struct `linearize::Builder`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 9 | enum ColorFormat { [INFO] [stdout] | ---------------- doesn't satisfy `ColorFormat: Linearize` [INFO] [stdout] ... [INFO] [stdout] 16 | let channels = static_map! { [INFO] [stdout] | ________________^ [INFO] [stdout] 17 | | ColorFormat::R => 1, [INFO] [stdout] 18 | | ColorFormat::Rgb { alpha } => 3 + alpha as u32, [INFO] [stdout] 19 | | }; [INFO] [stdout] | |_^ method cannot be called on `linearize::Builder` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `ColorFormat: Linearize` [INFO] [stdout] note: the trait `Linearize` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:114:1 [INFO] [stdout] | [INFO] [stdout] 114 | pub unsafe trait Linearize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `get` exists for struct `linearize::Builder`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 9 | enum ColorFormat { [INFO] [stdout] | ---------------- doesn't satisfy `ColorFormat: Linearize` [INFO] [stdout] ... [INFO] [stdout] 16 | let channels = static_map! { [INFO] [stdout] | ________________^ [INFO] [stdout] 17 | | ColorFormat::R => 1, [INFO] [stdout] 18 | | ColorFormat::Rgb { alpha } => 3 + alpha as u32, [INFO] [stdout] 19 | | }; [INFO] [stdout] | |_^ method cannot be called on `linearize::Builder` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `ColorFormat: Linearize` [INFO] [stdout] note: the trait `Linearize` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:114:1 [INFO] [stdout] | [INFO] [stdout] 114 | pub unsafe trait Linearize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `$crate::static_map_internal` which comes from the expansion of the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macro.rs - r#macro::static_map (line 126) stdout ---- [INFO] [stdout] error: cannot find derive macro `Linearize` in this scope [INFO] [stdout] --> src/macro.rs:129:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Linearize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Linearize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/macro.rs:128:40 [INFO] [stdout] | [INFO] [stdout] 5 | use linearize::{StaticMap, static_map, Linearize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `linearize` in this scope [INFO] [stdout] --> src/macro.rs:130:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[linearize(const)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `linearize` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/macro.rs:126:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate r#linearize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Key: Linearize` is not satisfied [INFO] [stdout] --> src/macro.rs:136:12 [INFO] [stdout] | [INFO] [stdout] 13 | const MAP: StaticMap = static_map! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Linearize` is not implemented for `Key` [INFO] [stdout] --> src/macro.rs:131:1 [INFO] [stdout] | [INFO] [stdout] 8 | enum Key { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Linearize`: [INFO] [stdout] () [INFO] [stdout] FpCategory [INFO] [stdout] Infallible [INFO] [stdout] PhantomData [INFO] [stdout] PhantomPinned [INFO] [stdout] Shutdown [INFO] [stdout] bool [INFO] [stdout] i16 [INFO] [stdout] and 7 others [INFO] [stdout] note: required by a bound in `StaticMap` [INFO] [stdout] --> /opt/rustwide/workdir/src/map.rs:170:8 [INFO] [stdout] | [INFO] [stdout] 165 | pub struct StaticMap( [INFO] [stdout] | --------- required by a bound in this struct [INFO] [stdout] ... [INFO] [stdout] 170 | L: Linearize + ?Sized; [INFO] [stdout] | ^^^^^^^^^ required by this bound in `StaticMap` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Key: Linearize` is not satisfied [INFO] [stdout] --> src/macro.rs:136:34 [INFO] [stdout] | [INFO] [stdout] 13 | const MAP: StaticMap = static_map! { [INFO] [stdout] | __________________________________^ [INFO] [stdout] 14 | | of type Key: [INFO] [stdout] 15 | | Key::False => 0, [INFO] [stdout] 16 | | Key::True => 1, [INFO] [stdout] 17 | | }; [INFO] [stdout] | |_^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Linearize` is not implemented for `Key` [INFO] [stdout] --> src/macro.rs:131:1 [INFO] [stdout] | [INFO] [stdout] 8 | enum Key { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Linearize`: [INFO] [stdout] () [INFO] [stdout] FpCategory [INFO] [stdout] Infallible [INFO] [stdout] PhantomData [INFO] [stdout] PhantomPinned [INFO] [stdout] Shutdown [INFO] [stdout] bool [INFO] [stdout] i16 [INFO] [stdout] and 7 others [INFO] [stdout] note: required by a bound in `linearize::Builder` [INFO] [stdout] --> /opt/rustwide/workdir/src/macro.rs:325:8 [INFO] [stdout] | [INFO] [stdout] 323 | pub struct Builder(pub MaybeUninit>) [INFO] [stdout] | ------- required by a bound in this struct [INFO] [stdout] 324 | where [INFO] [stdout] 325 | L: Linearize; [INFO] [stdout] | ^^^^^^^^^ required by this bound in `Builder` [INFO] [stdout] = note: this error originates in the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `StaticMap` [INFO] [stdout] --> src/macro.rs:141:15 [INFO] [stdout] | [INFO] [stdout] 18 | assert_eq!(MAP[Key::False], 0); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `StaticMap` [INFO] [stdout] --> src/macro.rs:142:15 [INFO] [stdout] | [INFO] [stdout] 19 | assert_eq!(MAP[Key::True], 1); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `new` exists for struct `linearize::Builder`, but its trait bounds were not satisfied [INFO] [stdout] --> src/macro.rs:136:34 [INFO] [stdout] | [INFO] [stdout] 8 | enum Key { [INFO] [stdout] | -------- doesn't satisfy `Key: Linearize` [INFO] [stdout] ... [INFO] [stdout] 13 | const MAP: StaticMap = static_map! { [INFO] [stdout] | __________________________________^ [INFO] [stdout] 14 | | of type Key: [INFO] [stdout] 15 | | Key::False => 0, [INFO] [stdout] 16 | | Key::True => 1, [INFO] [stdout] 17 | | }; [INFO] [stdout] | |_^ function or associated item cannot be called on `linearize::Builder` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Key: Linearize` [INFO] [stdout] note: the trait `Linearize` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:114:1 [INFO] [stdout] | [INFO] [stdout] 114 | pub unsafe trait Linearize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `__from_linear_unchecked_fb2f0b31_5b5a_48b4_9264_39d0bdf94f1d` found for enum `Key` in the current scope [INFO] [stdout] --> src/macro.rs:136:34 [INFO] [stdout] | [INFO] [stdout] 8 | enum Key { [INFO] [stdout] | -------- variant or associated item `__from_linear_unchecked_fb2f0b31_5b5a_48b4_9264_39d0bdf94f1d` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 13 | const MAP: StaticMap = static_map! { [INFO] [stdout] | __________________________________^ [INFO] [stdout] 14 | | of type Key: [INFO] [stdout] 15 | | Key::False => 0, [INFO] [stdout] 16 | | Key::True => 1, [INFO] [stdout] 17 | | }; [INFO] [stdout] | |_^ variant or associated item not found in `Key` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Key: Linearize` is not satisfied [INFO] [stdout] --> src/macro.rs:136:34 [INFO] [stdout] | [INFO] [stdout] 13 | const MAP: StaticMap = static_map! { [INFO] [stdout] | __________________________________^ [INFO] [stdout] 14 | | of type Key: [INFO] [stdout] 15 | | Key::False => 0, [INFO] [stdout] 16 | | Key::True => 1, [INFO] [stdout] 17 | | }; [INFO] [stdout] | |_^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Linearize` is not implemented for `Key` [INFO] [stdout] --> src/macro.rs:131:1 [INFO] [stdout] | [INFO] [stdout] 8 | enum Key { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Linearize`: [INFO] [stdout] () [INFO] [stdout] FpCategory [INFO] [stdout] Infallible [INFO] [stdout] PhantomData [INFO] [stdout] PhantomPinned [INFO] [stdout] Shutdown [INFO] [stdout] bool [INFO] [stdout] i16 [INFO] [stdout] and 7 others [INFO] [stdout] note: required by a bound in `linearize::Builder` [INFO] [stdout] --> /opt/rustwide/workdir/src/macro.rs:325:8 [INFO] [stdout] | [INFO] [stdout] 323 | pub struct Builder(pub MaybeUninit>) [INFO] [stdout] | ------- required by a bound in this struct [INFO] [stdout] 324 | where [INFO] [stdout] 325 | L: Linearize; [INFO] [stdout] | ^^^^^^^^^ required by this bound in `Builder` [INFO] [stdout] = note: this error originates in the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_mut_ptr` exists for union `MaybeUninit>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/macro.rs:136:34 [INFO] [stdout] | [INFO] [stdout] 8 | enum Key { [INFO] [stdout] | -------- doesn't satisfy `Key: Linearize` [INFO] [stdout] ... [INFO] [stdout] 13 | const MAP: StaticMap = static_map! { [INFO] [stdout] | __________________________________^ [INFO] [stdout] 14 | | of type Key: [INFO] [stdout] 15 | | Key::False => 0, [INFO] [stdout] 16 | | Key::True => 1, [INFO] [stdout] 17 | | }; [INFO] [stdout] | |_^ method cannot be called on `MaybeUninit>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/map.rs:165:1 [INFO] [stdout] | [INFO] [stdout] 165 | pub struct StaticMap( [INFO] [stdout] | -------------------------- doesn't satisfy `StaticMap: Sized` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Key: Linearize` [INFO] [stdout] which is required by `StaticMap: Sized` [INFO] [stdout] note: the trait `Linearize` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:114:1 [INFO] [stdout] | [INFO] [stdout] 114 | pub unsafe trait Linearize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599, E0608. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/map.rs - map::StaticMap (line 28) stdout ---- [INFO] [stdout] error: cannot find derive macro `Linearize` in this scope [INFO] [stdout] --> src/map.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Linearize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Linearize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/map.rs:30:28 [INFO] [stdout] | [INFO] [stdout] 5 | use linearize::{StaticMap, Linearize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Format: Linearize` is not satisfied in `StaticMap` [INFO] [stdout] --> src/map.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 13 | let mut channels = StaticMap::default(); [INFO] [stdout] | ^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: within `StaticMap`, the trait `Linearize` is not implemented for `Format` [INFO] [stdout] --> src/map.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 7 | enum Format { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Linearize`: [INFO] [stdout] () [INFO] [stdout] FpCategory [INFO] [stdout] Infallible [INFO] [stdout] PhantomData [INFO] [stdout] PhantomPinned [INFO] [stdout] Shutdown [INFO] [stdout] bool [INFO] [stdout] i16 [INFO] [stdout] and 7 others [INFO] [stdout] note: required because it appears within the type `StaticMap` [INFO] [stdout] --> /opt/rustwide/workdir/src/map.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 165 | pub struct StaticMap( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] note: required by a bound in `default` [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/default.rs:140:5 [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Format: Linearize` is not satisfied [INFO] [stdout] --> src/map.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 14 | channels[Format::R] = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Linearize` is not implemented for `Format` [INFO] [stdout] --> src/map.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 7 | enum Format { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Linearize`: [INFO] [stdout] () [INFO] [stdout] FpCategory [INFO] [stdout] Infallible [INFO] [stdout] PhantomData [INFO] [stdout] PhantomPinned [INFO] [stdout] Shutdown [INFO] [stdout] bool [INFO] [stdout] i16 [INFO] [stdout] and 7 others [INFO] [stdout] = note: required for `StaticMap` to implement `Index` [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `StaticMap` [INFO] [stdout] --> src/map.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 15 | channels[Format::Rgb] = 3; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `StaticMap` [INFO] [stdout] --> src/map.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 16 | channels[Format::Rgba] = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0608]: cannot index into a value of type `StaticMap` [INFO] [stdout] --> src/map.rs:42:20 [INFO] [stdout] | [INFO] [stdout] 17 | assert_eq!(channels[Format::R], 1); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Format: Linearize` is not satisfied in `StaticMap` [INFO] [stdout] --> src/map.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 13 | let mut channels = StaticMap::default(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: within `StaticMap`, the trait `Linearize` is not implemented for `Format` [INFO] [stdout] --> src/map.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 7 | enum Format { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Linearize`: [INFO] [stdout] () [INFO] [stdout] FpCategory [INFO] [stdout] Infallible [INFO] [stdout] PhantomData [INFO] [stdout] PhantomPinned [INFO] [stdout] Shutdown [INFO] [stdout] bool [INFO] [stdout] i16 [INFO] [stdout] and 7 others [INFO] [stdout] note: required because it appears within the type `StaticMap` [INFO] [stdout] --> /opt/rustwide/workdir/src/map.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 165 | pub struct StaticMap( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] = note: the return type of a function must have a statically known size [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0608. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macro.rs - r#macro::static_map (line 166) stdout ---- [INFO] [stdout] error: cannot find derive macro `Linearize` in this scope [INFO] [stdout] --> src/macro.rs:169:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Linearize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Linearize` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/macro.rs:168:40 [INFO] [stdout] | [INFO] [stdout] 5 | use linearize::{StaticMap, static_map, Linearize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `linearize` in this scope [INFO] [stdout] --> src/macro.rs:170:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[linearize(const)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `linearize` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/macro.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate r#linearize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Key: Linearize` is not satisfied [INFO] [stdout] --> src/macro.rs:179:11 [INFO] [stdout] | [INFO] [stdout] 16 | let map = static_map! { [INFO] [stdout] | ___________^ [INFO] [stdout] 17 | | constants of type Key: [INFO] [stdout] 18 | | Key::False => on_false, [INFO] [stdout] 19 | | Key::True => on_true, [INFO] [stdout] 20 | | }; [INFO] [stdout] | |_^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Linearize` is not implemented for `Key` [INFO] [stdout] --> src/macro.rs:171:1 [INFO] [stdout] | [INFO] [stdout] 8 | enum Key { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Linearize`: [INFO] [stdout] () [INFO] [stdout] FpCategory [INFO] [stdout] Infallible [INFO] [stdout] PhantomData [INFO] [stdout] PhantomPinned [INFO] [stdout] Shutdown [INFO] [stdout] bool [INFO] [stdout] i16 [INFO] [stdout] and 7 others [INFO] [stdout] note: required by a bound in `linearize::Builder` [INFO] [stdout] --> /opt/rustwide/workdir/src/macro.rs:325:8 [INFO] [stdout] | [INFO] [stdout] 323 | pub struct Builder(pub MaybeUninit>) [INFO] [stdout] | ------- required by a bound in this struct [INFO] [stdout] 324 | where [INFO] [stdout] 325 | L: Linearize; [INFO] [stdout] | ^^^^^^^^^ required by this bound in `Builder` [INFO] [stdout] = note: this error originates in the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Key: Linearize` is not satisfied [INFO] [stdout] --> src/macro.rs:179:11 [INFO] [stdout] | [INFO] [stdout] 16 | let map = static_map! { [INFO] [stdout] | ___________^ [INFO] [stdout] 17 | | constants of type Key: [INFO] [stdout] 18 | | Key::False => on_false, [INFO] [stdout] 19 | | Key::True => on_true, [INFO] [stdout] 20 | | }; [INFO] [stdout] | |_^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Linearize` is not implemented for `Key` [INFO] [stdout] --> src/macro.rs:171:1 [INFO] [stdout] | [INFO] [stdout] 8 | enum Key { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Linearize`: [INFO] [stdout] () [INFO] [stdout] FpCategory [INFO] [stdout] Infallible [INFO] [stdout] PhantomData [INFO] [stdout] PhantomPinned [INFO] [stdout] Shutdown [INFO] [stdout] bool [INFO] [stdout] i16 [INFO] [stdout] and 7 others [INFO] [stdout] note: required by a bound in `linearize::Builder` [INFO] [stdout] --> /opt/rustwide/workdir/src/macro.rs:325:8 [INFO] [stdout] | [INFO] [stdout] 323 | pub struct Builder(pub MaybeUninit>) [INFO] [stdout] | ------- required by a bound in this struct [INFO] [stdout] 324 | where [INFO] [stdout] 325 | L: Linearize; [INFO] [stdout] | ^^^^^^^^^ required by this bound in `Builder` [INFO] [stdout] = note: this error originates in the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `new` exists for struct `linearize::Builder`, but its trait bounds were not satisfied [INFO] [stdout] --> src/macro.rs:179:11 [INFO] [stdout] | [INFO] [stdout] 8 | enum Key { [INFO] [stdout] | -------- doesn't satisfy `Key: Linearize` [INFO] [stdout] ... [INFO] [stdout] 16 | let map = static_map! { [INFO] [stdout] | ___________^ [INFO] [stdout] 17 | | constants of type Key: [INFO] [stdout] 18 | | Key::False => on_false, [INFO] [stdout] 19 | | Key::True => on_true, [INFO] [stdout] 20 | | }; [INFO] [stdout] | |_^ function or associated item cannot be called on `linearize::Builder` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Key: Linearize` [INFO] [stdout] note: the trait `Linearize` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:114:1 [INFO] [stdout] | [INFO] [stdout] 114 | pub unsafe trait Linearize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Key: Linearize` is not satisfied [INFO] [stdout] --> src/macro.rs:180:22 [INFO] [stdout] | [INFO] [stdout] 17 | constants of type Key: [INFO] [stdout] | ^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Linearize` is not implemented for `Key` [INFO] [stdout] --> src/macro.rs:171:1 [INFO] [stdout] | [INFO] [stdout] 8 | enum Key { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Linearize`: [INFO] [stdout] () [INFO] [stdout] FpCategory [INFO] [stdout] Infallible [INFO] [stdout] PhantomData [INFO] [stdout] PhantomPinned [INFO] [stdout] Shutdown [INFO] [stdout] bool [INFO] [stdout] i16 [INFO] [stdout] and 7 others [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `__linearize_d66aa8fa_6974_4651_b2b7_75291a9e7105` found for enum `Key` in the current scope [INFO] [stdout] --> src/macro.rs:179:11 [INFO] [stdout] | [INFO] [stdout] 8 | enum Key { [INFO] [stdout] | -------- variant or associated item `__linearize_d66aa8fa_6974_4651_b2b7_75291a9e7105` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 16 | let map = static_map! { [INFO] [stdout] | ___________^ [INFO] [stdout] 17 | | constants of type Key: [INFO] [stdout] 18 | | Key::False => on_false, [INFO] [stdout] 19 | | Key::True => on_true, [INFO] [stdout] 20 | | }; [INFO] [stdout] | |_^ variant or associated item not found in `Key` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `__linearize_d66aa8fa_6974_4651_b2b7_75291a9e7105` found for enum `Key` in the current scope [INFO] [stdout] --> src/macro.rs:179:11 [INFO] [stdout] | [INFO] [stdout] 8 | enum Key { [INFO] [stdout] | -------- variant or associated item `__linearize_d66aa8fa_6974_4651_b2b7_75291a9e7105` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 16 | let map = static_map! { [INFO] [stdout] | ___________^ [INFO] [stdout] 17 | | constants of type Key: [INFO] [stdout] 18 | | Key::False => on_false, [INFO] [stdout] 19 | | Key::True => on_true, [INFO] [stdout] 20 | | }; [INFO] [stdout] | |_^ variant or associated item not found in `Key` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Key: Linearize` is not satisfied [INFO] [stdout] --> src/macro.rs:179:11 [INFO] [stdout] | [INFO] [stdout] 16 | let map = static_map! { [INFO] [stdout] | ___________^ [INFO] [stdout] 17 | | constants of type Key: [INFO] [stdout] 18 | | Key::False => on_false, [INFO] [stdout] 19 | | Key::True => on_true, [INFO] [stdout] 20 | | }; [INFO] [stdout] | |_^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Linearize` is not implemented for `Key` [INFO] [stdout] --> src/macro.rs:171:1 [INFO] [stdout] | [INFO] [stdout] 8 | enum Key { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `Linearize`: [INFO] [stdout] () [INFO] [stdout] FpCategory [INFO] [stdout] Infallible [INFO] [stdout] PhantomData [INFO] [stdout] PhantomPinned [INFO] [stdout] Shutdown [INFO] [stdout] bool [INFO] [stdout] i16 [INFO] [stdout] and 7 others [INFO] [stdout] note: required by a bound in `linearize::Builder` [INFO] [stdout] --> /opt/rustwide/workdir/src/macro.rs:325:8 [INFO] [stdout] | [INFO] [stdout] 323 | pub struct Builder(pub MaybeUninit>) [INFO] [stdout] | ------- required by a bound in this struct [INFO] [stdout] 324 | where [INFO] [stdout] 325 | L: Linearize; [INFO] [stdout] | ^^^^^^^^^ required by this bound in `Builder` [INFO] [stdout] = note: this error originates in the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_mut_ptr` exists for union `MaybeUninit>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/macro.rs:179:11 [INFO] [stdout] | [INFO] [stdout] 8 | enum Key { [INFO] [stdout] | -------- doesn't satisfy `Key: Linearize` [INFO] [stdout] ... [INFO] [stdout] 16 | let map = static_map! { [INFO] [stdout] | ___________^ [INFO] [stdout] 17 | | constants of type Key: [INFO] [stdout] 18 | | Key::False => on_false, [INFO] [stdout] 19 | | Key::True => on_true, [INFO] [stdout] 20 | | }; [INFO] [stdout] | |_^ method cannot be called on `MaybeUninit>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/map.rs:165:1 [INFO] [stdout] | [INFO] [stdout] 165 | pub struct StaticMap( [INFO] [stdout] | -------------------------- doesn't satisfy `StaticMap: Sized` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Key: Linearize` [INFO] [stdout] which is required by `StaticMap: Sized` [INFO] [stdout] note: the trait `Linearize` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:114:1 [INFO] [stdout] | [INFO] [stdout] 114 | pub unsafe trait Linearize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 13) [INFO] [stdout] src/lib.rs - (line 35) [INFO] [stdout] src/macro.rs - r#macro::static_map (line 126) [INFO] [stdout] src/macro.rs - r#macro::static_map (line 166) [INFO] [stdout] src/map.rs - map::StaticMap (line 28) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 41 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.78s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "867a6692594188413cdd8e00451e16a3d583ab664769b84fb457e180e6de0631", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "867a6692594188413cdd8e00451e16a3d583ab664769b84fb457e180e6de0631", kill_on_drop: false }` [INFO] [stdout] 867a6692594188413cdd8e00451e16a3d583ab664769b84fb457e180e6de0631