[INFO] fetching crate nject-macro 0.4.5... [INFO] testing nject-macro-0.4.5 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate nject-macro 0.4.5 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate nject-macro 0.4.5 [INFO] finished tweaking crates.io crate nject-macro 0.4.5 [INFO] tweaked toml for crates.io crate nject-macro 0.4.5 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate nject-macro 0.4.5 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate nject-macro 0.4.5 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f83698c37c49dd391970d495bb26c2f828ce6ad514ce3157f37289d1637f00c6 [INFO] running `Command { std: "docker" "start" "-a" "f83698c37c49dd391970d495bb26c2f828ce6ad514ce3157f37289d1637f00c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f83698c37c49dd391970d495bb26c2f828ce6ad514ce3157f37289d1637f00c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f83698c37c49dd391970d495bb26c2f828ce6ad514ce3157f37289d1637f00c6", kill_on_drop: false }` [INFO] [stdout] f83698c37c49dd391970d495bb26c2f828ce6ad514ce3157f37289d1637f00c6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 8bc37bbe2f1bb21015a6624142a065c6f20e3d10dfd43a541a630f96a562af4f [INFO] running `Command { std: "docker" "start" "-a" "8bc37bbe2f1bb21015a6624142a065c6f20e3d10dfd43a541a630f96a562af4f", kill_on_drop: false }` [INFO] [stderr] Compiling nject-macro v0.4.5 (/opt/rustwide/workdir) [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.86s [INFO] running `Command { std: "docker" "inspect" "8bc37bbe2f1bb21015a6624142a065c6f20e3d10dfd43a541a630f96a562af4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8bc37bbe2f1bb21015a6624142a065c6f20e3d10dfd43a541a630f96a562af4f", kill_on_drop: false }` [INFO] [stdout] 8bc37bbe2f1bb21015a6624142a065c6f20e3d10dfd43a541a630f96a562af4f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] b6a7e110a6ffdc5c4bb3334e261131c6e08ee52bf3f1c9f539cb0b0bdca522e0 [INFO] running `Command { std: "docker" "start" "-a" "b6a7e110a6ffdc5c4bb3334e261131c6e08ee52bf3f1c9f539cb0b0bdca522e0", kill_on_drop: false }` [INFO] [stderr] Compiling nject-macro v0.4.5 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.59s [INFO] running `Command { std: "docker" "inspect" "b6a7e110a6ffdc5c4bb3334e261131c6e08ee52bf3f1c9f539cb0b0bdca522e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6a7e110a6ffdc5c4bb3334e261131c6e08ee52bf3f1c9f539cb0b0bdca522e0", kill_on_drop: false }` [INFO] [stdout] b6a7e110a6ffdc5c4bb3334e261131c6e08ee52bf3f1c9f539cb0b0bdca522e0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 23787340dce8d1d4bb351c5e14341bd69a2b4fa232a3d3808996dc6ca7c0ed7a [INFO] running `Command { std: "docker" "start" "-a" "23787340dce8d1d4bb351c5e14341bd69a2b4fa232a3d3808996dc6ca7c0ed7a", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/nject_macro-0ee1ae95d1e9e602) [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test core::encoding::base32::test::encode_with_data_should_return_decodable_string ... ok [INFO] [stdout] test core::encoding::base32::test::decode_with_encoded_data_should_return_decoded_data ... ok [INFO] [stdout] test core::encoding::base32::test::encode_with_data_should_return_encoded_data ... ok [INFO] [stdout] test core::encoding::base64::tests::encode_with_data_should_return_decodable_string ... ok [INFO] [stdout] test core::encoding::base64::tests::encode_with_data_should_return_encoded_data ... ok [INFO] [stdout] test core::encoding::base64::tests::decode_with_encoded_data_should_return_decoded_data ... ok [INFO] [stdout] test core::hash::tests::fnv_with_data_should_return_corresponding_hash ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests nject_macro [INFO] [stdout] [INFO] [stdout] running 15 tests [INFO] [stdout] test src/../README.md - (line 128) ... FAILED [INFO] [stdout] test src/../README.md - (line 40) ... FAILED [INFO] [stdout] test src/../README.md - (line 363) ... FAILED [INFO] [stdout] test src/../README.md - (line 147) ... FAILED [INFO] [stdout] test src/../README.md - (line 296) ... FAILED [INFO] [stdout] test src/../README.md - (line 186) ... FAILED [INFO] [stdout] test src/../README.md - (line 230) ... FAILED [INFO] [stdout] test src/../README.md - (line 448) ... FAILED [INFO] [stdout] test src/../README.md - (line 495) ... FAILED [INFO] [stdout] test src/../README.md - (line 64) ... FAILED [INFO] [stdout] test src/../README.md - (line 86) ... FAILED [INFO] [stdout] test src/lib.rs - inject (line 56) ... FAILED [INFO] [stdout] test src/lib.rs - injectable (line 39) ... FAILED [INFO] [stdout] test src/lib.rs - module (line 112) ... FAILED [INFO] [stdout] test src/lib.rs - provider (line 81) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/../README.md - (line 128) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/../README.md:129:5 [INFO] [stdout] | [INFO] [stdout] 2 | use nject::{injectable, provider}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nject` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nject`, use `cargo add nject` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `provide` found for struct `Provider` in the current scope [INFO] [stdout] --> src/../README.md:143:44 [INFO] [stdout] | [INFO] [stdout] 13 | struct Provider; [INFO] [stdout] | --------------- method `provide` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 16 | let _facade: Facade = Provider.provide(); [INFO] [stdout] | ^^^^^^^ method not found in `Provider` [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 `provide`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/../README.md - (line 40) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/../README.md:41:5 [INFO] [stdout] | [INFO] [stdout] 2 | use nject::{injectable, provider}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nject` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nject`, use `cargo add nject` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `provide` found for struct `Provider` in the current scope [INFO] [stdout] --> src/../README.md:60:36 [INFO] [stdout] | [INFO] [stdout] 18 | struct Provider; [INFO] [stdout] | --------------- method `provide` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 21 | let _facade: Facade = Provider.provide(); [INFO] [stdout] | ^^^^^^^ method not found in `Provider` [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 `provide`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/../README.md - (line 363) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/../README.md:364:5 [INFO] [stdout] | [INFO] [stdout] 2 | use nject::{injectable, provider}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nject` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nject`, use `cargo add nject` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/../README.md:367:9 [INFO] [stdout] | [INFO] [stdout] 5 | use nject::{injectable, module}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nject` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nject`, use `cargo add nject` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/../README.md:392:9 [INFO] [stdout] | [INFO] [stdout] 30 | use nject::{injectable, module}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nject` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nject`, use `cargo add nject` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `export` in this scope [INFO] [stdout] --> src/../README.md:385:7 [INFO] [stdout] | [INFO] [stdout] 23 | #[export(&'prov dyn crate::Greeter, &self.greeter)] [INFO] [stdout] | ^^^^^^ help: a built-in attribute with a similar name exists: `expect` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `export` in this scope [INFO] [stdout] --> src/../README.md:410:7 [INFO] [stdout] | [INFO] [stdout] 48 | #[export(&'prov dyn crate::Greeter, &self.greeter)] [INFO] [stdout] | ^^^^^^ help: a built-in attribute with a similar name exists: `expect` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `import` in this scope [INFO] [stdout] --> src/../README.md:423:7 [INFO] [stdout] | [INFO] [stdout] 61 | #[import] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `import` in this scope [INFO] [stdout] --> src/../README.md:426:7 [INFO] [stdout] | [INFO] [stdout] 64 | #[import] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `provide` found for struct `InitProvider` in the current scope [INFO] [stdout] --> src/../README.md:434:33 [INFO] [stdout] | [INFO] [stdout] 70 | struct InitProvider; [INFO] [stdout] | ------------------- method `provide` not found for this struct [INFO] [stdout] 71 | [INFO] [stdout] 72 | let provider = InitProvider.provide::(); [INFO] [stdout] | ^^^^^^^ method not found in `InitProvider` [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 `provide`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/../README.md - (line 147) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/../README.md:148:5 [INFO] [stdout] | [INFO] [stdout] 2 | use nject::{injectable, provider}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nject` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nject`, use `cargo add nject` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `provide` in this scope [INFO] [stdout] --> src/../README.md:178:35 [INFO] [stdout] | [INFO] [stdout] 32 | struct Provider<'a, T: Greeter>(#[provide(dyn Greeter)] &'a T); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `provide` found for struct `Provider` in the current scope [INFO] [stdout] --> src/../README.md:181:53 [INFO] [stdout] | [INFO] [stdout] 32 | struct Provider<'a, T: Greeter>(#[provide(dyn Greeter)] &'a T); [INFO] [stdout] | ------------------------------- method `provide` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 35 | let _dev_facade: Facade = Provider(&DevGreeter).provide(); [INFO] [stdout] | ^^^^^^^ method not found in `Provider<'_, DevGreeter>` [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 `provide`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `provide` found for struct `Provider` in the current scope [INFO] [stdout] --> src/../README.md:182:55 [INFO] [stdout] | [INFO] [stdout] 32 | struct Provider<'a, T: Greeter>(#[provide(dyn Greeter)] &'a T); [INFO] [stdout] | ------------------------------- method `provide` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 36 | let _prod_facade: Facade = Provider(&ProdGreeter).provide(); [INFO] [stdout] | ^^^^^^^ method not found in `Provider<'_, ProdGreeter>` [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 `provide`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/../README.md - (line 296) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/../README.md:297:5 [INFO] [stdout] | [INFO] [stdout] 2 | use nject::{injectable, provider}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nject` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nject`, use `cargo add nject` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/../README.md:300:9 [INFO] [stdout] | [INFO] [stdout] 5 | use nject::{injectable, module}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nject` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nject`, use `cargo add nject` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `import` in this scope [INFO] [stdout] --> src/../README.md:343:7 [INFO] [stdout] | [INFO] [stdout] 48 | #[import] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `export` in this scope [INFO] [stdout] --> src/../README.md:331:7 [INFO] [stdout] | [INFO] [stdout] 36 | #[export(std::boxed::Box, |x: GreeterOne| Box::new(x))] [INFO] [stdout] | ^^^^^^ help: a built-in attribute with a similar name exists: `expect` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `export` in this scope [INFO] [stdout] --> src/../README.md:332:7 [INFO] [stdout] | [INFO] [stdout] 37 | #[export(std::rc::Rc, self.public.clone())] [INFO] [stdout] | ^^^^^^ help: a built-in attribute with a similar name exists: `expect` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `export` in this scope [INFO] [stdout] --> src/../README.md:333:7 [INFO] [stdout] | [INFO] [stdout] 38 | #[export(&'prov i32, &123)] [INFO] [stdout] | ^^^^^^ help: a built-in attribute with a similar name exists: `expect` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `inject` in this scope [INFO] [stdout] --> src/../README.md:335:11 [INFO] [stdout] | [INFO] [stdout] 40 | #[inject(|x: GreeterOne| Rc::new(x))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 5 + use nject_macro::inject; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `provide` found for struct `InitProvider` in the current scope [INFO] [stdout] --> src/../README.md:352:33 [INFO] [stdout] | [INFO] [stdout] 55 | struct InitProvider; [INFO] [stdout] | ------------------- method `provide` not found for this struct [INFO] [stdout] 56 | [INFO] [stdout] 57 | let provider = InitProvider.provide::(); [INFO] [stdout] | ^^^^^^^ method not found in `InitProvider` [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 `provide`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/../README.md - (line 186) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/../README.md:187:5 [INFO] [stdout] | [INFO] [stdout] 2 | use nject::{inject, injectable, provider}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nject` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nject`, use `cargo add nject` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `provide` found for struct `Provider` in the current scope [INFO] [stdout] --> src/../README.md:226:28 [INFO] [stdout] | [INFO] [stdout] 38 | struct Provider; [INFO] [stdout] | --------------- method `provide` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 41 | let _facade = Provider.provide::(); [INFO] [stdout] | ^^^^^^^ method not found in `Provider` [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 `provide`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/../README.md - (line 230) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/../README.md:231:5 [INFO] [stdout] | [INFO] [stdout] 2 | use nject::{injectable, provider}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nject` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nject`, use `cargo add nject` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/../README.md:234:9 [INFO] [stdout] | [INFO] [stdout] 5 | use nject::{injectable, module}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nject` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nject`, use `cargo add nject` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `import` in this scope [INFO] [stdout] --> src/../README.md:279:7 [INFO] [stdout] | [INFO] [stdout] 50 | #[import] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `export` in this scope [INFO] [stdout] --> src/../README.md:266:11 [INFO] [stdout] | [INFO] [stdout] 37 | #[export] [INFO] [stdout] | ^^^^^^ help: a built-in attribute with a similar name exists: `expect` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `export` in this scope [INFO] [stdout] --> src/../README.md:268:11 [INFO] [stdout] | [INFO] [stdout] 39 | #[export(dyn Greeter)] [INFO] [stdout] | ^^^^^^ help: a built-in attribute with a similar name exists: `expect` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `inject` in this scope [INFO] [stdout] --> src/../README.md:270:11 [INFO] [stdout] | [INFO] [stdout] 41 | #[inject(|x: InternalType| Rc::new(x))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 5 + use nject_macro::inject; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `export` in this scope [INFO] [stdout] --> src/../README.md:271:11 [INFO] [stdout] | [INFO] [stdout] 42 | #[export(Ref, |x| Ref(x.clone()))] [INFO] [stdout] | ^^^^^^ help: a built-in attribute with a similar name exists: `expect` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `inject` in this scope [INFO] [stdout] --> src/../README.md:251:27 [INFO] [stdout] | [INFO] [stdout] 22 | struct InternalType(#[inject(123)] i32); // Not visible outside of module. [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 5 + use nject_macro::inject; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `provide` found for struct `InitProvider` in the current scope [INFO] [stdout] --> src/../README.md:287:33 [INFO] [stdout] | [INFO] [stdout] 56 | struct InitProvider; [INFO] [stdout] | ------------------- method `provide` not found for this struct [INFO] [stdout] 57 | [INFO] [stdout] 58 | let provider = InitProvider.provide::(); [INFO] [stdout] | ^^^^^^^ method not found in `InitProvider` [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 `provide`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/../README.md - (line 448) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/../README.md:449:5 [INFO] [stdout] | [INFO] [stdout] 2 | use nject::{injectable, module, provider}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nject` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nject`, use `cargo add nject` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `scope` in this scope [INFO] [stdout] --> src/../README.md:476:3 [INFO] [stdout] | [INFO] [stdout] 29 | #[scope(ScopeDep)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `scope` in this scope [INFO] [stdout] --> src/../README.md:477:3 [INFO] [stdout] | [INFO] [stdout] 30 | #[scope(#[import] ScopeModule)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `scope` in this scope [INFO] [stdout] --> src/../README.md:478:3 [INFO] [stdout] | [INFO] [stdout] 31 | #[scope(other: #[arg] &'scope ScopeDep)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `scope` in this scope [INFO] [stdout] --> src/../README.md:479:3 [INFO] [stdout] | [INFO] [stdout] 32 | #[scope(other: #[arg] &'scope ModuleDep)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `provide` in this scope [INFO] [stdout] --> src/../README.md:480:19 [INFO] [stdout] | [INFO] [stdout] 33 | struct Provider(#[provide] RootDep); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `export` in this scope [INFO] [stdout] --> src/../README.md:457:7 [INFO] [stdout] | [INFO] [stdout] 10 | #[export] [INFO] [stdout] | ^^^^^^ help: a built-in attribute with a similar name exists: `expect` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `provide` found for struct `InitProvider` in the current scope [INFO] [stdout] --> src/../README.md:486:33 [INFO] [stdout] | [INFO] [stdout] 37 | struct InitProvider; [INFO] [stdout] | ------------------- method `provide` not found for this struct [INFO] [stdout] 38 | [INFO] [stdout] 39 | let provider = InitProvider.provide::(); [INFO] [stdout] | ^^^^^^^ method not found in `InitProvider` [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 `provide`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/../README.md - (line 495) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/../README.md:496:5 [INFO] [stdout] | [INFO] [stdout] 2 | use nject::{injectable, provider}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nject` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nject`, use `cargo add nject` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `inject` in this scope [INFO] [stdout] --> src/../README.md:499:14 [INFO] [stdout] | [INFO] [stdout] 5 | struct Dep(#[inject(123)] i32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use nject_macro::inject; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nject` [INFO] [stdout] --> src/../README.md:503:27 [INFO] [stdout] | [INFO] [stdout] 9 | dep_provider: &'a dyn nject::Provider<'a, Dep>, [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nject` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nject`, use `cargo add nject` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/../README.md - (line 64) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/../README.md:65:5 [INFO] [stdout] | [INFO] [stdout] 2 | use nject::{injectable, provider}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nject` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nject`, use `cargo add nject` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `provide` in this scope [INFO] [stdout] --> src/../README.md:76:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[provide] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `provide` found for struct `Provider` in the current scope [INFO] [stdout] --> src/../README.md:82:36 [INFO] [stdout] | [INFO] [stdout] 12 | struct Provider { [INFO] [stdout] | --------------- method `provide` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 19 | let _facade: Facade = provider.provide(); [INFO] [stdout] | ^^^^^^^ method not found in `Provider` [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 `provide`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/../README.md - (line 86) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/../README.md:87:5 [INFO] [stdout] | [INFO] [stdout] 2 | use nject::{injectable, provider}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nject` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nject`, use `cargo add nject` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `provide` in this scope [INFO] [stdout] --> src/../README.md:111:3 [INFO] [stdout] | [INFO] [stdout] 26 | #[provide(Box, |greeter: GreeterOne| Box::new(greeter))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `provide` in this scope [INFO] [stdout] --> src/../README.md:113:7 [INFO] [stdout] | [INFO] [stdout] 28 | #[provide(dyn Greeter)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `provide` in this scope [INFO] [stdout] --> src/../README.md:115:7 [INFO] [stdout] | [INFO] [stdout] 30 | #[provide(Rc, |x| x.clone())] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `provide` found for struct `Provider` in the current scope [INFO] [stdout] --> src/../README.md:124:36 [INFO] [stdout] | [INFO] [stdout] 27 | struct Provider { [INFO] [stdout] | --------------- method `provide` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 39 | let _facade: Facade = provider.provide(); [INFO] [stdout] | ^^^^^^^ method not found in `Provider` [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 `provide`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - inject (line 56) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/lib.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nject::{inject, injectable, provider}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nject` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nject`, use `cargo add nject` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `provide` found for struct `Provider` in the current scope [INFO] [stdout] --> src/lib.rs:73:31 [INFO] [stdout] | [INFO] [stdout] 17 | struct Provider; [INFO] [stdout] | --------------- method `provide` not found for this struct [INFO] [stdout] 18 | [INFO] [stdout] 19 | let facade: Facade = Provider.provide(); [INFO] [stdout] | ^^^^^^^ method not found in `Provider` [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 `provide`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - injectable (line 39) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/lib.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nject::{injectable, provider}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nject` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nject`, use `cargo add nject` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `provide` found for struct `Provider` in the current scope [INFO] [stdout] --> src/lib.rs:48:31 [INFO] [stdout] | [INFO] [stdout] 9 | struct Provider; [INFO] [stdout] | --------------- method `provide` not found for this struct [INFO] [stdout] 10 | [INFO] [stdout] 11 | let facade: Facade = Provider.provide(); [INFO] [stdout] | ^^^^^^^ method not found in `Provider` [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 `provide`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - module (line 112) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/lib.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 2 | use nject::{injectable, provider}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nject` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nject`, use `cargo add nject` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/lib.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 5 | use nject::{injectable, module}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nject` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nject`, use `cargo add nject` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `import` in this scope [INFO] [stdout] --> src/lib.rs:147:7 [INFO] [stdout] | [INFO] [stdout] 36 | #[import] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `export` in this scope [INFO] [stdout] --> src/lib.rs:135:7 [INFO] [stdout] | [INFO] [stdout] 24 | #[export(std::rc::Rc, self.public.clone())] [INFO] [stdout] | ^^^^^^ help: a built-in attribute with a similar name exists: `expect` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `export` in this scope [INFO] [stdout] --> src/lib.rs:137:11 [INFO] [stdout] | [INFO] [stdout] 26 | #[export] // Fields exports are for internal types. [INFO] [stdout] | ^^^^^^ help: a built-in attribute with a similar name exists: `expect` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `inject` in this scope [INFO] [stdout] --> src/lib.rs:139:11 [INFO] [stdout] | [INFO] [stdout] 28 | #[inject(Rc::new(456))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 5 + use nject_macro::inject; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `inject` in this scope [INFO] [stdout] --> src/lib.rs:120:27 [INFO] [stdout] | [INFO] [stdout] 9 | struct InternalType(#[inject(123)] i32); // Not visible outside of module. [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 5 + use nject_macro::inject; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `provide` found for struct `InitProvider` in the current scope [INFO] [stdout] --> src/lib.rs:156:33 [INFO] [stdout] | [INFO] [stdout] 42 | struct InitProvider; [INFO] [stdout] | ------------------- method `provide` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 45 | let provider = InitProvider.provide::(); [INFO] [stdout] | ^^^^^^^ method not found in `InitProvider` [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 `provide`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - provider (line 81) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/lib.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nject::{injectable, provider}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `nject` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `nject`, use `cargo add nject` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `provide` in this scope [INFO] [stdout] --> src/lib.rs:96:3 [INFO] [stdout] | [INFO] [stdout] 17 | #[provide(Dependency, Dependency { value: 123 })] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `provide` in this scope [INFO] [stdout] --> src/lib.rs:98:7 [INFO] [stdout] | [INFO] [stdout] 19 | #[provide] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `provide` found for struct `Provider` in the current scope [INFO] [stdout] --> src/lib.rs:103:39 [INFO] [stdout] | [INFO] [stdout] 18 | struct Provider { [INFO] [stdout] | --------------- method `provide` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 24 | let dependency: Dependency = provider.provide(); [INFO] [stdout] | ^^^^^^^ method not found in `Provider` [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 `provide`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `provide` found for struct `Provider` in the current scope [INFO] [stdout] --> src/lib.rs:104:31 [INFO] [stdout] | [INFO] [stdout] 18 | struct Provider { [INFO] [stdout] | --------------- method `provide` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 25 | let facade: Facade = provider.provide(); [INFO] [stdout] | ^^^^^^^ method not found in `Provider` [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 `provide`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::error::Error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/../README.md - (line 128) [INFO] [stdout] src/../README.md - (line 147) [INFO] [stdout] src/../README.md - (line 186) [INFO] [stdout] src/../README.md - (line 230) [INFO] [stdout] src/../README.md - (line 296) [INFO] [stdout] src/../README.md - (line 363) [INFO] [stdout] src/../README.md - (line 40) [INFO] [stdout] src/../README.md - (line 448) [INFO] [stdout] src/../README.md - (line 495) [INFO] [stdout] src/../README.md - (line 64) [INFO] [stdout] src/../README.md - (line 86) [INFO] [stdout] src/lib.rs - inject (line 56) [INFO] [stdout] src/lib.rs - injectable (line 39) [INFO] [stdout] src/lib.rs - module (line 112) [INFO] [stdout] src/lib.rs - provider (line 81) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 15 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.17s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "23787340dce8d1d4bb351c5e14341bd69a2b4fa232a3d3808996dc6ca7c0ed7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23787340dce8d1d4bb351c5e14341bd69a2b4fa232a3d3808996dc6ca7c0ed7a", kill_on_drop: false }` [INFO] [stdout] 23787340dce8d1d4bb351c5e14341bd69a2b4fa232a3d3808996dc6ca7c0ed7a