[INFO] fetching crate nject-macro 0.4.5... [INFO] testing nject-macro-0.4.5 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-2 [INFO] extracting crate nject-macro 0.4.5 into /workspace/builds/worker-0-tc2/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-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate nject-macro 0.4.5 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] 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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5063f584cc7229709c1f39e585babb3fd42074c211686530b0d8a2f44dc337fa [INFO] running `Command { std: "docker" "start" "-a" "5063f584cc7229709c1f39e585babb3fd42074c211686530b0d8a2f44dc337fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5063f584cc7229709c1f39e585babb3fd42074c211686530b0d8a2f44dc337fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5063f584cc7229709c1f39e585babb3fd42074c211686530b0d8a2f44dc337fa", kill_on_drop: false }` [INFO] [stdout] 5063f584cc7229709c1f39e585babb3fd42074c211686530b0d8a2f44dc337fa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bb34e26cb351b075f65aeaa00e018422bb3d19707f733a87476b1d03b23d6604 [INFO] running `Command { std: "docker" "start" "-a" "bb34e26cb351b075f65aeaa00e018422bb3d19707f733a87476b1d03b23d6604", 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 6.07s [INFO] running `Command { std: "docker" "inspect" "bb34e26cb351b075f65aeaa00e018422bb3d19707f733a87476b1d03b23d6604", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb34e26cb351b075f65aeaa00e018422bb3d19707f733a87476b1d03b23d6604", kill_on_drop: false }` [INFO] [stdout] bb34e26cb351b075f65aeaa00e018422bb3d19707f733a87476b1d03b23d6604 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eeb362a14e06054ff4bf5ae760e2391996e4cfd69ccdfe0ed9ac9d18bb5706cf [INFO] running `Command { std: "docker" "start" "-a" "eeb362a14e06054ff4bf5ae760e2391996e4cfd69ccdfe0ed9ac9d18bb5706cf", 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.65s [INFO] running `Command { std: "docker" "inspect" "eeb362a14e06054ff4bf5ae760e2391996e4cfd69ccdfe0ed9ac9d18bb5706cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eeb362a14e06054ff4bf5ae760e2391996e4cfd69ccdfe0ed9ac9d18bb5706cf", kill_on_drop: false }` [INFO] [stdout] eeb362a14e06054ff4bf5ae760e2391996e4cfd69ccdfe0ed9ac9d18bb5706cf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ea71442d15a846e7852d922ccbbb2b4f1c531626cbac0353f8647c026ea323f9 [INFO] running `Command { std: "docker" "start" "-a" "ea71442d15a846e7852d922ccbbb2b4f1c531626cbac0353f8647c026ea323f9", 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/nject_macro-28cec299fc823b78) [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::decode_with_encoded_data_should_return_decoded_data ... ok [INFO] [stdout] test core::encoding::base64::tests::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::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 64) ... 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 495) ... FAILED [INFO] [stdout] test src/lib.rs - provider (line 81) ... FAILED [INFO] [stdout] test src/lib.rs - module (line 112) ... FAILED [INFO] [stdout] test src/../README.md - (line 147) ... FAILED [INFO] [stdout] test src/../README.md - (line 363) ... FAILED [INFO] [stdout] test src/lib.rs - injectable (line 39) ... FAILED [INFO] [stdout] test src/lib.rs - inject (line 56) ... FAILED [INFO] [stdout] test src/../README.md - (line 40) ... FAILED [INFO] [stdout] test src/../README.md - (line 86) ... FAILED [INFO] [stdout] test src/../README.md - (line 448) ... FAILED [INFO] [stdout] test src/../README.md - (line 128) ... FAILED [INFO] [stdout] test src/../README.md - (line 230) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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] 65 | 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] 76 | #[provide] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `provide` is an attribute that can be used by the derive macro `ProviderHelperAttr`, you might be missing a `derive` attribute [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] 75 | struct Provider { [INFO] [stdout] | --------------- method `provide` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 82 | 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 296) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/../README.md:297:5 [INFO] [stdout] | [INFO] [stdout] 297 | 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] 300 | 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] 343 | #[import] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `import` is an attribute that can be used by the derive macro `ProviderHelperAttr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `export` in this scope [INFO] [stdout] --> src/../README.md:331:7 [INFO] [stdout] | [INFO] [stdout] 331 | #[export(std::boxed::Box, |x: GreeterOne| Box::new(x))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a built-in attribute with a similar name exists [INFO] [stdout] | [INFO] [stdout] 331 - #[export(std::boxed::Box, |x: GreeterOne| Box::new(x))] [INFO] [stdout] 331 + #[expect(std::boxed::Box, |x: GreeterOne| Box::new(x))] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `export` in this scope [INFO] [stdout] --> src/../README.md:332:7 [INFO] [stdout] | [INFO] [stdout] 332 | #[export(std::rc::Rc, self.public.clone())] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a built-in attribute with a similar name exists [INFO] [stdout] | [INFO] [stdout] 332 - #[export(std::rc::Rc, self.public.clone())] [INFO] [stdout] 332 + #[expect(std::rc::Rc, self.public.clone())] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `export` in this scope [INFO] [stdout] --> src/../README.md:333:7 [INFO] [stdout] | [INFO] [stdout] 333 | #[export(&'prov i32, &123)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a built-in attribute with a similar name exists [INFO] [stdout] | [INFO] [stdout] 333 - #[export(&'prov i32, &123)] [INFO] [stdout] 333 + #[expect(&'prov i32, &123)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `inject` in this scope [INFO] [stdout] --> src/../README.md:335:11 [INFO] [stdout] | [INFO] [stdout] 335 | #[inject(|x: GreeterOne| Rc::new(x))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `inject` is an attribute that can be used by the derive macro `InjectableHelperAttr`, you might be missing a `derive` attribute [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 300 + 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] 350 | struct InitProvider; [INFO] [stdout] | ------------------- method `provide` not found for this struct [INFO] [stdout] 351 | [INFO] [stdout] 352 | 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] 187 | 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] 223 | struct Provider; [INFO] [stdout] | --------------- method `provide` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 226 | 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 495) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/../README.md:496:5 [INFO] [stdout] | [INFO] [stdout] 496 | 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] 499 | struct Dep(#[inject(123)] i32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `inject` is an attribute that can be used by the derive macro `InjectableHelperAttr`, you might be missing a `derive` attribute [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 496 + use nject_macro::inject; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `nject` in this scope [INFO] [stdout] --> src/../README.md:503:27 [INFO] [stdout] | [INFO] [stdout] 503 | 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/lib.rs - provider (line 81) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/lib.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | 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] 96 | #[provide(Dependency, Dependency { value: 123 })] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `provide` is an attribute that can be used by the derive macro `ProviderHelperAttr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `provide` in this scope [INFO] [stdout] --> src/lib.rs:98:7 [INFO] [stdout] | [INFO] [stdout] 98 | #[provide] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `provide` is an attribute that can be used by the derive macro `ProviderHelperAttr`, you might be missing a `derive` attribute [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] 97 | struct Provider { [INFO] [stdout] | --------------- method `provide` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 103 | 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] 97 | struct Provider { [INFO] [stdout] | --------------- method `provide` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 104 | 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 - module (line 112) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/lib.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | 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] 116 | 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] 147 | #[import] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `import` is an attribute that can be used by the derive macro `ProviderHelperAttr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `export` in this scope [INFO] [stdout] --> src/lib.rs:135:7 [INFO] [stdout] | [INFO] [stdout] 135 | #[export(std::rc::Rc, self.public.clone())] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a built-in attribute with a similar name exists [INFO] [stdout] | [INFO] [stdout] 135 - #[export(std::rc::Rc, self.public.clone())] [INFO] [stdout] 135 + #[expect(std::rc::Rc, self.public.clone())] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `export` in this scope [INFO] [stdout] --> src/lib.rs:137:11 [INFO] [stdout] | [INFO] [stdout] 137 | #[export] // Fields exports are for internal types. [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a built-in attribute with a similar name exists [INFO] [stdout] | [INFO] [stdout] 137 - #[export] // Fields exports are for internal types. [INFO] [stdout] 137 + #[expect] // Fields exports are for internal types. [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `inject` in this scope [INFO] [stdout] --> src/lib.rs:139:11 [INFO] [stdout] | [INFO] [stdout] 139 | #[inject(Rc::new(456))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `inject` is an attribute that can be used by the derive macro `InjectableHelperAttr`, you might be missing a `derive` attribute [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 116 + 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] 120 | struct InternalType(#[inject(123)] i32); // Not visible outside of module. [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `inject` is an attribute that can be used by the derive macro `InjectableHelperAttr`, you might be missing a `derive` attribute [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 116 + 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] 153 | struct InitProvider; [INFO] [stdout] | ------------------- method `provide` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 156 | 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] 148 | 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] 178 | struct Provider<'a, T: Greeter>(#[provide(dyn Greeter)] &'a T); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `provide` is an attribute that can be used by the derive macro `ProviderHelperAttr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `provide` found for struct `Provider<'a, T>` in the current scope [INFO] [stdout] --> src/../README.md:181:53 [INFO] [stdout] | [INFO] [stdout] 178 | struct Provider<'a, T: Greeter>(#[provide(dyn Greeter)] &'a T); [INFO] [stdout] | ------------------------------- method `provide` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 181 | 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<'a, T>` in the current scope [INFO] [stdout] --> src/../README.md:182:55 [INFO] [stdout] | [INFO] [stdout] 178 | struct Provider<'a, T: Greeter>(#[provide(dyn Greeter)] &'a T); [INFO] [stdout] | ------------------------------- method `provide` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 182 | 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 363) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/../README.md:364:5 [INFO] [stdout] | [INFO] [stdout] 364 | 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] 367 | 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] 392 | 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] 385 | #[export(&'prov dyn crate::Greeter, &self.greeter)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a built-in attribute with a similar name exists [INFO] [stdout] | [INFO] [stdout] 385 - #[export(&'prov dyn crate::Greeter, &self.greeter)] [INFO] [stdout] 385 + #[expect(&'prov dyn crate::Greeter, &self.greeter)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `export` in this scope [INFO] [stdout] --> src/../README.md:410:7 [INFO] [stdout] | [INFO] [stdout] 410 | #[export(&'prov dyn crate::Greeter, &self.greeter)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a built-in attribute with a similar name exists [INFO] [stdout] | [INFO] [stdout] 410 - #[export(&'prov dyn crate::Greeter, &self.greeter)] [INFO] [stdout] 410 + #[expect(&'prov dyn crate::Greeter, &self.greeter)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `import` in this scope [INFO] [stdout] --> src/../README.md:423:7 [INFO] [stdout] | [INFO] [stdout] 423 | #[import] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `import` is an attribute that can be used by the derive macro `ProviderHelperAttr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `import` in this scope [INFO] [stdout] --> src/../README.md:426:7 [INFO] [stdout] | [INFO] [stdout] 426 | #[import] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `import` is an attribute that can be used by the derive macro `ProviderHelperAttr`, you might be missing a `derive` attribute [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] 432 | struct InitProvider; [INFO] [stdout] | ------------------- method `provide` not found for this struct [INFO] [stdout] 433 | [INFO] [stdout] 434 | 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 - injectable (line 39) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/lib.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | 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] 46 | struct Provider; [INFO] [stdout] | --------------- method `provide` not found for this struct [INFO] [stdout] 47 | [INFO] [stdout] 48 | 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 - inject (line 56) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/lib.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | 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] 71 | struct Provider; [INFO] [stdout] | --------------- method `provide` not found for this struct [INFO] [stdout] 72 | [INFO] [stdout] 73 | 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] 41 | 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] 57 | struct Provider; [INFO] [stdout] | --------------- method `provide` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 60 | 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 86) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/../README.md:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | 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] 111 | #[provide(Box, |greeter: GreeterOne| Box::new(greeter))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `provide` is an attribute that can be used by the derive macro `ProviderHelperAttr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 112 + #[derive(ProviderHelperAttr)] [INFO] [stdout] 113 | struct Provider { [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] 113 | #[provide(dyn Greeter)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `provide` is an attribute that can be used by the derive macro `ProviderHelperAttr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `provide` in this scope [INFO] [stdout] --> src/../README.md:115:7 [INFO] [stdout] | [INFO] [stdout] 115 | #[provide(Rc, |x| x.clone())] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `provide` is an attribute that can be used by the derive macro `ProviderHelperAttr`, you might be missing a `derive` attribute [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] 112 | struct Provider { [INFO] [stdout] | --------------- method `provide` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | 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/../README.md - (line 448) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/../README.md:449:5 [INFO] [stdout] | [INFO] [stdout] 449 | 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] 476 | #[scope(ScopeDep)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `scope` is an attribute that can be used by the derive macro `ProviderHelperAttr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 480 + #[derive(ProviderHelperAttr)] [INFO] [stdout] 481 | struct Provider(#[provide] RootDep); [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] 477 | #[scope(#[import] ScopeModule)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `scope` is an attribute that can be used by the derive macro `ProviderHelperAttr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 480 + #[derive(ProviderHelperAttr)] [INFO] [stdout] 481 | struct Provider(#[provide] RootDep); [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] 478 | #[scope(other: #[arg] &'scope ScopeDep)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `scope` is an attribute that can be used by the derive macro `ProviderHelperAttr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 480 + #[derive(ProviderHelperAttr)] [INFO] [stdout] 481 | struct Provider(#[provide] RootDep); [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] 479 | #[scope(other: #[arg] &'scope ModuleDep)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `scope` is an attribute that can be used by the derive macro `ProviderHelperAttr`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 480 + #[derive(ProviderHelperAttr)] [INFO] [stdout] 481 | struct Provider(#[provide] RootDep); [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] 480 | struct Provider(#[provide] RootDep); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `provide` is an attribute that can be used by the derive macro `ProviderHelperAttr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `export` in this scope [INFO] [stdout] --> src/../README.md:457:7 [INFO] [stdout] | [INFO] [stdout] 457 | #[export] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a built-in attribute with a similar name exists [INFO] [stdout] | [INFO] [stdout] 457 - #[export] [INFO] [stdout] 457 + #[expect] [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:486:33 [INFO] [stdout] | [INFO] [stdout] 484 | struct InitProvider; [INFO] [stdout] | ------------------- method `provide` not found for this struct [INFO] [stdout] 485 | [INFO] [stdout] 486 | 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 128) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/../README.md:129:5 [INFO] [stdout] | [INFO] [stdout] 129 | 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] 140 | struct Provider; [INFO] [stdout] | --------------- method `provide` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 143 | 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 230) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `nject` [INFO] [stdout] --> src/../README.md:231:5 [INFO] [stdout] | [INFO] [stdout] 231 | 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] 234 | 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] 279 | #[import] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `import` is an attribute that can be used by the derive macro `ProviderHelperAttr`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `export` in this scope [INFO] [stdout] --> src/../README.md:266:11 [INFO] [stdout] | [INFO] [stdout] 266 | #[export] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a built-in attribute with a similar name exists [INFO] [stdout] | [INFO] [stdout] 266 - #[export] [INFO] [stdout] 266 + #[expect] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `export` in this scope [INFO] [stdout] --> src/../README.md:268:11 [INFO] [stdout] | [INFO] [stdout] 268 | #[export(dyn Greeter)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a built-in attribute with a similar name exists [INFO] [stdout] | [INFO] [stdout] 268 - #[export(dyn Greeter)] [INFO] [stdout] 268 + #[expect(dyn Greeter)] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `inject` in this scope [INFO] [stdout] --> src/../README.md:270:11 [INFO] [stdout] | [INFO] [stdout] 270 | #[inject(|x: InternalType| Rc::new(x))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `inject` is an attribute that can be used by the derive macro `InjectableHelperAttr`, you might be missing a `derive` attribute [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 234 + 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] 271 | #[export(Ref, |x| Ref(x.clone()))] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a built-in attribute with a similar name exists [INFO] [stdout] | [INFO] [stdout] 271 - #[export(Ref, |x| Ref(x.clone()))] [INFO] [stdout] 271 + #[expect(Ref, |x| Ref(x.clone()))] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `inject` in this scope [INFO] [stdout] --> src/../README.md:251:27 [INFO] [stdout] | [INFO] [stdout] 251 | struct InternalType(#[inject(123)] i32); // Not visible outside of module. [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `inject` is an attribute that can be used by the derive macro `InjectableHelperAttr`, you might be missing a `derive` attribute [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 234 + 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] 285 | struct InitProvider; [INFO] [stdout] | ------------------- method `provide` not found for this struct [INFO] [stdout] 286 | [INFO] [stdout] 287 | 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] [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 0.19s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.36s; merged doctests compilation took 0.16s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "ea71442d15a846e7852d922ccbbb2b4f1c531626cbac0353f8647c026ea323f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea71442d15a846e7852d922ccbbb2b4f1c531626cbac0353f8647c026ea323f9", kill_on_drop: false }` [INFO] [stdout] ea71442d15a846e7852d922ccbbb2b4f1c531626cbac0353f8647c026ea323f9