[INFO] fetching crate rox-lang 0.0.1... [INFO] checking rox-lang-0.0.1 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate rox-lang 0.0.1 into /workspace/builds/worker-4-tc1/source [INFO] validating manifest of crates.io crate rox-lang 0.0.1 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rox-lang 0.0.1 [INFO] finished tweaking crates.io crate rox-lang 0.0.1 [INFO] tweaked toml for crates.io crate rox-lang 0.0.1 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate crates.io crate rox-lang 0.0.1 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded quote v1.0.5 [INFO] [stderr] Downloaded lalrpop-util v0.18.1 [INFO] [stderr] Downloaded structopt-derive v0.4.8 [INFO] [stderr] Downloaded cranelift v0.63.0 [INFO] [stderr] Downloaded structopt v0.3.15 [INFO] [stderr] Downloaded cranelift-module v0.63.0 [INFO] [stderr] Downloaded cranelift-object v0.63.0 [INFO] [stderr] Downloaded ascii-canvas v2.0.0 [INFO] [stderr] Downloaded cranelift-entity v0.63.0 [INFO] [stderr] Downloaded sized-chunks v0.5.3 [INFO] [stderr] Downloaded thiserror-impl v1.0.18 [INFO] [stderr] Downloaded cranelift-codegen-meta v0.63.0 [INFO] [stderr] Downloaded cranelift-native v0.63.0 [INFO] [stderr] Downloaded proc-macro2 v1.0.13 [INFO] [stderr] Downloaded anyhow v1.0.31 [INFO] [stderr] Downloaded cranelift-frontend v0.63.0 [INFO] [stderr] Downloaded cranelift-bforest v0.63.0 [INFO] [stderr] Downloaded raw-cpuid v7.0.3 [INFO] [stderr] Downloaded bit-vec v0.6.2 [INFO] [stderr] Downloaded cranelift-codegen v0.63.0 [INFO] [stderr] Downloaded regalloc v0.0.21 [INFO] [stderr] Downloaded im v14.3.0 [INFO] [stderr] Downloaded object v0.18.0 [INFO] [stderr] Downloaded lalrpop v0.18.1 [INFO] [stderr] Downloaded syn v1.0.22 [INFO] [stderr] Downloaded bumpalo v3.3.0 [INFO] [stderr] Downloaded cranelift-codegen-shared v0.63.0 [INFO] [stderr] Downloaded thiserror v1.0.18 [INFO] [stderr] Downloaded errno v0.2.5 [INFO] [stderr] Downloaded rand_xoshiro v0.4.0 [INFO] [stderr] Downloaded ena v0.13.1 [INFO] [stderr] Downloaded target-lexicon v0.10.0 [INFO] [stderr] Downloaded cranelift-simplejit v0.63.0 [INFO] [stderr] Downloaded docopt v1.1.0 [INFO] [stderr] Downloaded gimli v0.20.0 [INFO] [stderr] Downloaded plotters v0.2.14 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1bbf7a6a8fc0d1d378726b6f44aca956b9a2bf461a95eb3631826118734753a2 [INFO] running `Command { std: "docker" "start" "-a" "1bbf7a6a8fc0d1d378726b6f44aca956b9a2bf461a95eb3631826118734753a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1bbf7a6a8fc0d1d378726b6f44aca956b9a2bf461a95eb3631826118734753a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1bbf7a6a8fc0d1d378726b6f44aca956b9a2bf461a95eb3631826118734753a2", kill_on_drop: false }` [INFO] [stdout] 1bbf7a6a8fc0d1d378726b6f44aca956b9a2bf461a95eb3631826118734753a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5b103f627e86d434904b1e699077fcb24919c6b5324f15dcbc558e79d800ec84 [INFO] running `Command { std: "docker" "start" "-a" "5b103f627e86d434904b1e699077fcb24919c6b5324f15dcbc558e79d800ec84", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.13 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling syn v1.0.22 [INFO] [stderr] Compiling libc v0.2.70 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling serde v1.0.110 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling version_check v0.9.1 [INFO] [stderr] Compiling cranelift-codegen-shared v0.63.0 [INFO] [stderr] Compiling cranelift-entity v0.63.0 [INFO] [stderr] Compiling target-lexicon v0.10.0 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling cranelift-codegen-meta v0.63.0 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Compiling indexmap v1.3.2 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling phf_shared v0.7.24 [INFO] [stderr] Checking smallvec v1.4.0 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Compiling string_cache_shared v0.3.0 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Checking cranelift-bforest v0.63.0 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling regex-syntax v0.6.17 [INFO] [stderr] Checking regalloc v0.0.21 [INFO] [stderr] Compiling quote v1.0.5 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling dirs v1.0.5 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.2 [INFO] [stderr] Compiling memoffset v0.5.4 [INFO] [stderr] Compiling anyhow v1.0.31 [INFO] [stderr] Compiling aho-corasick v0.7.10 [INFO] [stderr] Checking gimli v0.20.0 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling cc v1.0.54 [INFO] [stderr] Compiling term v0.5.2 [INFO] [stderr] Compiling proc-macro-error v1.0.2 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Compiling strsim v0.9.3 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling bit-vec v0.6.2 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling ordermap v0.3.5 [INFO] [stderr] Compiling ryu v1.0.4 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling fixedbitset v0.1.9 [INFO] [stderr] Compiling ascii-canvas v2.0.0 [INFO] [stderr] Compiling bit-set v0.5.2 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Compiling petgraph v0.4.13 [INFO] [stderr] Compiling ena v0.13.1 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling sha2 v0.8.1 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Compiling string_cache_codegen v0.4.4 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Compiling raw-cpuid v7.0.3 [INFO] [stderr] Compiling diff v0.1.12 [INFO] [stderr] Checking clap v2.33.1 [INFO] [stderr] Compiling cast v0.2.3 [INFO] [stderr] Compiling im v14.3.0 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling string_cache v0.7.5 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling rayon-core v1.7.0 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Checking bitmaps v2.1.0 [INFO] [stderr] Checking object v0.18.0 [INFO] [stderr] Checking rand_xoshiro v0.4.0 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking crossbeam-queue v0.2.1 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking region v2.2.0 [INFO] [stderr] Checking errno v0.2.5 [INFO] [stderr] Checking regex-automata v0.1.9 [INFO] [stderr] Compiling regex v1.3.7 [INFO] [stderr] Checking itertools v0.9.0 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking oorandom v11.1.1 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Checking rayon v1.3.0 [INFO] [stderr] Checking sized-chunks v0.5.3 [INFO] [stderr] Checking plotters v0.2.14 [INFO] [stderr] Checking criterion-plot v0.4.2 [INFO] [stderr] Compiling lalrpop-util v0.18.1 [INFO] [stderr] Compiling syn-mid v0.5.0 [INFO] [stderr] Compiling serde_derive v1.0.110 [INFO] [stderr] Compiling thiserror-impl v1.0.18 [INFO] [stderr] Compiling structopt-derive v0.4.8 [INFO] [stderr] Compiling cranelift-codegen v0.63.0 [INFO] [stderr] Checking thiserror v1.0.18 [INFO] [stderr] Checking structopt v0.3.15 [INFO] [stderr] Checking bstr v0.2.13 [INFO] [stderr] Checking serde_json v1.0.53 [INFO] [stderr] Compiling docopt v1.1.0 [INFO] [stderr] Checking csv v1.1.3 [INFO] [stderr] Checking tinytemplate v1.0.4 [INFO] [stderr] Compiling lalrpop v0.18.1 [INFO] [stderr] Checking criterion v0.3.2 [INFO] [stderr] Checking cranelift-module v0.63.0 [INFO] [stderr] Checking cranelift-frontend v0.63.0 [INFO] [stderr] Checking cranelift-native v0.63.0 [INFO] [stderr] Checking cranelift-simplejit v0.63.0 [INFO] [stderr] Checking cranelift-object v0.63.0 [INFO] [stderr] Checking cranelift v0.63.0 [INFO] [stderr] Compiling rox-lang v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/roxc/compile.rs:65:39 [INFO] [stdout] | [INFO] [stdout] 62 | fn parse_source_code<'a>( [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 65 | ) -> Result, Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/roxc/compile.rs:65:39 [INFO] [stdout] | [INFO] [stdout] 62 | fn parse_source_code<'a>( [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 65 | ) -> Result, Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_triple` is never used [INFO] [stdout] --> /opt/rustwide/target/debug/build/rox-lang-858b7c46a61b9f11/out/rox_parser.rs:5950:8 [INFO] [stdout] | [INFO] [stdout] 5949 | pub trait __ToTriple<'input, 'err, > { [INFO] [stdout] | ---------- associated function in this trait [INFO] [stdout] 5950 | fn to_triple(value: Self) -> Result<(usize,Token<'input>,usize), __lalrpop_util::ParseError, &'static str>>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/roxc/semant/tagged_syntax.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | And(Box, Box), [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TaggedExpression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 15 | And((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/roxc/semant/tagged_syntax.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | Assignment(String, Box), [INFO] [stdout] | ---------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TaggedExpression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 | Assignment((), Box), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/roxc/semant/tagged_syntax.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | Or(Box, Box), [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TaggedExpression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 23 | Or((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/roxc/semant/tagged_syntax.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | String(String), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TaggedExpression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 24 | String(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/roxc/semant/tagged_syntax.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | Unary(Unary, Box), [INFO] [stdout] | ----- ^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TaggedExpression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 25 | Unary((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/roxc/syntax.rs:84:11 [INFO] [stdout] | [INFO] [stdout] 84 | Block(Block), [INFO] [stdout] | ----- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 84 | Block(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/roxc/compile.rs:94:39 [INFO] [stdout] | [INFO] [stdout] 94 | match func_declaration.borrow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TaggedStatement` does not implement `Borrow`, so calling `borrow` on `&TaggedStatement` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 94 - match func_declaration.borrow() { [INFO] [stdout] 94 + match func_declaration { [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TaggedStatement`, implement `Clone` for it [INFO] [stdout] --> src/roxc/semant/tagged_syntax.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 + #[derive(Clone)] [INFO] [stdout] 49 | pub(crate) enum TaggedStatement { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/roxc/function_translator.rs:49:24 [INFO] [stdout] | [INFO] [stdout] 49 | match statement.borrow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TaggedStatement` does not implement `Borrow`, so calling `borrow` on `&TaggedStatement` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 49 - match statement.borrow() { [INFO] [stdout] 49 + match statement { [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TaggedStatement`, implement `Clone` for it [INFO] [stdout] --> src/roxc/semant/tagged_syntax.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 + #[derive(Clone)] [INFO] [stdout] 49 | pub(crate) enum TaggedStatement { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/roxc/semant/mod.rs:374:24 [INFO] [stdout] | [INFO] [stdout] 374 | panic!(format!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 375 | | "Type mismatch: {:?} != {:?}", [INFO] [stdout] 376 | | a_types, b_types [INFO] [stdout] 377 | | )); // TODO: improve error reporting [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 374 ~ panic!( [INFO] [stdout] 375 | "Type mismatch: {:?} != {:?}", [INFO] [stdout] 376 | a_types, b_types [INFO] [stdout] 377 ~ ); // TODO: improve error reporting [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `to_triple` is never used [INFO] [stdout] --> /opt/rustwide/target/debug/build/rox-lang-858b7c46a61b9f11/out/rox_parser.rs:5950:8 [INFO] [stdout] | [INFO] [stdout] 5949 | pub trait __ToTriple<'input, 'err, > { [INFO] [stdout] | ---------- associated function in this trait [INFO] [stdout] 5950 | fn to_triple(value: Self) -> Result<(usize,Token<'input>,usize), __lalrpop_util::ParseError, &'static str>>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/roxc/semant/tagged_syntax.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | And(Box, Box), [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TaggedExpression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 15 | And((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/roxc/semant/tagged_syntax.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | Assignment(String, Box), [INFO] [stdout] | ---------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TaggedExpression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 | Assignment((), Box), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/roxc/semant/tagged_syntax.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | Or(Box, Box), [INFO] [stdout] | -- ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TaggedExpression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 23 | Or((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/roxc/semant/tagged_syntax.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | String(String), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TaggedExpression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 24 | String(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/roxc/semant/tagged_syntax.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | Unary(Unary, Box), [INFO] [stdout] | ----- ^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `TaggedExpression` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 25 | Unary((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/roxc/syntax.rs:84:11 [INFO] [stdout] | [INFO] [stdout] 84 | Block(Block), [INFO] [stdout] | ----- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 84 | Block(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/roxc/compile.rs:94:39 [INFO] [stdout] | [INFO] [stdout] 94 | match func_declaration.borrow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TaggedStatement` does not implement `Borrow`, so calling `borrow` on `&TaggedStatement` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 94 - match func_declaration.borrow() { [INFO] [stdout] 94 + match func_declaration { [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TaggedStatement`, implement `Clone` for it [INFO] [stdout] --> src/roxc/semant/tagged_syntax.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 + #[derive(Clone)] [INFO] [stdout] 49 | pub(crate) enum TaggedStatement { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/roxc/function_translator.rs:49:24 [INFO] [stdout] | [INFO] [stdout] 49 | match statement.borrow() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `TaggedStatement` does not implement `Borrow`, so calling `borrow` on `&TaggedStatement` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 49 - match statement.borrow() { [INFO] [stdout] 49 + match statement { [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `TaggedStatement`, implement `Clone` for it [INFO] [stdout] --> src/roxc/semant/tagged_syntax.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 + #[derive(Clone)] [INFO] [stdout] 49 | pub(crate) enum TaggedStatement { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/roxc/semant/mod.rs:374:24 [INFO] [stdout] | [INFO] [stdout] 374 | panic!(format!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 375 | | "Type mismatch: {:?} != {:?}", [INFO] [stdout] 376 | | a_types, b_types [INFO] [stdout] 377 | | )); // TODO: improve error reporting [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 374 ~ panic!( [INFO] [stdout] 375 | "Type mismatch: {:?} != {:?}", [INFO] [stdout] 376 | a_types, b_types [INFO] [stdout] 377 ~ ); // TODO: improve error reporting [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rox::Value` [INFO] [stdout] --> benches/benchmark.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rox::Value; [INFO] [stdout] | ^^^^^^^^^^ no `Value` in the root [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items instead [INFO] [stdout] | [INFO] [stdout] 4 | use cranelift::prelude::Value; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] 4 | use cranelift_codegen::ir::Value; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] 4 | use cranelift_codegen::ir::entities::AnyEntity::Value; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `rox` in this scope [INFO] [stdout] --> benches/benchmark.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | let result = rox! { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] note: `rox` is imported here, but it is a crate, not a macro [INFO] [stdout] --> benches/benchmark.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate rox; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> benches/benchmark.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rox-lang` (bench "benchmark") due to 3 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "5b103f627e86d434904b1e699077fcb24919c6b5324f15dcbc558e79d800ec84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b103f627e86d434904b1e699077fcb24919c6b5324f15dcbc558e79d800ec84", kill_on_drop: false }` [INFO] [stdout] 5b103f627e86d434904b1e699077fcb24919c6b5324f15dcbc558e79d800ec84