[INFO] cloning repository https://github.com/pseudobabble/r2-engine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pseudobabble/r2-engine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpseudobabble%2Fr2-engine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpseudobabble%2Fr2-engine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 60cbbabe373904fea0701ebf160429ba7acad059 [INFO] checking pseudobabble/r2-engine against try#4949cf2f817beadb9a248d423b6d55d6d2398ffe for pr-142681 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpseudobabble%2Fr2-engine" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/pseudobabble/r2-engine [INFO] finished tweaking git repo https://github.com/pseudobabble/r2-engine [INFO] tweaked toml for git repo https://github.com/pseudobabble/r2-engine written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/pseudobabble/r2-engine on toolchain 4949cf2f817beadb9a248d423b6d55d6d2398ffe [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4949cf2f817beadb9a248d423b6d55d6d2398ffe" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/pseudobabble/r2-engine 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" "+4949cf2f817beadb9a248d423b6d55d6d2398ffe" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking pseudobabble/r2-engine against try#4949cf2f817beadb9a248d423b6d55d6d2398ffe for pr-142681 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpseudobabble%2Fr2-engine" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/pseudobabble/r2-engine [INFO] finished tweaking git repo https://github.com/pseudobabble/r2-engine [INFO] tweaked toml for git repo https://github.com/pseudobabble/r2-engine written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/pseudobabble/r2-engine on toolchain 4949cf2f817beadb9a248d423b6d55d6d2398ffe [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4949cf2f817beadb9a248d423b6d55d6d2398ffe" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/pseudobabble/r2-engine 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" "+4949cf2f817beadb9a248d423b6d55d6d2398ffe" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+4949cf2f817beadb9a248d423b6d55d6d2398ffe" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3ed51caec1a95de59b9db6a087d7be97ddeccb75870926bcf63664975910fa1a [INFO] running `Command { std: "docker" "start" "-a" "3ed51caec1a95de59b9db6a087d7be97ddeccb75870926bcf63664975910fa1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3ed51caec1a95de59b9db6a087d7be97ddeccb75870926bcf63664975910fa1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ed51caec1a95de59b9db6a087d7be97ddeccb75870926bcf63664975910fa1a", kill_on_drop: false }` [INFO] [stdout] 3ed51caec1a95de59b9db6a087d7be97ddeccb75870926bcf63664975910fa1a [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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+4949cf2f817beadb9a248d423b6d55d6d2398ffe" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 590bc8e6c0fd2a007cdf543a19a00b39c6b742f0b09312010dcef183f6cd81a3 [INFO] running `Command { std: "docker" "start" "-a" "590bc8e6c0fd2a007cdf543a19a00b39c6b742f0b09312010dcef183f6cd81a3", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling matrixmultiply v0.3.7 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking ndarray v0.15.6 [INFO] [stderr] Checking r2engine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0223]: ambiguous associated type [INFO] [stdout] --> src/interpreter.rs:143:23 [INFO] [stdout] | [INFO] [stdout] 143 | unit: Unit::Length { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if there were a trait named `Example` with associated type `Length` implemented for `types::Unit`, you could use the fully-qualified path [INFO] [stdout] | [INFO] [stdout] 143 - unit: Unit::Length { [INFO] [stdout] 143 + unit: ::Length { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/interpreter.rs:145:31 [INFO] [stdout] | [INFO] [stdout] 145 | unit: UnitIdentity::Meter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected `UnitIdentity`, found enum constructor [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | Meter(f64), [INFO] [stdout] | ----- `Meter` defines an enum variant constructor here, which should be called [INFO] [stdout] | [INFO] [stdout] = note: expected enum `types::UnitIdentity` [INFO] [stdout] found enum constructor `fn(f64) -> types::UnitIdentity {types::UnitIdentity::Meter}` [INFO] [stdout] help: use parentheses to construct this tuple variant [INFO] [stdout] | [INFO] [stdout] 145 | unit: UnitIdentity::Meter(/* f64 */), [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `types::Unit` has no field named `conversion_factor` [INFO] [stdout] --> src/interpreter.rs:146:25 [INFO] [stdout] | [INFO] [stdout] 146 | conversion_factor: 1.0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ `types::Unit` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0223]: ambiguous associated type [INFO] [stdout] --> src/interpreter.rs:153:23 [INFO] [stdout] | [INFO] [stdout] 153 | unit: Unit::Length { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if there were a trait named `Example` with associated type `Length` implemented for `types::Unit`, you could use the fully-qualified path [INFO] [stdout] | [INFO] [stdout] 153 - unit: Unit::Length { [INFO] [stdout] 153 + unit: ::Length { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/interpreter.rs:155:31 [INFO] [stdout] | [INFO] [stdout] 155 | unit: UnitIdentity::Kilometer, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ expected `UnitIdentity`, found enum constructor [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | Kilometer(f64), [INFO] [stdout] | --------- `Kilometer` defines an enum variant constructor here, which should be called [INFO] [stdout] | [INFO] [stdout] = note: expected enum `types::UnitIdentity` [INFO] [stdout] found enum constructor `fn(f64) -> types::UnitIdentity {types::UnitIdentity::Kilometer}` [INFO] [stdout] help: use parentheses to construct this tuple variant [INFO] [stdout] | [INFO] [stdout] 155 | unit: UnitIdentity::Kilometer(/* f64 */), [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `types::Unit` has no field named `conversion_factor` [INFO] [stdout] --> src/interpreter.rs:156:25 [INFO] [stdout] | [INFO] [stdout] 156 | conversion_factor: 1000.0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ `types::Unit` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `dimension` [INFO] [stdout] --> src/parser.rs:245:17 [INFO] [stdout] | [INFO] [stdout] 245 | dimension: Unit { [INFO] [stdout] | ^^^^^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:247:31 [INFO] [stdout] | [INFO] [stdout] 247 | unit: UnitIdentity::Meter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected `UnitIdentity`, found enum constructor [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | Meter(f64), [INFO] [stdout] | ----- `Meter` defines an enum variant constructor here, which should be called [INFO] [stdout] | [INFO] [stdout] = note: expected enum `types::UnitIdentity` [INFO] [stdout] found enum constructor `fn(f64) -> types::UnitIdentity {types::UnitIdentity::Meter}` [INFO] [stdout] help: use parentheses to construct this tuple variant [INFO] [stdout] | [INFO] [stdout] 247 | unit: UnitIdentity::Meter(/* f64 */), [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `types::Unit` has no field named `conversion_factor` [INFO] [stdout] --> src/parser.rs:248:25 [INFO] [stdout] | [INFO] [stdout] 248 | conversion_factor: 1.0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ `types::Unit` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:246:27 [INFO] [stdout] | [INFO] [stdout] 246 | unit: Unit { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 247 | | unit: UnitIdentity::Meter, [INFO] [stdout] 248 | | conversion_factor: 1.0 [INFO] [stdout] 249 | | }, [INFO] [stdout] | |_____________________^ expected `UnitIdentity`, found `Unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `types::Unit` has no field named `power` [INFO] [stdout] --> src/parser.rs:250:21 [INFO] [stdout] | [INFO] [stdout] 250 | power: 1 [INFO] [stdout] | ^^^^^ `types::Unit` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `dimension` [INFO] [stdout] --> src/parser.rs:261:17 [INFO] [stdout] | [INFO] [stdout] 261 | dimension: Unit { [INFO] [stdout] | ^^^^^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:263:31 [INFO] [stdout] | [INFO] [stdout] 263 | unit: UnitIdentity::Meter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected `UnitIdentity`, found enum constructor [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | Meter(f64), [INFO] [stdout] | ----- `Meter` defines an enum variant constructor here, which should be called [INFO] [stdout] | [INFO] [stdout] = note: expected enum `types::UnitIdentity` [INFO] [stdout] found enum constructor `fn(f64) -> types::UnitIdentity {types::UnitIdentity::Meter}` [INFO] [stdout] help: use parentheses to construct this tuple variant [INFO] [stdout] | [INFO] [stdout] 263 | unit: UnitIdentity::Meter(/* f64 */), [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `types::Unit` has no field named `conversion_factor` [INFO] [stdout] --> src/parser.rs:264:25 [INFO] [stdout] | [INFO] [stdout] 264 | conversion_factor: 1.0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ `types::Unit` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:262:27 [INFO] [stdout] | [INFO] [stdout] 262 | unit: Unit { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 263 | | unit: UnitIdentity::Meter, [INFO] [stdout] 264 | | conversion_factor: 1.0 [INFO] [stdout] 265 | | }, [INFO] [stdout] | |_____________________^ expected `UnitIdentity`, found `Unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `types::Unit` has no field named `power` [INFO] [stdout] --> src/parser.rs:266:21 [INFO] [stdout] | [INFO] [stdout] 266 | power: 1 [INFO] [stdout] | ^^^^^ `types::Unit` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `dimension` [INFO] [stdout] --> src/parser.rs:277:17 [INFO] [stdout] | [INFO] [stdout] 277 | dimension: Unit { [INFO] [stdout] | ^^^^^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:278:27 [INFO] [stdout] | [INFO] [stdout] 278 | unit: UnitIdentity::Meter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected `UnitIdentity`, found enum constructor [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | Meter(f64), [INFO] [stdout] | ----- `Meter` defines an enum variant constructor here, which should be called [INFO] [stdout] | [INFO] [stdout] = note: expected enum `types::UnitIdentity` [INFO] [stdout] found enum constructor `fn(f64) -> types::UnitIdentity {types::UnitIdentity::Meter}` [INFO] [stdout] help: use parentheses to construct this tuple variant [INFO] [stdout] | [INFO] [stdout] 278 | unit: UnitIdentity::Meter(/* f64 */), [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `types::Unit` has no field named `conversion_factor` [INFO] [stdout] --> src/parser.rs:279:21 [INFO] [stdout] | [INFO] [stdout] 279 | conversion_factor: 1.0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ `types::Unit` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `power` [INFO] [stdout] --> src/parser.rs:281:17 [INFO] [stdout] | [INFO] [stdout] 281 | power: 1 [INFO] [stdout] | ^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `dimension` [INFO] [stdout] --> src/parser.rs:291:17 [INFO] [stdout] | [INFO] [stdout] 291 | dimension: Unit { [INFO] [stdout] | ^^^^^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:292:27 [INFO] [stdout] | [INFO] [stdout] 292 | unit: UnitIdentity::Meter, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected `UnitIdentity`, found enum constructor [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | Meter(f64), [INFO] [stdout] | ----- `Meter` defines an enum variant constructor here, which should be called [INFO] [stdout] | [INFO] [stdout] = note: expected enum `types::UnitIdentity` [INFO] [stdout] found enum constructor `fn(f64) -> types::UnitIdentity {types::UnitIdentity::Meter}` [INFO] [stdout] help: use parentheses to construct this tuple variant [INFO] [stdout] | [INFO] [stdout] 292 | unit: UnitIdentity::Meter(/* f64 */), [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `types::Unit` has no field named `conversion_factor` [INFO] [stdout] --> src/parser.rs:293:21 [INFO] [stdout] | [INFO] [stdout] 293 | conversion_factor: 1.0 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ `types::Unit` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `power` [INFO] [stdout] --> src/parser.rs:295:17 [INFO] [stdout] | [INFO] [stdout] 295 | power: 1 [INFO] [stdout] | ^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `dimension` [INFO] [stdout] --> src/parser.rs:322:21 [INFO] [stdout] | [INFO] [stdout] 322 | dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:51:28 [INFO] [stdout] | [INFO] [stdout] 51 | Quantity::None(power) => UnitIdentity::None(1.0), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Meter` found for struct `types::Unit` in the current scope [INFO] [stdout] --> src/parser.rs:322:51 [INFO] [stdout] | [INFO] [stdout] 322 | dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^^ associated item not found in `types::Unit` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:398:1 [INFO] [stdout] | [INFO] [stdout] 398 | pub struct Unit { [INFO] [stdout] | --------------- associated item `Meter` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:52:28 [INFO] [stdout] | [INFO] [stdout] 52 | Quantity::Time(power) => UnitIdentity::Second(1.0), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:59:32 [INFO] [stdout] | [INFO] [stdout] 59 | Quantity::Currency(power) => UnitIdentity::USD(1.0), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | Quantity::None(power) => rhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:124:32 [INFO] [stdout] | [INFO] [stdout] 124 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:129:32 [INFO] [stdout] | [INFO] [stdout] 129 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:134:32 [INFO] [stdout] | [INFO] [stdout] 134 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `quantity` in initializer of `types::Unit` [INFO] [stdout] --> src/parser.rs:322:32 [INFO] [stdout] | [INFO] [stdout] 322 | dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^ missing `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `dimension` [INFO] [stdout] --> src/parser.rs:336:21 [INFO] [stdout] | [INFO] [stdout] 336 | dimension: Unit { [INFO] [stdout] | ^^^^^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:188:28 [INFO] [stdout] | [INFO] [stdout] 188 | Quantity::None(power) => rhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:193:32 [INFO] [stdout] | [INFO] [stdout] 193 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:198:32 [INFO] [stdout] | [INFO] [stdout] 198 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:203:32 [INFO] [stdout] | [INFO] [stdout] 203 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Kilometer` found for struct `types::Unit` in the current scope [INFO] [stdout] --> src/parser.rs:337:37 [INFO] [stdout] | [INFO] [stdout] 337 | unit: Unit::Kilometer [INFO] [stdout] | ^^^^^^^^^ associated item not found in `types::Unit` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:398:1 [INFO] [stdout] | [INFO] [stdout] 398 | pub struct Unit { [INFO] [stdout] | --------------- associated item `Kilometer` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `quantity` in initializer of `types::Unit` [INFO] [stdout] --> src/parser.rs:336:32 [INFO] [stdout] | [INFO] [stdout] 336 | dimension: Unit { [INFO] [stdout] | ^^^^ missing `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:265:28 [INFO] [stdout] | [INFO] [stdout] 265 | Quantity::None(power) => rhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:268:32 [INFO] [stdout] | [INFO] [stdout] 268 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:277:32 [INFO] [stdout] | [INFO] [stdout] 277 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:286:32 [INFO] [stdout] | [INFO] [stdout] 286 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:294:32 [INFO] [stdout] | [INFO] [stdout] 294 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `dimension` [INFO] [stdout] --> src/parser.rs:355:21 [INFO] [stdout] | [INFO] [stdout] 355 | dimension: Unit { [INFO] [stdout] | ^^^^^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:355:28 [INFO] [stdout] | [INFO] [stdout] 355 | Quantity::None(power) => rhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:358:32 [INFO] [stdout] | [INFO] [stdout] 358 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:367:32 [INFO] [stdout] | [INFO] [stdout] 367 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:376:32 [INFO] [stdout] | [INFO] [stdout] 376 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:384:32 [INFO] [stdout] | [INFO] [stdout] 384 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Kilometer` found for struct `types::Unit` in the current scope [INFO] [stdout] --> src/parser.rs:356:37 [INFO] [stdout] | [INFO] [stdout] 356 | unit: Unit::Kilometer [INFO] [stdout] | ^^^^^^^^^ associated item not found in `types::Unit` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:398:1 [INFO] [stdout] | [INFO] [stdout] 398 | pub struct Unit { [INFO] [stdout] | --------------- associated item `Kilometer` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `quantity` in initializer of `types::Unit` [INFO] [stdout] --> src/parser.rs:355:32 [INFO] [stdout] | [INFO] [stdout] 355 | dimension: Unit { [INFO] [stdout] | ^^^^ missing `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `dimension` [INFO] [stdout] --> src/parser.rs:361:21 [INFO] [stdout] | [INFO] [stdout] 361 | dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Meter` found for struct `types::Unit` in the current scope [INFO] [stdout] --> src/parser.rs:361:51 [INFO] [stdout] | [INFO] [stdout] 361 | dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^^ associated item not found in `types::Unit` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:398:1 [INFO] [stdout] | [INFO] [stdout] 398 | pub struct Unit { [INFO] [stdout] | --------------- associated item `Meter` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `quantity` in initializer of `types::Unit` [INFO] [stdout] --> src/parser.rs:361:32 [INFO] [stdout] | [INFO] [stdout] 361 | dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^ missing `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `dimension` [INFO] [stdout] --> src/parser.rs:377:25 [INFO] [stdout] | [INFO] [stdout] 377 | dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Meter` found for struct `types::Unit` in the current scope [INFO] [stdout] --> src/parser.rs:377:55 [INFO] [stdout] | [INFO] [stdout] 377 | dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^^ associated item not found in `types::Unit` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:398:1 [INFO] [stdout] | [INFO] [stdout] 398 | pub struct Unit { [INFO] [stdout] | --------------- associated item `Meter` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `quantity` in initializer of `types::Unit` [INFO] [stdout] --> src/parser.rs:377:36 [INFO] [stdout] | [INFO] [stdout] 377 | dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^ missing `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `dimension` [INFO] [stdout] --> src/parser.rs:381:25 [INFO] [stdout] | [INFO] [stdout] 381 | dimension: Unit { [INFO] [stdout] | ^^^^^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Kilometer` found for struct `types::Unit` in the current scope [INFO] [stdout] --> src/parser.rs:382:41 [INFO] [stdout] | [INFO] [stdout] 382 | ... unit: Unit::Kilometer [INFO] [stdout] | ^^^^^^^^^ associated item not found in `types::Unit` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:398:1 [INFO] [stdout] | [INFO] [stdout] 398 | pub struct Unit { [INFO] [stdout] | --------------- associated item `Kilometer` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `quantity` in initializer of `types::Unit` [INFO] [stdout] --> src/parser.rs:381:36 [INFO] [stdout] | [INFO] [stdout] 381 | dimension: Unit { [INFO] [stdout] | ^^^^ missing `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `dimension` [INFO] [stdout] --> src/parser.rs:390:25 [INFO] [stdout] | [INFO] [stdout] 390 | dimension: Unit { [INFO] [stdout] | ^^^^^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Kilometer` found for struct `types::Unit` in the current scope [INFO] [stdout] --> src/parser.rs:391:41 [INFO] [stdout] | [INFO] [stdout] 391 | ... unit: Unit::Kilometer [INFO] [stdout] | ^^^^^^^^^ associated item not found in `types::Unit` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:398:1 [INFO] [stdout] | [INFO] [stdout] 398 | pub struct Unit { [INFO] [stdout] | --------------- associated item `Kilometer` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `quantity` in initializer of `types::Unit` [INFO] [stdout] --> src/parser.rs:390:36 [INFO] [stdout] | [INFO] [stdout] 390 | dimension: Unit { [INFO] [stdout] | ^^^^ missing `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `dimension` [INFO] [stdout] --> src/parser.rs:396:25 [INFO] [stdout] | [INFO] [stdout] 396 | dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Meter` found for struct `types::Unit` in the current scope [INFO] [stdout] --> src/parser.rs:396:55 [INFO] [stdout] | [INFO] [stdout] 396 | dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^^ associated item not found in `types::Unit` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:398:1 [INFO] [stdout] | [INFO] [stdout] 398 | pub struct Unit { [INFO] [stdout] | --------------- associated item `Meter` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `quantity` in initializer of `types::Unit` [INFO] [stdout] --> src/parser.rs:396:36 [INFO] [stdout] | [INFO] [stdout] 396 | dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^ missing `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `dimension` [INFO] [stdout] --> src/parser.rs:416:25 [INFO] [stdout] | [INFO] [stdout] 416 | dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Meter` found for struct `types::Unit` in the current scope [INFO] [stdout] --> src/parser.rs:416:55 [INFO] [stdout] | [INFO] [stdout] 416 | dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^^ associated item not found in `types::Unit` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:398:1 [INFO] [stdout] | [INFO] [stdout] 398 | pub struct Unit { [INFO] [stdout] | --------------- associated item `Meter` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `quantity` in initializer of `types::Unit` [INFO] [stdout] --> src/parser.rs:416:36 [INFO] [stdout] | [INFO] [stdout] 416 | dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^ missing `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `dimension` [INFO] [stdout] --> src/parser.rs:420:25 [INFO] [stdout] | [INFO] [stdout] 420 | dimension: Unit { [INFO] [stdout] | ^^^^^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Kilometer` found for struct `types::Unit` in the current scope [INFO] [stdout] --> src/parser.rs:421:41 [INFO] [stdout] | [INFO] [stdout] 421 | ... unit: Unit::Kilometer [INFO] [stdout] | ^^^^^^^^^ associated item not found in `types::Unit` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:398:1 [INFO] [stdout] | [INFO] [stdout] 398 | pub struct Unit { [INFO] [stdout] | --------------- associated item `Kilometer` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `quantity` in initializer of `types::Unit` [INFO] [stdout] --> src/parser.rs:420:36 [INFO] [stdout] | [INFO] [stdout] 420 | dimension: Unit { [INFO] [stdout] | ^^^^ missing `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `dimension` [INFO] [stdout] --> src/parser.rs:441:29 [INFO] [stdout] | [INFO] [stdout] 441 | ... dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Meter` found for struct `types::Unit` in the current scope [INFO] [stdout] --> src/parser.rs:441:59 [INFO] [stdout] | [INFO] [stdout] 441 | ... dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^^ associated item not found in `types::Unit` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:398:1 [INFO] [stdout] | [INFO] [stdout] 398 | pub struct Unit { [INFO] [stdout] | --------------- associated item `Meter` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `quantity` in initializer of `types::Unit` [INFO] [stdout] --> src/parser.rs:441:40 [INFO] [stdout] | [INFO] [stdout] 441 | ... dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^ missing `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `dimension` [INFO] [stdout] --> src/parser.rs:445:29 [INFO] [stdout] | [INFO] [stdout] 445 | ... dimension: Unit { [INFO] [stdout] | ^^^^^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:15:46 [INFO] [stdout] | [INFO] [stdout] 15 | println!("reached parse_length {}", input.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:20:40 [INFO] [stdout] | [INFO] [stdout] 20 | println!(" parsing unit {}", input.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:43:44 [INFO] [stdout] | [INFO] [stdout] 43 | println!(" parsed unit {}", unit_alias.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:49:47 [INFO] [stdout] | [INFO] [stdout] 49 | println!(" parsed power {}", power_string.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:126:49 [INFO] [stdout] | [INFO] [stdout] 126 | println!("reached parse_dimension {}", input.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:134:47 [INFO] [stdout] | [INFO] [stdout] 134 | println!("reached parse_number {}", number.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:149:46 [INFO] [stdout] | [INFO] [stdout] 149 | println!("reached parse_vector {}", input.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:151:55 [INFO] [stdout] | [INFO] [stdout] 151 | println!(" reached vector bracket open {}", input.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:153:42 [INFO] [stdout] | [INFO] [stdout] 153 | println!(" reached vector {}", input.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Kilometer` found for struct `types::Unit` in the current scope [INFO] [stdout] --> src/parser.rs:446:45 [INFO] [stdout] | [INFO] [stdout] 446 | ... unit: Unit::Kilometer [INFO] [stdout] | ^^^^^^^^^ associated item not found in `types::Unit` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:398:1 [INFO] [stdout] | [INFO] [stdout] 398 | pub struct Unit { [INFO] [stdout] | --------------- associated item `Kilometer` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:156:56 [INFO] [stdout] | [INFO] [stdout] 156 | println!(" reached vector bracket close {}", input.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `quantity` in initializer of `types::Unit` [INFO] [stdout] --> src/parser.rs:445:40 [INFO] [stdout] | [INFO] [stdout] 445 | ... dimension: Unit { [INFO] [stdout] | ^^^^ missing `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:171:45 [INFO] [stdout] | [INFO] [stdout] 171 | println!("reached parse_value {}", input.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:176:43 [INFO] [stdout] | [INFO] [stdout] 176 | println!("reached parse_name {}", name.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `dimension` [INFO] [stdout] --> src/parser.rs:454:29 [INFO] [stdout] | [INFO] [stdout] 454 | ... dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:183:48 [INFO] [stdout] | [INFO] [stdout] 183 | println!("reached parse_operator {}", input.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:194:50 [INFO] [stdout] | [INFO] [stdout] 194 | println!("reached parse_expression {}", input.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:218:48 [INFO] [stdout] | [INFO] [stdout] 218 | println!("reached parse_variable {}", input.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/parser.rs:233:44 [INFO] [stdout] | [INFO] [stdout] 233 | println!("reached parse_line {}", input.clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Meter` found for struct `types::Unit` in the current scope [INFO] [stdout] --> src/parser.rs:454:59 [INFO] [stdout] | [INFO] [stdout] 454 | ... dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^^ associated item not found in `types::Unit` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:398:1 [INFO] [stdout] | [INFO] [stdout] 398 | pub struct Unit { [INFO] [stdout] | --------------- associated item `Meter` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `quantity` in initializer of `types::Unit` [INFO] [stdout] --> src/parser.rs:454:40 [INFO] [stdout] | [INFO] [stdout] 454 | ... dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^ missing `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `dimension` [INFO] [stdout] --> src/parser.rs:458:29 [INFO] [stdout] | [INFO] [stdout] 458 | ... dimension: Unit { [INFO] [stdout] | ^^^^^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Kilometer` found for struct `types::Unit` in the current scope [INFO] [stdout] --> src/parser.rs:459:45 [INFO] [stdout] | [INFO] [stdout] 459 | ... unit: Unit::Kilometer [INFO] [stdout] | ^^^^^^^^^ associated item not found in `types::Unit` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:398:1 [INFO] [stdout] | [INFO] [stdout] 398 | pub struct Unit { [INFO] [stdout] | --------------- associated item `Kilometer` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `quantity` in initializer of `types::Unit` [INFO] [stdout] --> src/parser.rs:458:40 [INFO] [stdout] | [INFO] [stdout] 458 | ... dimension: Unit { [INFO] [stdout] | ^^^^ missing `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `dimension` [INFO] [stdout] --> src/parser.rs:482:29 [INFO] [stdout] | [INFO] [stdout] 482 | ... dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Meter` found for struct `types::Unit` in the current scope [INFO] [stdout] --> src/parser.rs:482:59 [INFO] [stdout] | [INFO] [stdout] 482 | ... dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^^ associated item not found in `types::Unit` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:398:1 [INFO] [stdout] | [INFO] [stdout] 398 | pub struct Unit { [INFO] [stdout] | --------------- associated item `Meter` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `quantity` in initializer of `types::Unit` [INFO] [stdout] --> src/parser.rs:482:40 [INFO] [stdout] | [INFO] [stdout] 482 | ... dimension: Unit { unit: Unit::Meter } [INFO] [stdout] | ^^^^ missing `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `dimension` [INFO] [stdout] --> src/parser.rs:486:29 [INFO] [stdout] | [INFO] [stdout] 486 | ... dimension: Unit { [INFO] [stdout] | ^^^^^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Kilometer` found for struct `types::Unit` in the current scope [INFO] [stdout] --> src/parser.rs:487:45 [INFO] [stdout] | [INFO] [stdout] 487 | ... unit: Unit::Kilometer [INFO] [stdout] | ^^^^^^^^^ associated item not found in `types::Unit` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:398:1 [INFO] [stdout] | [INFO] [stdout] 398 | pub struct Unit { [INFO] [stdout] | --------------- associated item `Kilometer` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `quantity` in initializer of `types::Unit` [INFO] [stdout] --> src/parser.rs:486:40 [INFO] [stdout] | [INFO] [stdout] 486 | ... dimension: Unit { [INFO] [stdout] | ^^^^ missing `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0559]: variant `types::AstNode::Double` has no field named `dimension` [INFO] [stdout] --> src/parser.rs:496:25 [INFO] [stdout] | [INFO] [stdout] 496 | dimension: Unit { [INFO] [stdout] | ^^^^^^^^^ `types::AstNode::Double` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `unit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Kilometer` found for struct `types::Unit` in the current scope [INFO] [stdout] --> src/parser.rs:497:41 [INFO] [stdout] | [INFO] [stdout] 497 | ... unit: Unit::Kilometer [INFO] [stdout] | ^^^^^^^^^ associated item not found in `types::Unit` [INFO] [stdout] | [INFO] [stdout] ::: src/types.rs:398:1 [INFO] [stdout] | [INFO] [stdout] 398 | pub struct Unit { [INFO] [stdout] | --------------- associated item `Kilometer` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `quantity` in initializer of `types::Unit` [INFO] [stdout] --> src/parser.rs:496:36 [INFO] [stdout] | [INFO] [stdout] 496 | dimension: Unit { [INFO] [stdout] | ^^^^ missing `quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:51:28 [INFO] [stdout] | [INFO] [stdout] 51 | Quantity::None(power) => UnitIdentity::None(1.0), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:52:28 [INFO] [stdout] | [INFO] [stdout] 52 | Quantity::Time(power) => UnitIdentity::Second(1.0), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:59:32 [INFO] [stdout] | [INFO] [stdout] 59 | Quantity::Currency(power) => UnitIdentity::USD(1.0), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:119:28 [INFO] [stdout] | [INFO] [stdout] 119 | Quantity::None(power) => rhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:124:32 [INFO] [stdout] | [INFO] [stdout] 124 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:129:32 [INFO] [stdout] | [INFO] [stdout] 129 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:134:32 [INFO] [stdout] | [INFO] [stdout] 134 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:188:28 [INFO] [stdout] | [INFO] [stdout] 188 | Quantity::None(power) => rhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:193:32 [INFO] [stdout] | [INFO] [stdout] 193 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:198:32 [INFO] [stdout] | [INFO] [stdout] 198 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:203:32 [INFO] [stdout] | [INFO] [stdout] 203 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:265:28 [INFO] [stdout] | [INFO] [stdout] 265 | Quantity::None(power) => rhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:268:32 [INFO] [stdout] | [INFO] [stdout] 268 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:277:32 [INFO] [stdout] | [INFO] [stdout] 277 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:286:32 [INFO] [stdout] | [INFO] [stdout] 286 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:294:32 [INFO] [stdout] | [INFO] [stdout] 294 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:355:28 [INFO] [stdout] | [INFO] [stdout] 355 | Quantity::None(power) => rhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:358:32 [INFO] [stdout] | [INFO] [stdout] 358 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:367:32 [INFO] [stdout] | [INFO] [stdout] 367 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:376:32 [INFO] [stdout] | [INFO] [stdout] 376 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `power` [INFO] [stdout] --> src/types.rs:384:32 [INFO] [stdout] | [INFO] [stdout] 384 | Quantity::None(power) => lhs_derived, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_power` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0063, E0223, E0308, E0559, E0560, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0063`. [INFO] [stdout] [INFO] [stderr] error: could not compile `r2engine` (bin "r2engine" test) due to 75 previous errors; 21 warnings emitted [INFO] running `Command { std: "docker" "inspect" "590bc8e6c0fd2a007cdf543a19a00b39c6b742f0b09312010dcef183f6cd81a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "590bc8e6c0fd2a007cdf543a19a00b39c6b742f0b09312010dcef183f6cd81a3", kill_on_drop: false }` [INFO] [stdout] 590bc8e6c0fd2a007cdf543a19a00b39c6b742f0b09312010dcef183f6cd81a3