[INFO] fetching crate rustleaf-macros 0.1.0... [INFO] testing rustleaf-macros-0.1.0 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-8 [INFO] extracting crate rustleaf-macros 0.1.0 into /workspace/builds/worker-7-tc2/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-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rustleaf-macros 0.1.0 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 84d18fbcd993ced47272162226fbfbb34406c6e247371d7594a6fb4b05155de4 [INFO] running `Command { std: "docker" "start" "-a" "84d18fbcd993ced47272162226fbfbb34406c6e247371d7594a6fb4b05155de4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "84d18fbcd993ced47272162226fbfbb34406c6e247371d7594a6fb4b05155de4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84d18fbcd993ced47272162226fbfbb34406c6e247371d7594a6fb4b05155de4", kill_on_drop: false }` [INFO] [stdout] 84d18fbcd993ced47272162226fbfbb34406c6e247371d7594a6fb4b05155de4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 722788c33e59e5c49ee933464c5b3c0a8c34ae311a2d18db51bbb8dfd417863e [INFO] running `Command { std: "docker" "start" "-a" "722788c33e59e5c49ee933464c5b3c0a8c34ae311a2d18db51bbb8dfd417863e", 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.91s [INFO] running `Command { std: "docker" "inspect" "722788c33e59e5c49ee933464c5b3c0a8c34ae311a2d18db51bbb8dfd417863e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "722788c33e59e5c49ee933464c5b3c0a8c34ae311a2d18db51bbb8dfd417863e", kill_on_drop: false }` [INFO] [stdout] 722788c33e59e5c49ee933464c5b3c0a8c34ae311a2d18db51bbb8dfd417863e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a5047aef4534d940b7d962c53a9593237c455f8462dcb8dc5b8a8fac5abae8f7 [INFO] running `Command { std: "docker" "start" "-a" "a5047aef4534d940b7d962c53a9593237c455f8462dcb8dc5b8a8fac5abae8f7", 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 1.53s [INFO] running `Command { std: "docker" "inspect" "a5047aef4534d940b7d962c53a9593237c455f8462dcb8dc5b8a8fac5abae8f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5047aef4534d940b7d962c53a9593237c455f8462dcb8dc5b8a8fac5abae8f7", kill_on_drop: false }` [INFO] [stdout] a5047aef4534d940b7d962c53a9593237c455f8462dcb8dc5b8a8fac5abae8f7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7903f9c7a6bbb9c3b50dba31dd30ac0cb083f47aefc9dd2d5394116321f558b5 [INFO] running `Command { std: "docker" "start" "-a" "7903f9c7a6bbb9c3b50dba31dd30ac0cb083f47aefc9dd2d5394116321f558b5", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rustleaf_macros-5eff1f4c5e49a05f) [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/method_wrapper.rs - method_wrapper::rustleaf_impl (line 43) ... FAILED [INFO] [stdout] test src/function_wrapper.rs - function_wrapper::rustleaf_fn (line 16) ... 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 32) ... FAILED [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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] 49 | 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] 49 - pub fn rustleaf_Point_new(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 49 + pub fn rustleaf_Point_new(values: Vec) -> anyhow::Result { .. } [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 49 - pub fn rustleaf_Point_new(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 49 + 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] 49 | 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] 49 - pub fn rustleaf_Point_new(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 49 + 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] 53 | pub fn rustleaf_magnitude(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 53 - pub fn rustleaf_magnitude(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 53 + pub fn rustleaf_magnitude(values: Vec) -> anyhow::Result { .. } [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 53 - pub fn rustleaf_magnitude(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 53 + 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] 53 | 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] 53 - pub fn rustleaf_magnitude(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 53 + 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] 54 | pub fn rustleaf_distance(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 54 - pub fn rustleaf_distance(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 54 + pub fn rustleaf_distance(values: Vec) -> anyhow::Result { .. } [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 54 - pub fn rustleaf_distance(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 54 + 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] 54 | 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] 54 - pub fn rustleaf_distance(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 54 + 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] 55 | pub fn rustleaf_scale(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 55 - pub fn rustleaf_scale(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 55 + pub fn rustleaf_scale(values: Vec) -> anyhow::Result { .. } [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 55 - pub fn rustleaf_scale(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 55 + 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] 55 | 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] 55 - pub fn rustleaf_scale(values: Vec) -> anyhow::Result { ... } [INFO] [stdout] 55 + 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] 44 | 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] 49 | 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] 49 | 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] 49 | 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] 49 | 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] 52 | 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] 53 | 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] 52 | 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] 53 | 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] 52 | 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] 54 | 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] 52 | 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] 54 | 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] 52 | 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] 55 | 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] 52 | 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] 55 | 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] 52 | 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] 49 | 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] 53 | 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] 54 | 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] 55 | 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] ---- 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] 17 | #[rustleaf] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 16 + 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] 18 | 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] 18 | 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] 16 + 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/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] 29 | 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] 29 | 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] 25 | 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] 25 | 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] 24 + 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] 30 | 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] 29 | 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 32) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/method_wrapper.rs:35:38 [INFO] [stdout] | [INFO] [stdout] 35 | 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] 35 - fn new(x: f64, y: f64) -> Self { ... } // Static method (constructor) [INFO] [stdout] 35 + fn new(x: f64, y: f64) -> Self { .. } // Static method (constructor) [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 35 - fn new(x: f64, y: f64) -> Self { ... } // Static method (constructor) [INFO] [stdout] 35 + 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] 35 | 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] 35 - fn new(x: f64, y: f64) -> Self { ... } // Static method (constructor) [INFO] [stdout] 35 + 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] 36 | fn magnitude(&self) -> f64 { ... } // Instance method [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 36 - fn magnitude(&self) -> f64 { ... } // Instance method [INFO] [stdout] 36 + fn magnitude(&self) -> f64 { .. } // Instance method [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 36 - fn magnitude(&self) -> f64 { ... } // Instance method [INFO] [stdout] 36 + 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] 36 | 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] 36 - fn magnitude(&self) -> f64 { ... } // Instance method [INFO] [stdout] 36 + 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] 37 | 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] 37 - fn distance(&self, other: &Point) -> f64 { ... } // Instance method with parameters [INFO] [stdout] 37 + fn distance(&self, other: &Point) -> f64 { .. } // Instance method with parameters [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 37 - fn distance(&self, other: &Point) -> f64 { ... } // Instance method with parameters [INFO] [stdout] 37 + 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] 37 | 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] 37 - fn distance(&self, other: &Point) -> f64 { ... } // Instance method with parameters [INFO] [stdout] 37 + 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] 38 | fn scale(&mut self, factor: f64) { ... } // Mutating method [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 38 - fn scale(&mut self, factor: f64) { ... } // Mutating method [INFO] [stdout] 38 + fn scale(&mut self, factor: f64) { .. } // Mutating method [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 38 - fn scale(&mut self, factor: f64) { ... } // Mutating method [INFO] [stdout] 38 + 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] 38 | 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] 38 - fn scale(&mut self, factor: f64) { ... } // Mutating method [INFO] [stdout] 38 + 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] 33 | #[rustleaf] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 32 + 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] 34 | 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] 37 | 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] [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.31s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "7903f9c7a6bbb9c3b50dba31dd30ac0cb083f47aefc9dd2d5394116321f558b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7903f9c7a6bbb9c3b50dba31dd30ac0cb083f47aefc9dd2d5394116321f558b5", kill_on_drop: false }` [INFO] [stdout] 7903f9c7a6bbb9c3b50dba31dd30ac0cb083f47aefc9dd2d5394116321f558b5