[INFO] cloning repository https://github.com/XieJiongyan/sentence-analysis [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/XieJiongyan/sentence-analysis" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXieJiongyan%2Fsentence-analysis", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXieJiongyan%2Fsentence-analysis'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 48b3438f945f88abcfd3f21d6608838036f9cdac [INFO] checking XieJiongyan/sentence-analysis/48b3438f945f88abcfd3f21d6608838036f9cdac against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXieJiongyan%2Fsentence-analysis" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/XieJiongyan/sentence-analysis on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/XieJiongyan/sentence-analysis [INFO] finished tweaking git repo https://github.com/XieJiongyan/sentence-analysis [INFO] tweaked toml for git repo https://github.com/XieJiongyan/sentence-analysis written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/XieJiongyan/sentence-analysis 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2e40bb925889e151f79a2caf556c4f379297867663bb96083094c950e30dcf12 [INFO] running `Command { std: "docker" "start" "-a" "2e40bb925889e151f79a2caf556c4f379297867663bb96083094c950e30dcf12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2e40bb925889e151f79a2caf556c4f379297867663bb96083094c950e30dcf12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e40bb925889e151f79a2caf556c4f379297867663bb96083094c950e30dcf12", kill_on_drop: false }` [INFO] [stdout] 2e40bb925889e151f79a2caf556c4f379297867663bb96083094c950e30dcf12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 792289129c1e5ca97f96895665063e7a626496714ccd2ed8f44d990716051aca [INFO] running `Command { std: "docker" "start" "-a" "792289129c1e5ca97f96895665063e7a626496714ccd2ed8f44d990716051aca", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling serde v1.0.171 [INFO] [stderr] Checking itoa v1.0.8 [INFO] [stderr] Checking ryu v1.0.14 [INFO] [stderr] Checking nom v7.1.2 [INFO] [stderr] Checking csv v1.2.2 [INFO] [stderr] Checking sentence_analysis v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/tree/noun.rs (1 fix) [INFO] [stderr] Fixed src/class.rs (4 fixes) [INFO] [stderr] Fixed src/tree/adj.rs (3 fixes) [INFO] [stderr] Fixed src/parser.rs (1 fix) [INFO] [stdout] warning: unused variable: `cls_ids` [INFO] [stdout] --> src/parser.rs:38:43 [INFO] [stdout] | [INFO] [stdout] 38 | let (remaining_input, (class, cls_ids)) = result.unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cls_ids` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parameters` [INFO] [stdout] --> src/cls.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let parameters = ""; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parameters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/tree/mod.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let w = tagged.get_start(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sentence_with_tag` [INFO] [stdout] --> src/tree_level.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let sentence_with_tag = pylib::get_tag(&contents); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sentence_with_tag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Memory` is never constructed [INFO] [stdout] --> src/parser.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Memory { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `get_class` and `new` are never used [INFO] [stdout] --> src/parser.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Memory { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 21 | pub fn get_class(&self, class_id: &ClassId) -> Result<&Class, String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn new() -> Memory { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NotLeaf` is never constructed [INFO] [stdout] --> src/tree/mod.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 62 | enum TreeNode { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 63 | NotLeaf(Tree), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TreeNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `adj` is never used [INFO] [stdout] --> src/tree/adj.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn adj(i: Tagged) -> IResult { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `noun` is never used [INFO] [stdout] --> src/tree/noun.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn noun(i: Tagged) -> IResult { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `noun_not_single` is never used [INFO] [stdout] --> src/tree/noun.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn noun_not_single(i: Tagged) -> IResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dt` is never used [INFO] [stdout] --> src/tree/noun.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn dt(i: Tagged) -> IResult { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `noun_single` is never used [INFO] [stdout] --> src/tree/noun.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn noun_single(i: Tagged) -> IResult { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vi` is never used [INFO] [stdout] --> src/tree/verb.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn vi(i: Tagged) -> IResult { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vt` is never used [INFO] [stdout] --> src/tree/verb.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn vt(i: Tagged) -> IResult { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vj` is never used [INFO] [stdout] --> src/tree/verb.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn vj(i: Tagged) -> IResult { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vi_ps` is never used [INFO] [stdout] --> src/tree/verb.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn vi_ps(i: Tagged) -> IResult { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vt_ps` is never used [INFO] [stdout] --> src/tree/verb.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn vt_ps(i: Tagged) -> IResult { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vj_ps` is never used [INFO] [stdout] --> src/tree/verb.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn vj_ps(i: Tagged) -> IResult { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_do` is never used [INFO] [stdout] --> src/tree/sub_sentence.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn to_do(i: Tagged) -> IResult { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `in_noun` is never used [INFO] [stdout] --> src/tree/sub_sentence.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn in_noun(i: Tagged) -> IResult { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_tree_from_file` is never used [INFO] [stdout] --> src/tree_level.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn get_tree_from_file(file_name: String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cls.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | write!(f, "cls {}(", self.name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cls.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | write!(f, "{}{}", self.parameter_ciz[i].get_name(), comma); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cls.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | write!(f, ")"); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/cls.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | write!(f, ": {}", self.inherit_ciz[i].get_name()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsLeaf` in this scope [INFO] [stdout] --> src/tree/adj.rs:31:30 [INFO] [stdout] | [INFO] [stdout] 31 | tree_nodes: vec![IsLeaf(Leaf::from(("better", "JJ")))], [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 16 + use crate::tree::TreeNode::IsLeaf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Leaf` [INFO] [stdout] --> src/tree/adj.rs:31:37 [INFO] [stdout] | [INFO] [stdout] 31 | tree_nodes: vec![IsLeaf(Leaf::from(("better", "JJ")))], [INFO] [stdout] | ^^^^ use of undeclared type `Leaf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::tree::Leaf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `IsLeaf` in this scope [INFO] [stdout] --> src/tree/adj.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | tree_nodes: vec![IsLeaf(Leaf::from(("better", "JJ")))], [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this tuple variant [INFO] [stdout] | [INFO] [stdout] 16 + use crate::tree::TreeNode::IsLeaf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Leaf` [INFO] [stdout] --> src/tree/adj.rs:47:37 [INFO] [stdout] | [INFO] [stdout] 47 | tree_nodes: vec![IsLeaf(Leaf::from(("better", "JJ")))], [INFO] [stdout] | ^^^^ use of undeclared type `Leaf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 16 + use crate::tree::Leaf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::tree::tagged` [INFO] [stdout] --> src/tree/adj.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::tree::tagged; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::error::Error` [INFO] [stdout] --> src/tree/noun.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | use nom::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cls_ids` [INFO] [stdout] --> src/parser.rs:38:43 [INFO] [stdout] | [INFO] [stdout] 38 | let (remaining_input, (class, cls_ids)) = result.unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cls_ids` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parameters` [INFO] [stdout] --> src/cls.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | let parameters = ""; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parameters` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/tree/mod.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let w = tagged.get_start(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sentence_with_tag` [INFO] [stdout] --> src/tree_level.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let sentence_with_tag = pylib::get_tag(&contents); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sentence_with_tag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stderr] error: could not compile `sentence_analysis` (lib test) due to 5 previous errors; 6 warnings emitted [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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" "792289129c1e5ca97f96895665063e7a626496714ccd2ed8f44d990716051aca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "792289129c1e5ca97f96895665063e7a626496714ccd2ed8f44d990716051aca", kill_on_drop: false }` [INFO] [stdout] 792289129c1e5ca97f96895665063e7a626496714ccd2ed8f44d990716051aca