[INFO] cloning repository https://github.com/grihabor/jq-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/grihabor/jq-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgrihabor%2Fjq-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgrihabor%2Fjq-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9a2475ee86d7737814b546ba474ea4d78b03d967 [INFO] checking grihabor/jq-rs against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgrihabor%2Fjq-rs" "/workspace/builds/worker-114/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-114/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/grihabor/jq-rs on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/grihabor/jq-rs [INFO] finished tweaking git repo https://github.com/grihabor/jq-rs [INFO] tweaked toml for git repo https://github.com/grihabor/jq-rs written to /workspace/builds/worker-114/source/Cargo.toml [INFO] crate git repo https://github.com/grihabor/jq-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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-114/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-114/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f834ee506cb188b53c551e468daf3a5bd010ead25388017f77ab365052421fed [INFO] running `Command { std: "docker" "start" "-a" "f834ee506cb188b53c551e468daf3a5bd010ead25388017f77ab365052421fed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f834ee506cb188b53c551e468daf3a5bd010ead25388017f77ab365052421fed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f834ee506cb188b53c551e468daf3a5bd010ead25388017f77ab365052421fed", kill_on_drop: false }` [INFO] [stdout] f834ee506cb188b53c551e468daf3a5bd010ead25388017f77ab365052421fed [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-114/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-114/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6756f9957631a3ef05a82bbce1669c1cbde0ae92a54ca2ace688a4e5f735afd1 [INFO] running `Command { std: "docker" "start" "-a" "6756f9957631a3ef05a82bbce1669c1cbde0ae92a54ca2ace688a4e5f735afd1", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling radium v0.5.3 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling lexical-core v0.7.5 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking wyz v0.2.0 [INFO] [stderr] Checking funty v1.1.0 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Compiling nom v6.1.2 [INFO] [stderr] Checking bitvec v0.19.5 [INFO] [stderr] Checking jq-rs v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Query` [INFO] [stdout] --> src/main.rs:13:40 [INFO] [stdout] | [INFO] [stdout] 13 | assert_eq!(query("."), Ok(("", Query::Identity))) [INFO] [stdout] | ^^^^^ use of undeclared type `Query` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/main.rs (2 fixes) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Query` [INFO] [stdout] --> src/main.rs:19:29 [INFO] [stdout] | [INFO] [stdout] 19 | query: Box::new(Query::Identity), [INFO] [stdout] | ^^^^^ use of undeclared type `Query` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/parser.rs (6 fixes) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Query` [INFO] [stdout] --> src/main.rs:27:29 [INFO] [stdout] | [INFO] [stdout] 27 | query: Box::new(Query::Identity), [INFO] [stdout] | ^^^^^ use of undeclared type `Query` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Query` [INFO] [stdout] --> src/main.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | seq: vec![Query::Identity, Query::Identity], [INFO] [stdout] | ^^^^^ use of undeclared type `Query` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Query` [INFO] [stdout] --> src/main.rs:35:40 [INFO] [stdout] | [INFO] [stdout] 35 | seq: vec![Query::Identity, Query::Identity], [INFO] [stdout] | ^^^^^ use of undeclared type `Query` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `query` in this scope [INFO] [stdout] --> src/main.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | assert_eq!(query("."), Ok(("", Query::Identity))) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Query` [INFO] [stdout] --> src/main.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 18 | let expected = Query::Array(QueryArray { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::Query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `QueryArray` in this scope [INFO] [stdout] --> src/main.rs:18:37 [INFO] [stdout] | [INFO] [stdout] 18 | let expected = Query::Array(QueryArray { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::QueryArray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `query` in this scope [INFO] [stdout] --> src/main.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(query("[.]"), Ok(("", expected))) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Query` [INFO] [stdout] --> src/main.rs:26:24 [INFO] [stdout] | [INFO] [stdout] 26 | let expected = Query::Braces(QueryBraces { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::Query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `QueryBraces` in this scope [INFO] [stdout] --> src/main.rs:26:38 [INFO] [stdout] | [INFO] [stdout] 26 | let expected = Query::Braces(QueryBraces { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::QueryBraces; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `query` in this scope [INFO] [stdout] --> src/main.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | assert_eq!(query("(.)"), Ok(("", expected))) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Query` [INFO] [stdout] --> src/main.rs:34:24 [INFO] [stdout] | [INFO] [stdout] 34 | let expected = Query::Pipe(QueryPipe { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::Query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `QueryPipe` in this scope [INFO] [stdout] --> src/main.rs:34:36 [INFO] [stdout] | [INFO] [stdout] 34 | let expected = Query::Pipe(QueryPipe { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::QueryPipe; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `query` in this scope [INFO] [stdout] --> src/main.rs:37:20 [INFO] [stdout] | [INFO] [stdout] 37 | assert_eq!(query(".|."), Ok(("", expected))) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Query` [INFO] [stdout] --> src/main.rs:42:24 [INFO] [stdout] | [INFO] [stdout] 42 | let expected = Query::ObjectIndex(QueryObjectIndex { index: "key" }); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::Query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `QueryObjectIndex` in this scope [INFO] [stdout] --> src/main.rs:42:43 [INFO] [stdout] | [INFO] [stdout] 42 | let expected = Query::ObjectIndex(QueryObjectIndex { index: "key" }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::QueryObjectIndex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `query` in this scope [INFO] [stdout] --> src/main.rs:43:20 [INFO] [stdout] | [INFO] [stdout] 43 | assert_eq!(query(".key"), Ok(("", expected))) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Query` [INFO] [stdout] --> src/main.rs:48:24 [INFO] [stdout] | [INFO] [stdout] 48 | let expected = Query::ObjectIndex(QueryObjectIndex { index: "key" }); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::Query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `QueryObjectIndex` in this scope [INFO] [stdout] --> src/main.rs:48:43 [INFO] [stdout] | [INFO] [stdout] 48 | let expected = Query::ObjectIndex(QueryObjectIndex { index: "key" }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::QueryObjectIndex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `query` in this scope [INFO] [stdout] --> src/main.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | assert_eq!(query(".[\"key\"]"), Ok(("", expected))) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Query` [INFO] [stdout] --> src/main.rs:54:24 [INFO] [stdout] | [INFO] [stdout] 54 | let expected = Query::ArrayIndex(QueryArrayIndex { index: 0 }); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::Query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `QueryArrayIndex` in this scope [INFO] [stdout] --> src/main.rs:54:42 [INFO] [stdout] | [INFO] [stdout] 54 | let expected = Query::ArrayIndex(QueryArrayIndex { index: 0 }); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::QueryArrayIndex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `query` in this scope [INFO] [stdout] --> src/main.rs:55:20 [INFO] [stdout] | [INFO] [stdout] 55 | assert_eq!(query(".[0]"), Ok(("", expected))) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Query` [INFO] [stdout] --> src/main.rs:60:24 [INFO] [stdout] | [INFO] [stdout] 60 | let expected = Query::Slice(QuerySlice { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::Query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `QuerySlice` in this scope [INFO] [stdout] --> src/main.rs:60:37 [INFO] [stdout] | [INFO] [stdout] 60 | let expected = Query::Slice(QuerySlice { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::QuerySlice; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `query` in this scope [INFO] [stdout] --> src/main.rs:64:20 [INFO] [stdout] | [INFO] [stdout] 64 | assert_eq!(query(".[0:2]"), Ok(("", expected))); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Query` [INFO] [stdout] --> src/main.rs:65:24 [INFO] [stdout] | [INFO] [stdout] 65 | let expected = Query::Slice(QuerySlice { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::Query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `QuerySlice` in this scope [INFO] [stdout] --> src/main.rs:65:37 [INFO] [stdout] | [INFO] [stdout] 65 | let expected = Query::Slice(QuerySlice { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::QuerySlice; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `query` in this scope [INFO] [stdout] --> src/main.rs:69:20 [INFO] [stdout] | [INFO] [stdout] 69 | assert_eq!(query(".[:2]"), Ok(("", expected))); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Query` [INFO] [stdout] --> src/main.rs:70:24 [INFO] [stdout] | [INFO] [stdout] 70 | let expected = Query::Slice(QuerySlice { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::Query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `QuerySlice` in this scope [INFO] [stdout] --> src/main.rs:70:37 [INFO] [stdout] | [INFO] [stdout] 70 | let expected = Query::Slice(QuerySlice { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::QuerySlice; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `query` in this scope [INFO] [stdout] --> src/main.rs:74:20 [INFO] [stdout] | [INFO] [stdout] 74 | assert_eq!(query(".[0:]"), Ok(("", expected))); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Query` [INFO] [stdout] --> src/main.rs:79:24 [INFO] [stdout] | [INFO] [stdout] 79 | let expected = Query::Pipe(QueryPipe { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::Query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `QueryPipe` in this scope [INFO] [stdout] --> src/main.rs:79:36 [INFO] [stdout] | [INFO] [stdout] 79 | let expected = Query::Pipe(QueryPipe { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::QueryPipe; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Query` [INFO] [stdout] --> src/main.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | Query::ArrayIndex(QueryArrayIndex { index: 1 }), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::Query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `QueryArrayIndex` in this scope [INFO] [stdout] --> src/main.rs:81:35 [INFO] [stdout] | [INFO] [stdout] 81 | Query::ArrayIndex(QueryArrayIndex { index: 1 }), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::QueryArrayIndex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Query` [INFO] [stdout] --> src/main.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | Query::ObjectIndex(QueryObjectIndex { index: "key" }), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::Query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `QueryObjectIndex` in this scope [INFO] [stdout] --> src/main.rs:82:36 [INFO] [stdout] | [INFO] [stdout] 82 | Query::ObjectIndex(QueryObjectIndex { index: "key" }), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::QueryObjectIndex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `query` in this scope [INFO] [stdout] --> src/main.rs:85:20 [INFO] [stdout] | [INFO] [stdout] 85 | assert_eq!(query(".[1]|.key"), Ok(("", expected.clone()))); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `query` in this scope [INFO] [stdout] --> src/main.rs:86:20 [INFO] [stdout] | [INFO] [stdout] 86 | assert_eq!(query(".[1].key"), Ok(("", expected))) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Query` [INFO] [stdout] --> src/main.rs:91:24 [INFO] [stdout] | [INFO] [stdout] 91 | let expected = Query::Pipe(QueryPipe { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::Query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `QueryPipe` in this scope [INFO] [stdout] --> src/main.rs:91:36 [INFO] [stdout] | [INFO] [stdout] 91 | let expected = Query::Pipe(QueryPipe { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::QueryPipe; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Query` [INFO] [stdout] --> src/main.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | Query::ObjectIndex(QueryObjectIndex { index: "key" }), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::Query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `QueryObjectIndex` in this scope [INFO] [stdout] --> src/main.rs:93:36 [INFO] [stdout] | [INFO] [stdout] 93 | Query::ObjectIndex(QueryObjectIndex { index: "key" }), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::QueryObjectIndex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Query` [INFO] [stdout] --> src/main.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | Query::ArrayIndex(QueryArrayIndex { index: 1 }), [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::Query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `QueryArrayIndex` in this scope [INFO] [stdout] --> src/main.rs:94:35 [INFO] [stdout] | [INFO] [stdout] 94 | Query::ArrayIndex(QueryArrayIndex { index: 1 }), [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::QueryArrayIndex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `query` in this scope [INFO] [stdout] --> src/main.rs:97:20 [INFO] [stdout] | [INFO] [stdout] 97 | assert_eq!(query(".key|.[1]"), Ok(("", expected.clone()))); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `query` in this scope [INFO] [stdout] --> src/main.rs:98:20 [INFO] [stdout] | [INFO] [stdout] 98 | assert_eq!(query(".key[1]"), Ok(("", expected))) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 12 | use crate::parser::query; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 49 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `jq-rs` due to 50 previous errors [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stdout] warning: private type `QueryExpr` in public interface (error E0446) [INFO] [stdout] --> src/parser.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | Expr(QueryExpr), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(private_in_public)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `QueryFilter` in public interface (error E0446) [INFO] [stdout] --> src/parser.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | Filter(QueryFilter), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Identity` [INFO] [stdout] --> src/parser.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | Identity, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ObjectIndex` [INFO] [stdout] --> src/parser.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | ObjectIndex(QueryObjectIndex<'q>), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ArrayIndex` [INFO] [stdout] --> src/parser.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | ArrayIndex(QueryArrayIndex), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Slice` [INFO] [stdout] --> src/parser.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | Slice(QuerySlice), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Expr` [INFO] [stdout] --> src/parser.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | Expr(QueryExpr), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Filter` [INFO] [stdout] --> src/parser.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | Filter(QueryFilter), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Pipe` [INFO] [stdout] --> src/parser.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | Pipe(QueryPipe<'q>), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Braces` [INFO] [stdout] --> src/parser.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | Braces(QueryBraces<'q>), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Array` [INFO] [stdout] --> src/parser.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | Array(QueryArray<'q>), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `query_identity` [INFO] [stdout] --> src/parser.rs:78:4 [INFO] [stdout] | [INFO] [stdout] 78 | fn query_identity(input: &str) -> IResult<&str, Query> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `query` [INFO] [stdout] --> src/parser.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn query(input: &str) -> IResult<&str, Query> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `to_pipe` [INFO] [stdout] --> src/parser.rs:140:4 [INFO] [stdout] | [INFO] [stdout] 140 | fn to_pipe(arr: Vec) -> Query { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `triple` [INFO] [stdout] --> src/parser.rs:148:4 [INFO] [stdout] | [INFO] [stdout] 148 | fn triple( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "6756f9957631a3ef05a82bbce1669c1cbde0ae92a54ca2ace688a4e5f735afd1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6756f9957631a3ef05a82bbce1669c1cbde0ae92a54ca2ace688a4e5f735afd1", kill_on_drop: false }` [INFO] [stdout] 6756f9957631a3ef05a82bbce1669c1cbde0ae92a54ca2ace688a4e5f735afd1