[INFO] fetching crate seahorse-lang 0.2.7... [INFO] testing seahorse-lang-0.2.7 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate seahorse-lang 0.2.7 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate seahorse-lang 0.2.7 [INFO] finished tweaking crates.io crate seahorse-lang 0.2.7 [INFO] tweaked toml for crates.io crate seahorse-lang 0.2.7 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate seahorse-lang 0.2.7 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate seahorse-lang 0.2.7 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rustpython-parser v0.1.2 [INFO] [stderr] Downloaded lalrpop-util v0.17.2 [INFO] [stderr] Downloaded rustfmt-wrapper v0.2.0 [INFO] [stderr] Downloaded lalrpop v0.17.2 [INFO] [stderr] Downloaded unicode_names2 v0.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5e3ec645527b34dfd4bcd37ddc87b05c6ae2debae0f5382cabb8ef5ad63cc8d0 [INFO] running `Command { std: "docker" "start" "-a" "5e3ec645527b34dfd4bcd37ddc87b05c6ae2debae0f5382cabb8ef5ad63cc8d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5e3ec645527b34dfd4bcd37ddc87b05c6ae2debae0f5382cabb8ef5ad63cc8d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e3ec645527b34dfd4bcd37ddc87b05c6ae2debae0f5382cabb8ef5ad63cc8d0", kill_on_drop: false }` [INFO] [stdout] 5e3ec645527b34dfd4bcd37ddc87b05c6ae2debae0f5382cabb8ef5ad63cc8d0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7a016ee8cdabc90fa6b3a82dbf8720a2b845a0034ce1a21a192848514b9245eb [INFO] running `Command { std: "docker" "start" "-a" "7a016ee8cdabc90fa6b3a82dbf8720a2b845a0034ce1a21a192848514b9245eb", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling unicode-ident v1.0.1 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling regex-syntax v0.6.26 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling string_cache_shared v0.3.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling phf_shared v0.7.24 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling rustversion v1.0.7 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling ordermap v0.3.5 [INFO] [stderr] Compiling fixedbitset v0.1.9 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling ucd-trie v0.1.4 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling ena v0.13.1 [INFO] [stderr] Compiling petgraph v0.4.13 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling bit-set v0.5.2 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling dirs v1.0.5 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling unic-char-range v0.9.0 [INFO] [stderr] Compiling lalrpop-util v0.17.2 [INFO] [stderr] Compiling unic-common v0.9.0 [INFO] [stderr] Compiling diff v0.1.12 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling unic-ucd-version v0.9.0 [INFO] [stderr] Compiling term v0.5.2 [INFO] [stderr] Compiling unic-char-property v0.9.0 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling hashbrown v0.12.1 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling generic-array v0.12.4 [INFO] [stderr] Compiling ascii-canvas v2.0.0 [INFO] [stderr] Compiling fastrand v1.8.0 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling os_str_bytes v6.1.0 [INFO] [stderr] Compiling home v0.5.3 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling seahorse-lang v0.2.7 (/opt/rustwide/workdir) [INFO] [stderr] Compiling unic-emoji-char v0.9.0 [INFO] [stderr] Compiling unic-ucd-ident v0.9.0 [INFO] [stderr] Compiling combine v4.6.4 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling clap_lex v0.2.4 [INFO] [stderr] Compiling unicode_names2 v0.4.0 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling textwrap v0.15.0 [INFO] [stderr] Compiling once_cell v1.12.0 [INFO] [stderr] Compiling owo-colors v3.4.0 [INFO] [stderr] Compiling base58 v0.2.0 [INFO] [stderr] Compiling regex v1.5.6 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Compiling string_cache_codegen v0.4.4 [INFO] [stderr] Compiling string_cache v0.7.5 [INFO] [stderr] Compiling thiserror-impl v1.0.32 [INFO] [stderr] Compiling strum_macros v0.24.2 [INFO] [stderr] Compiling clap_derive v3.2.7 [INFO] [stderr] Compiling thiserror v1.0.32 [INFO] [stderr] Compiling pest v2.2.1 [INFO] [stderr] Compiling clap v3.2.8 [INFO] [stderr] Compiling strum v0.24.1 [INFO] [stderr] Compiling spinners v4.1.0 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling toolchain_find v0.2.0 [INFO] [stderr] Compiling toml_edit v0.14.4 [INFO] [stderr] Compiling docopt v1.1.1 [INFO] [stderr] Compiling toml v0.5.9 [INFO] [stderr] Compiling lalrpop v0.17.2 [INFO] [stderr] Compiling rustfmt-wrapper v0.2.0 [INFO] [stderr] Compiling rustpython-parser v0.1.2 [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/core/clean/mod.rs:374:51 [INFO] [stdout] | [INFO] [stdout] 374 | py::ExpressionType::Subscript { a, b } => ( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 375 | | validate_constant(&*a) && validate_constant(&*b) [INFO] [stdout] | | ____________^________________________________________________^ [INFO] [stdout] | ||____________| [INFO] [stdout] | | [INFO] [stdout] 376 | | ), [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 374 - py::ExpressionType::Subscript { a, b } => ( [INFO] [stdout] 375 - validate_constant(&*a) && validate_constant(&*b) [INFO] [stdout] 374 + py::ExpressionType::Subscript { a, b } => validate_constant(&*a) && validate_constant(&*b), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/core/clean/mod.rs:377:51 [INFO] [stdout] | [INFO] [stdout] 377 | py::ExpressionType::Binop { a, b, .. } => ( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 378 | | validate_constant(&*a) && validate_constant(&*b) [INFO] [stdout] | | ____________^________________________________________________^ [INFO] [stdout] | ||____________| [INFO] [stdout] | | [INFO] [stdout] 379 | | ), [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 377 - py::ExpressionType::Binop { a, b, .. } => ( [INFO] [stdout] 378 - validate_constant(&*a) && validate_constant(&*b) [INFO] [stdout] 377 + py::ExpressionType::Binop { a, b, .. } => validate_constant(&*a) && validate_constant(&*b), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Python` and `pyth::ExprContext` [INFO] [stdout] --> src/core/compile/sign/mod.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | builtin::{pyth::ExprContext, Builtin, BuiltinSource, Python}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/core/compile/build/mod.rs:1248:25 [INFO] [stdout] | [INFO] [stdout] 1248 | _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/core/compile/build/mod.rs:1248:25 [INFO] [stdout] | [INFO] [stdout] 1107 | NamespacedObject::Automatic(..) => {}, [INFO] [stdout] | ------------------------------- matches some of the same values [INFO] [stdout] 1108 | NamespacedObject::Import(Located(_, ImportObj { path, is_builtin: true, .. })) => { [INFO] [stdout] | ------------------------------------------------------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1115 | NamespacedObject::Import(Located(_, ImportObj { mut path, is_builtin: false, .. })) => { [INFO] [stdout] | ----------------------------------------------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1136 | NamespacedObject::Item(item) => { [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1248 | _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `abs` [INFO] [stdout] --> src/core/compile/build/mod.rs:1095:74 [INFO] [stdout] | [INFO] [stdout] 1095 | .map_with_path(|(mut contexts, (mut signatures, namespace)), abs| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_abs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/core/compile/builtin/prelude.rs:1278:48 [INFO] [stdout] | [INFO] [stdout] 1278 | Builtin::Prelude(Self::RustInt(s2, b2)) if (!s1 && b1 < b2) => Some(( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attr` [INFO] [stdout] --> src/core/compile/builtin/python.rs:666:27 [INFO] [stdout] | [INFO] [stdout] 666 | fn static_attr(&self, attr: &String) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_attr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/core/compile/check/mod.rs:878:48 [INFO] [stdout] | [INFO] [stdout] 878 | Located(_, ImportObj { path, import_type: ImportType::Symbol, .. }) => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/core/compile/check/mod.rs:883:48 [INFO] [stdout] | [INFO] [stdout] 883 | Located(_, ImportObj { path, .. }) => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/core/compile/check/mod.rs:1153:27 [INFO] [stdout] | [INFO] [stdout] 1153 | (Some(target), None) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `returns` [INFO] [stdout] --> src/core/compile/sign/mod.rs:131:46 [INFO] [stdout] | [INFO] [stdout] 131 | |(_, FunctionSignature { params, returns })| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_returns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/core/generate/mod.rs:236:48 [INFO] [stdout] | [INFO] [stdout] 236 | let fs = fields.iter().map(|(name, ty, original_ty)| { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/core/generate/mod.rs:1176:54 [INFO] [stdout] | [INFO] [stdout] 1176 | |(name, ContextAccount { account_ty, ty, .. })| { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ReusedVarInTuple` is never constructed [INFO] [stdout] --> src/core/compile/check/mod.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 24 | enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 25 | VarNotFound(String), [INFO] [stdout] 26 | ReusedVarInTuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_undeclared` is never used [INFO] [stdout] --> src/core/compile/check/mod.rs:702:8 [INFO] [stdout] | [INFO] [stdout] 550 | impl<'a> Context<'a> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 702 | fn get_undeclared(&self, target: &Target, loc: &Location) -> CResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ContextBaseTyExpr` is never constructed [INFO] [stdout] --> src/core/generate/mod.rs:488:8 [INFO] [stdout] | [INFO] [stdout] 488 | struct ContextBaseTyExpr<'a>(&'a TyExpr); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CouldNotAddModule` is never constructed [INFO] [stdout] --> src/core/preprocess/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 20 | CouldNotAddModule, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `generate::GenerateOutput` [INFO] [stdout] --> src/bin/cli/compile.rs:3:41 [INFO] [stdout] | [INFO] [stdout] 3 | core::{compile as seahorse_compile, generate::GenerateOutput, Tree}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Table` [INFO] [stdout] --> src/bin/cli/init.rs:16:57 [INFO] [stdout] | [INFO] [stdout] 16 | use toml_edit::{Document, Formatted, InlineTable, Item, Table, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufWriter` [INFO] [stdout] --> src/bin/cli/update.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | io::{BufWriter, Write}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/bin/cli/update.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn update(args: UpdateArgs) -> Result<(), Box> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 09s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: lalrpop v0.17.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "7a016ee8cdabc90fa6b3a82dbf8720a2b845a0034ce1a21a192848514b9245eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a016ee8cdabc90fa6b3a82dbf8720a2b845a0034ce1a21a192848514b9245eb", kill_on_drop: false }` [INFO] [stdout] 7a016ee8cdabc90fa6b3a82dbf8720a2b845a0034ce1a21a192848514b9245eb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d3a406939b5e4df2e2c171809df673240910e2653cecada04fd225f34eaf74f2 [INFO] running `Command { std: "docker" "start" "-a" "d3a406939b5e4df2e2c171809df673240910e2653cecada04fd225f34eaf74f2", kill_on_drop: false }` [INFO] [stderr] Compiling seahorse-lang v0.2.7 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/core/clean/mod.rs:374:51 [INFO] [stdout] | [INFO] [stdout] 374 | py::ExpressionType::Subscript { a, b } => ( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 375 | | validate_constant(&*a) && validate_constant(&*b) [INFO] [stdout] | | ____________^________________________________________________^ [INFO] [stdout] | ||____________| [INFO] [stdout] | | [INFO] [stdout] 376 | | ), [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 374 - py::ExpressionType::Subscript { a, b } => ( [INFO] [stdout] 375 - validate_constant(&*a) && validate_constant(&*b) [INFO] [stdout] 374 + py::ExpressionType::Subscript { a, b } => validate_constant(&*a) && validate_constant(&*b), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/core/clean/mod.rs:377:51 [INFO] [stdout] | [INFO] [stdout] 377 | py::ExpressionType::Binop { a, b, .. } => ( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 378 | | validate_constant(&*a) && validate_constant(&*b) [INFO] [stdout] | | ____________^________________________________________________^ [INFO] [stdout] | ||____________| [INFO] [stdout] | | [INFO] [stdout] 379 | | ), [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 377 - py::ExpressionType::Binop { a, b, .. } => ( [INFO] [stdout] 378 - validate_constant(&*a) && validate_constant(&*b) [INFO] [stdout] 377 + py::ExpressionType::Binop { a, b, .. } => validate_constant(&*a) && validate_constant(&*b), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Python` and `pyth::ExprContext` [INFO] [stdout] --> src/core/compile/sign/mod.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | builtin::{pyth::ExprContext, Builtin, BuiltinSource, Python}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/core/clean/mod.rs:374:51 [INFO] [stdout] | [INFO] [stdout] 374 | py::ExpressionType::Subscript { a, b } => ( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 375 | | validate_constant(&*a) && validate_constant(&*b) [INFO] [stdout] | | ____________^________________________________________________^ [INFO] [stdout] | ||____________| [INFO] [stdout] | | [INFO] [stdout] 376 | | ), [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 374 - py::ExpressionType::Subscript { a, b } => ( [INFO] [stdout] 375 - validate_constant(&*a) && validate_constant(&*b) [INFO] [stdout] 374 + py::ExpressionType::Subscript { a, b } => validate_constant(&*a) && validate_constant(&*b), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/core/clean/mod.rs:377:51 [INFO] [stdout] | [INFO] [stdout] 377 | py::ExpressionType::Binop { a, b, .. } => ( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 378 | | validate_constant(&*a) && validate_constant(&*b) [INFO] [stdout] | | ____________^________________________________________________^ [INFO] [stdout] | ||____________| [INFO] [stdout] | | [INFO] [stdout] 379 | | ), [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 377 - py::ExpressionType::Binop { a, b, .. } => ( [INFO] [stdout] 378 - validate_constant(&*a) && validate_constant(&*b) [INFO] [stdout] 377 + py::ExpressionType::Binop { a, b, .. } => validate_constant(&*a) && validate_constant(&*b), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Python` and `pyth::ExprContext` [INFO] [stdout] --> src/core/compile/sign/mod.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | builtin::{pyth::ExprContext, Builtin, BuiltinSource, Python}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/core/compile/build/mod.rs:1248:25 [INFO] [stdout] | [INFO] [stdout] 1248 | _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/core/compile/build/mod.rs:1248:25 [INFO] [stdout] | [INFO] [stdout] 1107 | NamespacedObject::Automatic(..) => {}, [INFO] [stdout] | ------------------------------- matches some of the same values [INFO] [stdout] 1108 | NamespacedObject::Import(Located(_, ImportObj { path, is_builtin: true, .. })) => { [INFO] [stdout] | ------------------------------------------------------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1115 | NamespacedObject::Import(Located(_, ImportObj { mut path, is_builtin: false, .. })) => { [INFO] [stdout] | ----------------------------------------------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1136 | NamespacedObject::Item(item) => { [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1248 | _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `abs` [INFO] [stdout] --> src/core/compile/build/mod.rs:1095:74 [INFO] [stdout] | [INFO] [stdout] 1095 | .map_with_path(|(mut contexts, (mut signatures, namespace)), abs| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_abs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/core/compile/builtin/prelude.rs:1278:48 [INFO] [stdout] | [INFO] [stdout] 1278 | Builtin::Prelude(Self::RustInt(s2, b2)) if (!s1 && b1 < b2) => Some(( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attr` [INFO] [stdout] --> src/core/compile/builtin/python.rs:666:27 [INFO] [stdout] | [INFO] [stdout] 666 | fn static_attr(&self, attr: &String) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_attr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/core/compile/check/mod.rs:878:48 [INFO] [stdout] | [INFO] [stdout] 878 | Located(_, ImportObj { path, import_type: ImportType::Symbol, .. }) => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/core/compile/check/mod.rs:883:48 [INFO] [stdout] | [INFO] [stdout] 883 | Located(_, ImportObj { path, .. }) => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/core/compile/build/mod.rs:1248:25 [INFO] [stdout] | [INFO] [stdout] 1248 | _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/core/compile/build/mod.rs:1248:25 [INFO] [stdout] | [INFO] [stdout] 1107 | NamespacedObject::Automatic(..) => {}, [INFO] [stdout] | ------------------------------- matches some of the same values [INFO] [stdout] 1108 | NamespacedObject::Import(Located(_, ImportObj { path, is_builtin: true, .. })) => { [INFO] [stdout] | ------------------------------------------------------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1115 | NamespacedObject::Import(Located(_, ImportObj { mut path, is_builtin: false, .. })) => { [INFO] [stdout] | ----------------------------------------------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1136 | NamespacedObject::Item(item) => { [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1248 | _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `abs` [INFO] [stdout] --> src/core/compile/build/mod.rs:1095:74 [INFO] [stdout] | [INFO] [stdout] 1095 | .map_with_path(|(mut contexts, (mut signatures, namespace)), abs| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_abs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/core/compile/check/mod.rs:1153:27 [INFO] [stdout] | [INFO] [stdout] 1153 | (Some(target), None) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> src/core/compile/builtin/prelude.rs:1278:48 [INFO] [stdout] | [INFO] [stdout] 1278 | Builtin::Prelude(Self::RustInt(s2, b2)) if (!s1 && b1 < b2) => Some(( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `returns` [INFO] [stdout] --> src/core/compile/sign/mod.rs:131:46 [INFO] [stdout] | [INFO] [stdout] 131 | |(_, FunctionSignature { params, returns })| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_returns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `attr` [INFO] [stdout] --> src/core/compile/builtin/python.rs:666:27 [INFO] [stdout] | [INFO] [stdout] 666 | fn static_attr(&self, attr: &String) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_attr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/core/generate/mod.rs:236:48 [INFO] [stdout] | [INFO] [stdout] 236 | let fs = fields.iter().map(|(name, ty, original_ty)| { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/core/compile/check/mod.rs:878:48 [INFO] [stdout] | [INFO] [stdout] 878 | Located(_, ImportObj { path, import_type: ImportType::Symbol, .. }) => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/core/compile/check/mod.rs:883:48 [INFO] [stdout] | [INFO] [stdout] 883 | Located(_, ImportObj { path, .. }) => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/core/compile/check/mod.rs:1153:27 [INFO] [stdout] | [INFO] [stdout] 1153 | (Some(target), None) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/core/generate/mod.rs:1176:54 [INFO] [stdout] | [INFO] [stdout] 1176 | |(name, ContextAccount { account_ty, ty, .. })| { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `returns` [INFO] [stdout] --> src/core/compile/sign/mod.rs:131:46 [INFO] [stdout] | [INFO] [stdout] 131 | |(_, FunctionSignature { params, returns })| { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_returns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/core/generate/mod.rs:236:48 [INFO] [stdout] | [INFO] [stdout] 236 | let fs = fields.iter().map(|(name, ty, original_ty)| { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ReusedVarInTuple` is never constructed [INFO] [stdout] --> src/core/compile/check/mod.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 24 | enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 25 | VarNotFound(String), [INFO] [stdout] 26 | ReusedVarInTuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_undeclared` is never used [INFO] [stdout] --> src/core/compile/check/mod.rs:702:8 [INFO] [stdout] | [INFO] [stdout] 550 | impl<'a> Context<'a> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 702 | fn get_undeclared(&self, target: &Target, loc: &Location) -> CResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ContextBaseTyExpr` is never constructed [INFO] [stdout] --> src/core/generate/mod.rs:488:8 [INFO] [stdout] | [INFO] [stdout] 488 | struct ContextBaseTyExpr<'a>(&'a TyExpr); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CouldNotAddModule` is never constructed [INFO] [stdout] --> src/core/preprocess/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 20 | CouldNotAddModule, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> src/core/generate/mod.rs:1176:54 [INFO] [stdout] | [INFO] [stdout] 1176 | |(name, ContextAccount { account_ty, ty, .. })| { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ReusedVarInTuple` is never constructed [INFO] [stdout] --> src/core/compile/check/mod.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 24 | enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 25 | VarNotFound(String), [INFO] [stdout] 26 | ReusedVarInTuple, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_undeclared` is never used [INFO] [stdout] --> src/core/compile/check/mod.rs:702:8 [INFO] [stdout] | [INFO] [stdout] 550 | impl<'a> Context<'a> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 702 | fn get_undeclared(&self, target: &Target, loc: &Location) -> CResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ContextBaseTyExpr` is never constructed [INFO] [stdout] --> src/core/generate/mod.rs:488:8 [INFO] [stdout] | [INFO] [stdout] 488 | struct ContextBaseTyExpr<'a>(&'a TyExpr); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CouldNotAddModule` is never constructed [INFO] [stdout] --> src/core/preprocess/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 20 | CouldNotAddModule, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `generate::GenerateOutput` [INFO] [stdout] --> src/bin/cli/compile.rs:3:41 [INFO] [stdout] | [INFO] [stdout] 3 | core::{compile as seahorse_compile, generate::GenerateOutput, Tree}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Table` [INFO] [stdout] --> src/bin/cli/init.rs:16:57 [INFO] [stdout] | [INFO] [stdout] 16 | use toml_edit::{Document, Formatted, InlineTable, Item, Table, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufWriter` [INFO] [stdout] --> src/bin/cli/update.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | io::{BufWriter, Write}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/bin/cli/update.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn update(args: UpdateArgs) -> Result<(), Box> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.15s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: lalrpop v0.17.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "d3a406939b5e4df2e2c171809df673240910e2653cecada04fd225f34eaf74f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3a406939b5e4df2e2c171809df673240910e2653cecada04fd225f34eaf74f2", kill_on_drop: false }` [INFO] [stdout] d3a406939b5e4df2e2c171809df673240910e2653cecada04fd225f34eaf74f2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 8bd82c88bbf3ebc1df62ce9f8a63337108e1e3e8f7e69b748457cbef023db51b [INFO] running `Command { std: "docker" "start" "-a" "8bd82c88bbf3ebc1df62ce9f8a63337108e1e3e8f7e69b748457cbef023db51b", kill_on_drop: false }` [INFO] [stderr] Compiling seahorse-lang v0.2.7 (/opt/rustwide/workdir) [INFO] [stderr] warning: unnecessary parentheses around match arm expression [INFO] [stderr] --> src/core/clean/mod.rs:374:51 [INFO] [stderr] | [INFO] [stderr] 374 | py::ExpressionType::Subscript { a, b } => ( [INFO] [stderr] | ____________________________________________________^ [INFO] [stderr] 375 | | validate_constant(&*a) && validate_constant(&*b) [INFO] [stderr] | | ____________^________________________________________________^ [INFO] [stderr] | ||____________| [INFO] [stderr] | | [INFO] [stderr] 376 | | ), [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 374 - py::ExpressionType::Subscript { a, b } => ( [INFO] [stderr] 375 - validate_constant(&*a) && validate_constant(&*b) [INFO] [stderr] 374 + py::ExpressionType::Subscript { a, b } => validate_constant(&*a) && validate_constant(&*b), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around match arm expression [INFO] [stderr] --> src/core/clean/mod.rs:377:51 [INFO] [stderr] | [INFO] [stderr] 377 | py::ExpressionType::Binop { a, b, .. } => ( [INFO] [stderr] | ____________________________________________________^ [INFO] [stderr] 378 | | validate_constant(&*a) && validate_constant(&*b) [INFO] [stderr] | | ____________^________________________________________________^ [INFO] [stderr] | ||____________| [INFO] [stderr] | | [INFO] [stderr] 379 | | ), [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 377 - py::ExpressionType::Binop { a, b, .. } => ( [INFO] [stderr] 378 - validate_constant(&*a) && validate_constant(&*b) [INFO] [stderr] 377 + py::ExpressionType::Binop { a, b, .. } => validate_constant(&*a) && validate_constant(&*b), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Python` and `pyth::ExprContext` [INFO] [stderr] --> src/core/compile/sign/mod.rs:16:15 [INFO] [stderr] | [INFO] [stderr] 16 | builtin::{pyth::ExprContext, Builtin, BuiltinSource, Python}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/core/compile/build/mod.rs:1248:25 [INFO] [stderr] | [INFO] [stderr] 1248 | _ => {} [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] | [INFO] [stderr] note: multiple earlier patterns match some of the same values [INFO] [stderr] --> src/core/compile/build/mod.rs:1248:25 [INFO] [stderr] | [INFO] [stderr] 1107 | NamespacedObject::Automatic(..) => {}, [INFO] [stderr] | ------------------------------- matches some of the same values [INFO] [stderr] 1108 | NamespacedObject::Import(Located(_, ImportObj { path, is_builtin: true, .. })) => { [INFO] [stderr] | ------------------------------------------------------------------------------ matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 1115 | NamespacedObject::Import(Located(_, ImportObj { mut path, is_builtin: false, .. })) => { [INFO] [stderr] | ----------------------------------------------------------------------------------- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 1136 | NamespacedObject::Item(item) => { [INFO] [stderr] | ---------------------------- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 1248 | _ => {} [INFO] [stderr] | ^ collectively making this unreachable [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `abs` [INFO] [stderr] --> src/core/compile/build/mod.rs:1095:74 [INFO] [stderr] | [INFO] [stderr] 1095 | .map_with_path(|(mut contexts, (mut signatures, namespace)), abs| { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_abs` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s2` [INFO] [stderr] --> src/core/compile/builtin/prelude.rs:1278:48 [INFO] [stderr] | [INFO] [stderr] 1278 | Builtin::Prelude(Self::RustInt(s2, b2)) if (!s1 && b1 < b2) => Some(( [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `attr` [INFO] [stderr] --> src/core/compile/builtin/python.rs:666:27 [INFO] [stderr] | [INFO] [stderr] 666 | fn static_attr(&self, attr: &String) -> Option { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_attr` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/core/compile/check/mod.rs:878:48 [INFO] [stderr] | [INFO] [stderr] 878 | Located(_, ImportObj { path, import_type: ImportType::Symbol, .. }) => { [INFO] [stderr] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `path` [INFO] [stderr] --> src/core/compile/check/mod.rs:883:48 [INFO] [stderr] | [INFO] [stderr] 883 | Located(_, ImportObj { path, .. }) => { [INFO] [stderr] | ^^^^ help: try ignoring the field: `path: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `target` [INFO] [stderr] --> src/core/compile/check/mod.rs:1153:27 [INFO] [stderr] | [INFO] [stderr] 1153 | (Some(target), None) => { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `returns` [INFO] [stderr] --> src/core/compile/sign/mod.rs:131:46 [INFO] [stderr] | [INFO] [stderr] 131 | |(_, FunctionSignature { params, returns })| { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_returns` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ty` [INFO] [stderr] --> src/core/generate/mod.rs:236:48 [INFO] [stderr] | [INFO] [stderr] 236 | let fs = fields.iter().map(|(name, ty, original_ty)| { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ty` [INFO] [stderr] --> src/core/generate/mod.rs:1176:54 [INFO] [stderr] | [INFO] [stderr] 1176 | |(name, ContextAccount { account_ty, ty, .. })| { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stderr] [INFO] [stderr] warning: variant `ReusedVarInTuple` is never constructed [INFO] [stderr] --> src/core/compile/check/mod.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 24 | enum Error { [INFO] [stderr] | ----- variant in this enum [INFO] [stderr] 25 | VarNotFound(String), [INFO] [stderr] 26 | ReusedVarInTuple, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `get_undeclared` is never used [INFO] [stderr] --> src/core/compile/check/mod.rs:702:8 [INFO] [stderr] | [INFO] [stderr] 550 | impl<'a> Context<'a> { [INFO] [stderr] | -------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 702 | fn get_undeclared(&self, target: &Target, loc: &Location) -> CResult> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ContextBaseTyExpr` is never constructed [INFO] [stderr] --> src/core/generate/mod.rs:488:8 [INFO] [stderr] | [INFO] [stderr] 488 | struct ContextBaseTyExpr<'a>(&'a TyExpr); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `CouldNotAddModule` is never constructed [INFO] [stderr] --> src/core/preprocess/mod.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 19 | enum Error { [INFO] [stderr] | ----- variant in this enum [INFO] [stderr] 20 | CouldNotAddModule, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `seahorse-lang` (lib test) generated 17 warnings (run `cargo fix --lib -p seahorse-lang --tests` to apply 3 suggestions) [INFO] [stderr] warning: `seahorse-lang` (lib) generated 17 warnings (17 duplicates) [INFO] [stderr] warning: unused import: `generate::GenerateOutput` [INFO] [stderr] --> src/bin/cli/compile.rs:3:41 [INFO] [stderr] | [INFO] [stderr] 3 | core::{compile as seahorse_compile, generate::GenerateOutput, Tree}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Table` [INFO] [stderr] --> src/bin/cli/init.rs:16:57 [INFO] [stderr] | [INFO] [stderr] 16 | use toml_edit::{Document, Formatted, InlineTable, Item, Table, Value}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `BufWriter` [INFO] [stderr] --> src/bin/cli/update.rs:9:10 [INFO] [stderr] | [INFO] [stderr] 9 | io::{BufWriter, Write}, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `args` [INFO] [stderr] --> src/bin/cli/update.rs:28:15 [INFO] [stderr] | [INFO] [stderr] 28 | pub fn update(args: UpdateArgs) -> Result<(), Box> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `seahorse-lang` (bin "seahorse" test) generated 4 warnings (run `cargo fix --bin "seahorse" --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.76s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: lalrpop v0.17.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/seahorse_lang-74c247317cec7d6c) [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] Running unittests src/bin/seahorse.rs (/opt/rustwide/target/debug/deps/seahorse-1f67bd7e5676e220) [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 seahorse_lang [INFO] [stderr] warning: unnecessary parentheses around match arm expression [INFO] [stderr] --> src/core/clean/mod.rs:374:51 [INFO] [stderr] | [INFO] [stderr] 374 | py::ExpressionType::Subscript { a, b } => ( [INFO] [stderr] | ____________________________________________________^ [INFO] [stderr] 375 | | validate_constant(&*a) && validate_constant(&*b) [INFO] [stderr] | | ____________^________________________________________________^ [INFO] [stderr] | ||____________| [INFO] [stderr] | | [INFO] [stderr] 376 | | ), [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 374 - py::ExpressionType::Subscript { a, b } => ( [INFO] [stderr] 375 - validate_constant(&*a) && validate_constant(&*b) [INFO] [stderr] 374 + py::ExpressionType::Subscript { a, b } => validate_constant(&*a) && validate_constant(&*b), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around match arm expression [INFO] [stderr] --> src/core/clean/mod.rs:377:51 [INFO] [stderr] | [INFO] [stderr] 377 | py::ExpressionType::Binop { a, b, .. } => ( [INFO] [stderr] | ____________________________________________________^ [INFO] [stderr] 378 | | validate_constant(&*a) && validate_constant(&*b) [INFO] [stderr] | | ____________^________________________________________________^ [INFO] [stderr] | ||____________| [INFO] [stderr] | | [INFO] [stderr] 379 | | ), [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 377 - py::ExpressionType::Binop { a, b, .. } => ( [INFO] [stderr] 378 - validate_constant(&*a) && validate_constant(&*b) [INFO] [stderr] 377 + py::ExpressionType::Binop { a, b, .. } => validate_constant(&*a) && validate_constant(&*b), [INFO] [stderr] | [INFO] [stderr] [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] warning: 2 warnings emitted [INFO] [stderr] [INFO] running `Command { std: "docker" "inspect" "8bd82c88bbf3ebc1df62ce9f8a63337108e1e3e8f7e69b748457cbef023db51b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8bd82c88bbf3ebc1df62ce9f8a63337108e1e3e8f7e69b748457cbef023db51b", kill_on_drop: false }` [INFO] [stdout] 8bd82c88bbf3ebc1df62ce9f8a63337108e1e3e8f7e69b748457cbef023db51b