[INFO] fetching crate rustleaf-macros 0.1.0... [INFO] testing rustleaf-macros-0.1.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate rustleaf-macros 0.1.0 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate rustleaf-macros 0.1.0 [INFO] finished tweaking crates.io crate rustleaf-macros 0.1.0 [INFO] tweaked toml for crates.io crate rustleaf-macros 0.1.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rustleaf-macros 0.1.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rustleaf-macros 0.1.0 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 309343c5dbf6bd14498e0c137856318b474b0afd93647a0ef37f8a1df2388674 [INFO] running `Command { std: "docker" "start" "-a" "309343c5dbf6bd14498e0c137856318b474b0afd93647a0ef37f8a1df2388674", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "309343c5dbf6bd14498e0c137856318b474b0afd93647a0ef37f8a1df2388674", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "309343c5dbf6bd14498e0c137856318b474b0afd93647a0ef37f8a1df2388674", kill_on_drop: false }` [INFO] [stdout] 309343c5dbf6bd14498e0c137856318b474b0afd93647a0ef37f8a1df2388674 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9a45b4cad45a3c4f3a41bb3b3dda803563c9aa8e800c4ef742b8b9dcd8a725b3 [INFO] running `Command { std: "docker" "start" "-a" "9a45b4cad45a3c4f3a41bb3b3dda803563c9aa8e800c4ef742b8b9dcd8a725b3", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling rustleaf-macros v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.01s [INFO] running `Command { std: "docker" "inspect" "9a45b4cad45a3c4f3a41bb3b3dda803563c9aa8e800c4ef742b8b9dcd8a725b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a45b4cad45a3c4f3a41bb3b3dda803563c9aa8e800c4ef742b8b9dcd8a725b3", kill_on_drop: false }` [INFO] [stdout] 9a45b4cad45a3c4f3a41bb3b3dda803563c9aa8e800c4ef742b8b9dcd8a725b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 86d2b99c819662f8c8fc233cf12a8c66d33cb7871f45dec0534d94d06281b646 [INFO] running `Command { std: "docker" "start" "-a" "86d2b99c819662f8c8fc233cf12a8c66d33cb7871f45dec0534d94d06281b646", kill_on_drop: false }` [INFO] [stderr] Compiling rustleaf-macros v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.83s [INFO] running `Command { std: "docker" "inspect" "86d2b99c819662f8c8fc233cf12a8c66d33cb7871f45dec0534d94d06281b646", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86d2b99c819662f8c8fc233cf12a8c66d33cb7871f45dec0534d94d06281b646", kill_on_drop: false }` [INFO] [stdout] 86d2b99c819662f8c8fc233cf12a8c66d33cb7871f45dec0534d94d06281b646 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e9172f217b1795656a7a8503f6c99aebfcaaf78da2bc0698e0b566e0f077026f [INFO] running `Command { std: "docker" "start" "-a" "e9172f217b1795656a7a8503f6c99aebfcaaf78da2bc0698e0b566e0f077026f", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rustleaf_macros-5eff1f4c5e49a05f) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests rustleaf_macros [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/function_wrapper.rs - function_wrapper::rustleaf_fn (line 16) ... FAILED [INFO] [stdout] test src/method_wrapper.rs - method_wrapper::rustleaf_impl (line 32) ... FAILED [INFO] [stdout] test src/function_wrapper.rs - function_wrapper::rustleaf_fn (line 24) ... FAILED [INFO] [stdout] test src/method_wrapper.rs - method_wrapper::rustleaf_impl (line 43) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/function_wrapper.rs - function_wrapper::rustleaf_fn (line 16) stdout ---- [INFO] [stdout] error: cannot find attribute `rustleaf` in this scope [INFO] [stdout] --> src/function_wrapper.rs:17:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[rustleaf] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use rustleaf_macros::rustleaf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ParamType` in this scope [INFO] [stdout] --> src/function_wrapper.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 4 | fn my_func(param: ParamType) -> ReturnType { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ReturnType` in this scope [INFO] [stdout] --> src/function_wrapper.rs:18:33 [INFO] [stdout] | [INFO] [stdout] 4 | fn my_func(param: ParamType) -> ReturnType { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use syn::ReturnType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/method_wrapper.rs - method_wrapper::rustleaf_impl (line 32) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/method_wrapper.rs:35:38 [INFO] [stdout] | [INFO] [stdout] 5 | fn new(x: f64, y: f64) -> Self { ... } // Static method (constructor) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 5 - fn new(x: f64, y: f64) -> Self { ... } // Static method (constructor) [INFO] [stdout] 5 + fn new(x: f64, y: f64) -> Self { .. } // Static method (constructor) [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 5 - fn new(x: f64, y: f64) -> Self { ... } // Static method (constructor) [INFO] [stdout] 5 + fn new(x: f64, y: f64) -> Self { ..= } // Static method (constructor) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/method_wrapper.rs:35:38 [INFO] [stdout] | [INFO] [stdout] 5 | fn new(x: f64, y: f64) -> Self { ... } // Static method (constructor) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 5 - fn new(x: f64, y: f64) -> Self { ... } // Static method (constructor) [INFO] [stdout] 5 + fn new(x: f64, y: f64) -> Self { .. } // Static method (constructor) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/method_wrapper.rs:36:34 [INFO] [stdout] | [INFO] [stdout] 6 | fn magnitude(&self) -> f64 { ... } // Instance method [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 6 - fn magnitude(&self) -> f64 { ... } // Instance method [INFO] [stdout] 6 + fn magnitude(&self) -> f64 { .. } // Instance method [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 6 - fn magnitude(&self) -> f64 { ... } // Instance method [INFO] [stdout] 6 + fn magnitude(&self) -> f64 { ..= } // Instance method [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/method_wrapper.rs:36:34 [INFO] [stdout] | [INFO] [stdout] 6 | fn magnitude(&self) -> f64 { ... } // Instance method [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 6 - fn magnitude(&self) -> f64 { ... } // Instance method [INFO] [stdout] 6 + fn magnitude(&self) -> f64 { .. } // Instance method [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/method_wrapper.rs:37:48 [INFO] [stdout] | [INFO] [stdout] 7 | fn distance(&self, other: &Point) -> f64 { ... } // Instance method with parameters [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 7 - fn distance(&self, other: &Point) -> f64 { ... } // Instance method with parameters [INFO] [stdout] 7 + fn distance(&self, other: &Point) -> f64 { .. } // Instance method with parameters [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 7 - fn distance(&self, other: &Point) -> f64 { ... } // Instance method with parameters [INFO] [stdout] 7 + fn distance(&self, other: &Point) -> f64 { ..= } // Instance method with parameters [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/method_wrapper.rs:37:48 [INFO] [stdout] | [INFO] [stdout] 7 | fn distance(&self, other: &Point) -> f64 { ... } // Instance method with parameters [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 7 - fn distance(&self, other: &Point) -> f64 { ... } // Instance method with parameters [INFO] [stdout] 7 + fn distance(&self, other: &Point) -> f64 { .. } // Instance method with parameters [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/method_wrapper.rs:38:40 [INFO] [stdout] | [INFO] [stdout] 8 | fn scale(&mut self, factor: f64) { ... } // Mutating method [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 8 - fn scale(&mut self, factor: f64) { ... } // Mutating method [INFO] [stdout] 8 + fn scale(&mut self, factor: f64) { .. } // Mutating method [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 8 - fn scale(&mut self, factor: f64) { ... } // Mutating method [INFO] [stdout] 8 + fn scale(&mut self, factor: f64) { ..= } // Mutating method [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/method_wrapper.rs:38:40 [INFO] [stdout] | [INFO] [stdout] 8 | fn scale(&mut self, factor: f64) { ... } // Mutating method [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 8 - fn scale(&mut self, factor: f64) { ... } // Mutating method [INFO] [stdout] 8 + fn scale(&mut self, factor: f64) { .. } // Mutating method [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `rustleaf` in this scope [INFO] [stdout] --> src/method_wrapper.rs:33:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[rustleaf] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use rustleaf_macros::rustleaf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Point` in this scope [INFO] [stdout] --> src/method_wrapper.rs:34:6 [INFO] [stdout] | [INFO] [stdout] 4 | impl Point { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Point` in this scope [INFO] [stdout] --> src/method_wrapper.rs:37:32 [INFO] [stdout] | [INFO] [stdout] 7 | fn distance(&self, other: &Point) -> f64 { ... } // Instance method with parameters [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/function_wrapper.rs - function_wrapper::rustleaf_fn (line 24) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rustleaf` [INFO] [stdout] --> src/function_wrapper.rs:29:32 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn rustleaf_my_func(value: rustleaf::core::Value) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `rustleaf` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rustleaf`, use `cargo add rustleaf` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rustleaf` [INFO] [stdout] --> src/function_wrapper.rs:29:73 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn rustleaf_my_func(value: rustleaf::core::Value) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `rustleaf` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rustleaf`, use `cargo add rustleaf` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ParamType` in this scope [INFO] [stdout] --> src/function_wrapper.rs:25:19 [INFO] [stdout] | [INFO] [stdout] 3 | fn my_func(param: ParamType) -> ReturnType { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ReturnType` in this scope [INFO] [stdout] --> src/function_wrapper.rs:25:33 [INFO] [stdout] | [INFO] [stdout] 3 | fn my_func(param: ParamType) -> ReturnType { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use syn::ReturnType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ParamType` [INFO] [stdout] --> src/function_wrapper.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 8 | let param = ParamType::from_value(value)?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ParamType` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `anyhow` [INFO] [stdout] --> src/function_wrapper.rs:29:58 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn rustleaf_my_func(value: rustleaf::core::Value) -> anyhow::Result { [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `anyhow` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `anyhow`, use `cargo add anyhow` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/method_wrapper.rs - method_wrapper::rustleaf_impl (line 43) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/method_wrapper.rs:49:74 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn rustleaf_Point_new(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 8 - pub fn rustleaf_Point_new(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 8 + pub fn rustleaf_Point_new(values: Vec) -> anyhow::Result { .. } [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 8 - pub fn rustleaf_Point_new(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 8 + pub fn rustleaf_Point_new(values: Vec) -> anyhow::Result { ..= } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/method_wrapper.rs:49:74 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn rustleaf_Point_new(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 8 - pub fn rustleaf_Point_new(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 8 + pub fn rustleaf_Point_new(values: Vec) -> anyhow::Result { .. } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/method_wrapper.rs:53:78 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn rustleaf_magnitude(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 12 - pub fn rustleaf_magnitude(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 12 + pub fn rustleaf_magnitude(values: Vec) -> anyhow::Result { .. } [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 12 - pub fn rustleaf_magnitude(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 12 + pub fn rustleaf_magnitude(values: Vec) -> anyhow::Result { ..= } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/method_wrapper.rs:53:78 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn rustleaf_magnitude(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 12 - pub fn rustleaf_magnitude(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 12 + pub fn rustleaf_magnitude(values: Vec) -> anyhow::Result { .. } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/method_wrapper.rs:54:77 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn rustleaf_distance(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 13 - pub fn rustleaf_distance(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 13 + pub fn rustleaf_distance(values: Vec) -> anyhow::Result { .. } [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 13 - pub fn rustleaf_distance(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 13 + pub fn rustleaf_distance(values: Vec) -> anyhow::Result { ..= } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/method_wrapper.rs:54:77 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn rustleaf_distance(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 13 - pub fn rustleaf_distance(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 13 + pub fn rustleaf_distance(values: Vec) -> anyhow::Result { .. } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/method_wrapper.rs:55:74 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn rustleaf_scale(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 14 - pub fn rustleaf_scale(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 14 + pub fn rustleaf_scale(values: Vec) -> anyhow::Result { .. } [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 14 - pub fn rustleaf_scale(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 14 + pub fn rustleaf_scale(values: Vec) -> anyhow::Result { ..= } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/method_wrapper.rs:55:74 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn rustleaf_scale(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 14 - pub fn rustleaf_scale(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 14 + pub fn rustleaf_scale(values: Vec) -> anyhow::Result { .. } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Point` in this scope [INFO] [stdout] --> src/method_wrapper.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 3 | impl Point { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/method_wrapper.rs:49:39 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn rustleaf_Point_new(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 8 | pub fn rustleaf_Point_new(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/method_wrapper.rs:49:65 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn rustleaf_Point_new(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 8 | pub fn rustleaf_Point_new(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PointRef` in this scope [INFO] [stdout] --> src/method_wrapper.rs:52:6 [INFO] [stdout] | [INFO] [stdout] 11 | impl PointRef { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/method_wrapper.rs:53:43 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn rustleaf_magnitude(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 11 | impl PointRef { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/method_wrapper.rs:53:69 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn rustleaf_magnitude(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 11 | impl PointRef { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/method_wrapper.rs:54:42 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn rustleaf_distance(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 11 | impl PointRef { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/method_wrapper.rs:54:68 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn rustleaf_distance(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 11 | impl PointRef { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/method_wrapper.rs:55:39 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn rustleaf_scale(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 11 | impl PointRef { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Value` in this scope [INFO] [stdout] --> src/method_wrapper.rs:55:65 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn rustleaf_scale(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 11 | impl PointRef { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `anyhow` [INFO] [stdout] --> src/method_wrapper.rs:49:50 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn rustleaf_Point_new(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `anyhow` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `anyhow`, use `cargo add anyhow` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `anyhow` [INFO] [stdout] --> src/method_wrapper.rs:53:54 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn rustleaf_magnitude(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `anyhow` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `anyhow`, use `cargo add anyhow` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `anyhow` [INFO] [stdout] --> src/method_wrapper.rs:54:53 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn rustleaf_distance(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `anyhow` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `anyhow`, use `cargo add anyhow` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `anyhow` [INFO] [stdout] --> src/method_wrapper.rs:55:50 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn rustleaf_scale(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `anyhow` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `anyhow`, use `cargo add anyhow` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 22 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/function_wrapper.rs - function_wrapper::rustleaf_fn (line 16) [INFO] [stdout] src/function_wrapper.rs - function_wrapper::rustleaf_fn (line 24) [INFO] [stdout] src/method_wrapper.rs - method_wrapper::rustleaf_impl (line 32) [INFO] [stdout] src/method_wrapper.rs - method_wrapper::rustleaf_impl (line 43) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.32s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "e9172f217b1795656a7a8503f6c99aebfcaaf78da2bc0698e0b566e0f077026f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9172f217b1795656a7a8503f6c99aebfcaaf78da2bc0698e0b566e0f077026f", kill_on_drop: false }` [INFO] [stdout] e9172f217b1795656a7a8503f6c99aebfcaaf78da2bc0698e0b566e0f077026f