[INFO] fetching crate rust-embed 8.7.2... [INFO] checking rust-embed-8.7.2 against try#ae40d86d689c7b8b0a48c1e4b9d38e02bc2beab1 for pr-145108 [INFO] extracting crate rust-embed 8.7.2 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate rust-embed 8.7.2 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate rust-embed 8.7.2 [INFO] tweaked toml for crates.io crate rust-embed 8.7.2 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rust-embed 8.7.2 on toolchain ae40d86d689c7b8b0a48c1e4b9d38e02bc2beab1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ae40d86d689c7b8b0a48c1e4b9d38e02bc2beab1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rust-embed 8.7.2 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" "+ae40d86d689c7b8b0a48c1e4b9d38e02bc2beab1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+ae40d86d689c7b8b0a48c1e4b9d38e02bc2beab1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f855dffa9dd8119ea7f09d40e60d445bc53287825ddad72493fc65a400d5e8aa [INFO] running `Command { std: "docker" "start" "-a" "f855dffa9dd8119ea7f09d40e60d445bc53287825ddad72493fc65a400d5e8aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f855dffa9dd8119ea7f09d40e60d445bc53287825ddad72493fc65a400d5e8aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f855dffa9dd8119ea7f09d40e60d445bc53287825ddad72493fc65a400d5e8aa", kill_on_drop: false }` [INFO] [stdout] f855dffa9dd8119ea7f09d40e60d445bc53287825ddad72493fc65a400d5e8aa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+ae40d86d689c7b8b0a48c1e4b9d38e02bc2beab1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8c929332fa43f4e49a222abcc98203ae66788dd199f687cc22dac305c20fd9df [INFO] running `Command { std: "docker" "start" "-a" "8c929332fa43f4e49a222abcc98203ae66788dd199f687cc22dac305c20fd9df", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking rust-embed-utils v8.7.2 [INFO] [stderr] Compiling rust-embed-impl v8.7.2 [INFO] [stderr] Checking rust-embed v8.7.2 (/opt/rustwide/workdir) [INFO] [stdout] error: cannot find derive macro `Embed` in this scope [INFO] [stdout] --> tests/metadata.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Embed)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Embed` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> tests/metadata.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use rust_embed::{Embed, EmbeddedFile}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `folder` in this scope [INFO] [stdout] --> tests/metadata.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[folder = "examples/public/"] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `folder` is an attribute that can be used by the derive macro `RustEmbed`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 7 + #[derive(RustEmbed)] [INFO] [stdout] 8 | struct Asset; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get` found for struct `Asset` in the current scope [INFO] [stdout] --> tests/metadata.rs:11:41 [INFO] [stdout] | [INFO] [stdout] 7 | struct Asset; [INFO] [stdout] | ------------ function or associated item `get` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 11 | let index_file: EmbeddedFile = Asset::get("index.html").expect("index.html exists"); [INFO] [stdout] | ^^^ function or associated item not found in `Asset` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Embed` [INFO] [stdout] candidate #2: `SliceIndex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get` found for struct `Asset` in the current scope [INFO] [stdout] --> tests/metadata.rs:22:41 [INFO] [stdout] | [INFO] [stdout] 7 | struct Asset; [INFO] [stdout] | ------------ function or associated item `get` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 22 | let index_file: EmbeddedFile = Asset::get("index.html").expect("index.html exists"); [INFO] [stdout] | ^^^ function or associated item not found in `Asset` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Embed` [INFO] [stdout] candidate #2: `SliceIndex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get` found for struct `Asset` in the current scope [INFO] [stdout] --> tests/metadata.rs:33:41 [INFO] [stdout] | [INFO] [stdout] 7 | struct Asset; [INFO] [stdout] | ------------ function or associated item `get` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 33 | let index_file: EmbeddedFile = Asset::get("index.html").expect("index.html exists"); [INFO] [stdout] | ^^^ function or associated item not found in `Asset` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Embed` [INFO] [stdout] candidate #2: `SliceIndex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Embed` in this scope [INFO] [stdout] --> tests/metadata_only.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Embed)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Embed` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> tests/metadata_only.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use rust_embed::{Embed, EmbeddedFile}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Embed` in this scope [INFO] [stdout] --> tests/allow_missing.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Embed)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Embed` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> tests/allow_missing.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rust_embed::Embed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Embed` in this scope [INFO] [stdout] --> tests/prefix.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Embed)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Embed` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> tests/prefix.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rust_embed::Embed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `folder` in this scope [INFO] [stdout] --> tests/allow_missing.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 6 | #[folder = "examples/missing/"] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `folder` is an attribute that can be used by the derive macro `RustEmbed`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 8 + #[derive(RustEmbed)] [INFO] [stdout] 9 | struct Asset; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-embed` (test "metadata") due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: cannot find attribute `folder` in this scope [INFO] [stdout] --> tests/metadata_only.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[folder = "examples/public/"] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `folder` is an attribute that can be used by the derive macro `RustEmbed`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(RustEmbed)] [INFO] [stdout] 7 | struct Asset; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `folder` in this scope [INFO] [stdout] --> tests/prefix.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[folder = "examples/public/"] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `folder` is an attribute that can be used by the derive macro `RustEmbed`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(RustEmbed)] [INFO] [stdout] 7 | struct Asset; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `prefix` in this scope [INFO] [stdout] --> tests/prefix.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[prefix = "prefix/"] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `prefix` is an attribute that can be used by the derive macro `RustEmbed`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(RustEmbed)] [INFO] [stdout] 7 | struct Asset; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Embed` in this scope [INFO] [stdout] --> examples/basic.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Embed)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Embed` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> examples/basic.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rust_embed::Embed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `folder` in this scope [INFO] [stdout] --> examples/basic.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[folder = "examples/public/"] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `folder` is an attribute that can be used by the derive macro `RustEmbed`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 5 + #[derive(RustEmbed)] [INFO] [stdout] 6 | struct Asset; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Embed` in this scope [INFO] [stdout] --> tests/path_traversal_attack.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Embed)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Embed` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> tests/path_traversal_attack.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rust_embed::Embed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `folder` in this scope [INFO] [stdout] --> tests/path_traversal_attack.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[folder = "examples/public/"] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `folder` is an attribute that can be used by the derive macro `RustEmbed`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 5 + #[derive(RustEmbed)] [INFO] [stdout] 6 | struct Assets; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Embed` in this scope [INFO] [stdout] --> tests/path_traversal_attack.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Embed)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Embed` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> tests/path_traversal_attack.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rust_embed::Embed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `folder` in this scope [INFO] [stdout] --> tests/path_traversal_attack.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 16 | #[folder = "examples/axum-spa/"] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `folder` is an attribute that can be used by the derive macro `RustEmbed`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 17 + #[derive(RustEmbed)] [INFO] [stdout] 18 | struct AxumAssets; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get` found for struct `Asset` in the current scope [INFO] [stdout] --> examples/basic.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 5 | struct Asset; [INFO] [stdout] | ------------ function or associated item `get` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 8 | let index_html = Asset::get("index.html").unwrap(); [INFO] [stdout] | ^^^ function or associated item not found in `Asset` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Embed` [INFO] [stdout] candidate #2: `SliceIndex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get` found for struct `Asset` in the current scope [INFO] [stdout] --> tests/prefix.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 6 | struct Asset; [INFO] [stdout] | ------------ function or associated item `get` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 10 | assert!(Asset::get("prefix/index.html").is_some()); [INFO] [stdout] | ^^^ function or associated item not found in `Asset` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Embed` [INFO] [stdout] candidate #2: `SliceIndex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get` found for struct `Assets` in the current scope [INFO] [stdout] --> tests/path_traversal_attack.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 5 | struct Assets; [INFO] [stdout] | ------------- function or associated item `get` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 12 | assert!(Assets::get("../basic.rs").is_none()); [INFO] [stdout] | ^^^ function or associated item not found in `Assets` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Embed` [INFO] [stdout] candidate #2: `SliceIndex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Asset` is never constructed [INFO] [stdout] --> tests/custom_crate_path.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct Asset; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get` found for struct `Asset` in the current scope [INFO] [stdout] --> tests/prefix.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 6 | struct Asset; [INFO] [stdout] | ------------ function or associated item `get` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 15 | assert!(Asset::get("index.html").is_none()); [INFO] [stdout] | ^^^ function or associated item not found in `Asset` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Embed` [INFO] [stdout] candidate #2: `SliceIndex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `metadata_only` in this scope [INFO] [stdout] --> tests/metadata_only.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[metadata_only = true] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `metadata_only` is an attribute that can be used by the derive macro `RustEmbed`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(RustEmbed)] [INFO] [stdout] 7 | struct Asset; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `allow_missing` in this scope [INFO] [stdout] --> tests/allow_missing.rs:7:3 [INFO] [stdout] | [INFO] [stdout] 7 | #[allow_missing = true] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `allow_missing` is an attribute that can be used by the derive macro `RustEmbed`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 8 + #[derive(RustEmbed)] [INFO] [stdout] 9 | struct Asset; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get` found for struct `Assets` in the current scope [INFO] [stdout] --> tests/path_traversal_attack.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 5 | struct Assets; [INFO] [stdout] | ------------- function or associated item `get` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 26 | assert!(Assets::get("../public/symlinks/main.js").is_none()); [INFO] [stdout] | ^^^ function or associated item not found in `Assets` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Embed` [INFO] [stdout] candidate #2: `SliceIndex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `iter` found for struct `Asset` in the current scope [INFO] [stdout] --> tests/prefix.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 6 | struct Asset; [INFO] [stdout] | ------------ function or associated item `iter` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 20 | for file in Asset::iter() { [INFO] [stdout] | ^^^^ function or associated item not found in `Asset` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `iter`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Embed` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-embed` (example "basic") due to 3 previous errors [INFO] [stdout] error: cannot find derive macro `Embed` in this scope [INFO] [stdout] --> tests/lib.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Embed)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Embed` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> tests/lib.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use rust_embed::{Embed, RustEmbed}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `folder` in this scope [INFO] [stdout] --> tests/lib.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 5 | #[folder = "examples/public/"] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `folder` is an attribute that can be used by the derive macro `RustEmbed`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 6 + #[derive(RustEmbed)] [INFO] [stdout] 7 | struct Asset; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get` found for struct `Asset` in the current scope [INFO] [stdout] --> tests/prefix.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 6 | struct Asset; [INFO] [stdout] | ------------ function or associated item `get` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 22 | assert!(Asset::get(file.as_ref()).is_some()); [INFO] [stdout] | ^^^ function or associated item not found in `Asset` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Embed` [INFO] [stdout] candidate #2: `SliceIndex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-embed` (test "path_traversal_attack") due to 6 previous errors [INFO] [stderr] error: could not compile `rust-embed` (test "prefix") due to 7 previous errors [INFO] [stdout] error[E0599]: no function or associated item named `get` found for struct `Asset` in the current scope [INFO] [stdout] --> tests/metadata_only.rs:10:41 [INFO] [stdout] | [INFO] [stdout] 6 | struct Asset; [INFO] [stdout] | ------------ function or associated item `get` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 10 | let index_file: EmbeddedFile = Asset::get("index.html").expect("index.html exists"); [INFO] [stdout] | ^^^ function or associated item not found in `Asset` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Embed` [INFO] [stdout] candidate #2: `SliceIndex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `iter` found for struct `Asset` in the current scope [INFO] [stdout] --> tests/allow_missing.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 8 | struct Asset; [INFO] [stdout] | ------------ function or associated item `iter` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 14 | assert_eq!(Asset::iter().count(), 0); [INFO] [stdout] | ^^^^ function or associated item not found in `Asset` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `iter`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Embed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-embed` (test "allow_missing") due to 4 previous errors [INFO] [stderr] error: could not compile `rust-embed` (test "metadata_only") due to 4 previous errors [INFO] [stdout] error[E0599]: no function or associated item named `get` found for struct `Asset` in the current scope [INFO] [stdout] --> tests/lib.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 6 | struct Asset; [INFO] [stdout] | ------------ function or associated item `get` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 14 | assert!(Asset::get("index.html").is_some(), "index.html should exist"); [INFO] [stdout] | ^^^ function or associated item not found in `Asset` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Embed` [INFO] [stdout] candidate #2: `SliceIndex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get` found for struct `Asset` in the current scope [INFO] [stdout] --> tests/lib.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 6 | struct Asset; [INFO] [stdout] | ------------ function or associated item `get` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 15 | assert!(Asset::get("gg.html").is_none(), "gg.html should not exist"); [INFO] [stdout] | ^^^ function or associated item not found in `Asset` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Embed` [INFO] [stdout] candidate #2: `SliceIndex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get` found for struct `Asset` in the current scope [INFO] [stdout] --> tests/lib.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 6 | struct Asset; [INFO] [stdout] | ------------ function or associated item `get` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 16 | assert!(Asset::get("images/llama.png").is_some(), "llama.png should exist"); [INFO] [stdout] | ^^^ function or associated item not found in `Asset` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Embed` [INFO] [stdout] candidate #2: `SliceIndex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get` found for struct `Asset` in the current scope [INFO] [stdout] --> tests/lib.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 6 | struct Asset; [INFO] [stdout] | ------------ function or associated item `get` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 31 | Asset::get("images\\llama.png").is_some(), [INFO] [stdout] | ^^^ function or associated item not found in `Asset` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Embed` [INFO] [stdout] candidate #2: `SliceIndex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `iter` found for struct `Asset` in the current scope [INFO] [stdout] --> tests/lib.rs:39:22 [INFO] [stdout] | [INFO] [stdout] 6 | struct Asset; [INFO] [stdout] | ------------ function or associated item `iter` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 39 | for file in Asset::iter() { [INFO] [stdout] | ^^^^ function or associated item not found in `Asset` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `iter`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Embed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `get` found for struct `Asset` in the current scope [INFO] [stdout] --> tests/lib.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 6 | struct Asset; [INFO] [stdout] | ------------ function or associated item `get` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 40 | assert!(Asset::get(file.as_ref()).is_some()); [INFO] [stdout] | ^^^ function or associated item not found in `Asset` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Embed` [INFO] [stdout] candidate #2: `SliceIndex` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Asset: Embed` is not satisfied [INFO] [stdout] --> tests/lib.rs:48:32 [INFO] [stdout] | [INFO] [stdout] 48 | trait_works_generic_helper::(); [INFO] [stdout] | ^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `Embed` is not implemented for `Asset` [INFO] [stdout] --> tests/lib.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | struct Asset; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] = help: the trait `Embed` is implemented for `AssetOld` [INFO] [stdout] note: required by a bound in `trait_works_generic_helper` [INFO] [stdout] --> tests/lib.rs:50:34 [INFO] [stdout] | [INFO] [stdout] 50 | fn trait_works_generic_helper() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ required by this bound in `trait_works_generic_helper` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-embed` (test "lib") due to 9 previous errors [INFO] running `Command { std: "docker" "inspect" "8c929332fa43f4e49a222abcc98203ae66788dd199f687cc22dac305c20fd9df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c929332fa43f4e49a222abcc98203ae66788dd199f687cc22dac305c20fd9df", kill_on_drop: false }` [INFO] [stdout] 8c929332fa43f4e49a222abcc98203ae66788dd199f687cc22dac305c20fd9df