[INFO] fetching crate rustleaf-macros 0.1.0... [INFO] testing rustleaf-macros-0.1.0 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] extracting crate rustleaf-macros 0.1.0 into /workspace/builds/worker-0-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-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rustleaf-macros 0.1.0 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e54ad204cbad70584ab967a123caf4332bae42446074c7123fc36fa9d6fe8e9d [INFO] running `Command { std: "docker" "start" "-a" "e54ad204cbad70584ab967a123caf4332bae42446074c7123fc36fa9d6fe8e9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e54ad204cbad70584ab967a123caf4332bae42446074c7123fc36fa9d6fe8e9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e54ad204cbad70584ab967a123caf4332bae42446074c7123fc36fa9d6fe8e9d", kill_on_drop: false }` [INFO] [stdout] e54ad204cbad70584ab967a123caf4332bae42446074c7123fc36fa9d6fe8e9d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1caa9865e301c25851e18b59265d261c2147a5521858ba3e19d82c8b390e7b5e [INFO] running `Command { std: "docker" "start" "-a" "1caa9865e301c25851e18b59265d261c2147a5521858ba3e19d82c8b390e7b5e", kill_on_drop: false }` [INFO] [stderr] Compiling rustleaf-macros v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.14s [INFO] running `Command { std: "docker" "inspect" "1caa9865e301c25851e18b59265d261c2147a5521858ba3e19d82c8b390e7b5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1caa9865e301c25851e18b59265d261c2147a5521858ba3e19d82c8b390e7b5e", kill_on_drop: false }` [INFO] [stdout] 1caa9865e301c25851e18b59265d261c2147a5521858ba3e19d82c8b390e7b5e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64d06d332d5795343bdb07d47a6fe971133e385ea1586a697aec584ddb031d18 [INFO] running `Command { std: "docker" "start" "-a" "64d06d332d5795343bdb07d47a6fe971133e385ea1586a697aec584ddb031d18", 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.98s [INFO] running `Command { std: "docker" "inspect" "64d06d332d5795343bdb07d47a6fe971133e385ea1586a697aec584ddb031d18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64d06d332d5795343bdb07d47a6fe971133e385ea1586a697aec584ddb031d18", kill_on_drop: false }` [INFO] [stdout] 64d06d332d5795343bdb07d47a6fe971133e385ea1586a697aec584ddb031d18 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 328f3e2442b1b333b6cea22a944530e41b6b89469347697c241238b08c9e1f00 [INFO] running `Command { std: "docker" "start" "-a" "328f3e2442b1b333b6cea22a944530e41b6b89469347697c241238b08c9e1f00", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rustleaf_macros-1181e19f9c97d05b) [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/method_wrapper.rs - method_wrapper::rustleaf_impl (line 32) ... 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 43) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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[E0425]: 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[E0425]: 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: E0425, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [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[E0425]: 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[E0425]: 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 E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/function_wrapper.rs - function_wrapper::rustleaf_fn (line 24) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `rustleaf` in this scope [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]: cannot find module or crate `rustleaf` in this scope [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[E0425]: 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[E0425]: 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]: cannot find type `ParamType` in this scope [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]: cannot find module or crate `anyhow` in this scope [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: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [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] 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[E0425]: 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[E0425]: 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[E0425]: 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[E0425]: 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[E0425]: 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[E0425]: 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[E0425]: 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[E0425]: 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[E0425]: 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[E0425]: 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]: cannot find module or crate `anyhow` in this scope [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]: cannot find module or crate `anyhow` in this scope [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]: cannot find module or crate `anyhow` in this scope [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]: cannot find module or crate `anyhow` in this scope [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: E0425, E0433, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [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.27s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "328f3e2442b1b333b6cea22a944530e41b6b89469347697c241238b08c9e1f00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "328f3e2442b1b333b6cea22a944530e41b6b89469347697c241238b08c9e1f00", kill_on_drop: false }` [INFO] [stdout] 328f3e2442b1b333b6cea22a944530e41b6b89469347697c241238b08c9e1f00