[INFO] fetching crate treereduce 0.3.0... [INFO] checking treereduce-0.3.0 against master#35936c4839dd272646394779d151e060d0f6b3ac for pr-122960-1 [INFO] extracting crate treereduce 0.3.0 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate treereduce 0.3.0 on toolchain 35936c4839dd272646394779d151e060d0f6b3ac [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+35936c4839dd272646394779d151e060d0f6b3ac" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate treereduce 0.3.0 [INFO] finished tweaking crates.io crate treereduce 0.3.0 [INFO] tweaked toml for crates.io crate treereduce 0.3.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate crates.io crate treereduce 0.3.0 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" "+35936c4839dd272646394779d151e060d0f6b3ac" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tree-sitter-edit v0.3.0 [INFO] [stderr] Downloaded is-terminal v0.4.5 [INFO] [stderr] Downloaded tree-sitter-traversal v0.1.2 [INFO] [stderr] Downloaded clap_lex v0.5.0 [INFO] [stderr] Downloaded itoa v1.0.6 [INFO] [stderr] Downloaded anstyle-wincon v1.0.1 [INFO] [stderr] Downloaded anstyle v1.0.1 [INFO] [stderr] Downloaded anstyle-parse v0.2.1 [INFO] [stderr] Downloaded anyhow v1.0.71 [INFO] [stderr] Downloaded serde v1.0.171 [INFO] [stderr] Downloaded clap_builder v4.3.11 [INFO] [stderr] Downloaded rustix v0.36.11 [INFO] [stderr] Downloaded regex-automata v0.3.2 [INFO] [stderr] Downloaded libc v0.2.146 [INFO] [stderr] Downloaded rustix v0.37.20 [INFO] [stderr] Downloaded serde_json v1.0.100 [INFO] [stderr] Downloaded syn v2.0.25 [INFO] [stderr] Downloaded tracing-subscriber v0.3.17 [INFO] [stderr] Downloaded tree-sitter-c v0.20.2 [INFO] [stderr] Downloaded aho-corasick v1.0.1 [INFO] [stderr] Downloaded regex-syntax v0.7.3 [INFO] [stderr] Downloaded regex v1.9.1 [INFO] [stderr] Downloaded tree-sitter v0.20.10 [INFO] [stderr] Downloaded tree-sitter-java v0.20.0 [INFO] [stderr] Downloaded clap_derive v4.3.2 [INFO] [stderr] Downloaded clap v4.3.11 [INFO] [stderr] Downloaded nu-ansi-term v0.48.0 [INFO] [stderr] Downloaded thiserror v1.0.43 [INFO] [stderr] Downloaded ryu v1.0.13 [INFO] [stderr] Downloaded log v0.4.19 [INFO] [stderr] Downloaded serde_derive v1.0.171 [INFO] [stderr] Downloaded anstyle-query v1.0.0 [INFO] [stderr] Downloaded clap-verbosity-flag v2.0.1 [INFO] [stderr] Downloaded tempfile v3.6.0 [INFO] [stderr] Downloaded thiserror-impl v1.0.43 [INFO] [stderr] Downloaded anstream v0.3.2 [INFO] [stderr] Downloaded thread_local v1.1.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+35936c4839dd272646394779d151e060d0f6b3ac" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f244de783fbd159cf39eda3885478ceddb37cfac6051e282747d1434495c95c6 [INFO] running `Command { std: "docker" "start" "-a" "f244de783fbd159cf39eda3885478ceddb37cfac6051e282747d1434495c95c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f244de783fbd159cf39eda3885478ceddb37cfac6051e282747d1434495c95c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f244de783fbd159cf39eda3885478ceddb37cfac6051e282747d1434495c95c6", kill_on_drop: false }` [INFO] [stdout] f244de783fbd159cf39eda3885478ceddb37cfac6051e282747d1434495c95c6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+35936c4839dd272646394779d151e060d0f6b3ac" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 74377180f53b6f1069fe4924a6bccc16d148709c280537aad0bb94fc8932efc8 [INFO] running `Command { std: "docker" "start" "-a" "74377180f53b6f1069fe4924a6bccc16d148709c280537aad0bb94fc8932efc8", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Compiling unicode-ident v1.0.8 [INFO] [stderr] Compiling quote v1.0.29 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking regex-syntax v0.7.3 [INFO] [stderr] Compiling libc v0.2.146 [INFO] [stderr] Compiling io-lifetimes v1.0.10 [INFO] [stderr] Compiling tree-sitter v0.20.10 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde v1.0.171 [INFO] [stderr] Compiling rustix v0.37.20 [INFO] [stderr] Compiling tempfile v3.6.0 [INFO] [stderr] Checking linux-raw-sys v0.3.8 [INFO] [stderr] Compiling thiserror v1.0.43 [INFO] [stderr] Checking aho-corasick v1.0.1 [INFO] [stderr] Compiling serde_json v1.0.100 [INFO] [stderr] Compiling syn v2.0.25 [INFO] [stderr] Checking once_cell v1.17.1 [INFO] [stderr] Checking tracing-core v0.1.30 [INFO] [stderr] Compiling tree-sitter-c v0.20.2 [INFO] [stderr] Compiling tree-sitter-java v0.20.0 [INFO] [stderr] Checking regex-automata v0.3.2 [INFO] [stderr] Checking fastrand v1.9.0 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Checking ryu v1.0.13 [INFO] [stderr] Checking itoa v1.0.6 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking log v0.4.19 [INFO] [stderr] Checking bencher v0.1.5 [INFO] [stderr] Compiling serde_derive v1.0.171 [INFO] [stderr] Compiling thiserror-impl v1.0.43 [INFO] [stderr] Checking regex v1.9.1 [INFO] [stderr] Checking tree-sitter-traversal v0.1.2 [INFO] [stderr] Checking tree-sitter-edit v0.3.0 [INFO] [stderr] Compiling tracing-attributes v0.1.23 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking treereduce v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0061]: this function takes 3 arguments but 5 arguments were supplied [INFO] [stdout] --> benches/bench.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 75 | fn reduce( [INFO] [stdout] | - found this type parameter [INFO] [stdout] ... [INFO] [stdout] 80 | treereduce(1, node_types, orig, chk, 1).unwrap() [INFO] [stdout] | ^^^^^^^^^^ - ---------- - unexpected argument of type `{integer}` [INFO] [stdout] | | | [INFO] [stdout] | | unexpected argument of type `NodeTypes` [INFO] [stdout] | expected `&NodeTypes`, found integer [INFO] [stdout] | [INFO] [stdout] note: expected `&Config<_>`, found type parameter `T` [INFO] [stdout] --> benches/bench.rs:80:41 [INFO] [stdout] | [INFO] [stdout] 80 | treereduce(1, node_types, orig, chk, 1).unwrap() [INFO] [stdout] | ^^^ [INFO] [stdout] = note: expected reference `&Config<_>` [INFO] [stdout] found type parameter `T` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/reduce.rs:553:8 [INFO] [stdout] | [INFO] [stdout] 553 | pub fn treereduce( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 80 - treereduce(1, node_types, orig, chk, 1).unwrap() [INFO] [stdout] 80 + treereduce(/* &NodeTypes */, orig, /* conf */).unwrap() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `anyhow` [INFO] [stdout] --> examples/bench.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `clap` [INFO] [stdout] --> examples/bench.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use clap::Parser; [INFO] [stdout] | ^^^^ use of undeclared crate or module `clap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `clap` [INFO] [stdout] --> examples/bench.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(clap::ValueEnum, Debug, Clone, PartialEq, Eq)] [INFO] [stdout] | ^^^^ use of undeclared crate or module `clap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `clap` [INFO] [stdout] --> examples/bench.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(clap::ValueEnum, Debug, Clone, PartialEq, Eq)] [INFO] [stdout] | ^^^^ use of undeclared crate or module `clap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `clap` [INFO] [stdout] --> examples/bench.rs:150:10 [INFO] [stdout] | [INFO] [stdout] 150 | #[derive(clap::ValueEnum, Debug, Clone, PartialEq, Eq)] [INFO] [stdout] | ^^^^ use of undeclared crate or module `clap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> benches/bench.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 79 | ) -> Edits { [INFO] [stdout] | ----- expected `Edits` because of return type [INFO] [stdout] 80 | treereduce(1, node_types, orig, chk, 1).unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Edits`, found `(Original, Edits)` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Edits` [INFO] [stdout] found tuple `(Original, Edits)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> benches/bench.rs:27:28 [INFO] [stdout] | [INFO] [stdout] 27 | fn try_wait(&self, state: &mut Self::State) -> io::Result> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> benches/bench.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 31 | fn wait(&self, state: Self::State) -> io::Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> benches/bench.rs:50:28 [INFO] [stdout] | [INFO] [stdout] 50 | fn try_wait(&self, state: &mut Self::State) -> io::Result> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> benches/bench.rs:54:24 [INFO] [stdout] | [INFO] [stdout] 54 | fn wait(&self, state: Self::State) -> io::Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `command` in this scope [INFO] [stdout] --> examples/bench.rs:295:3 [INFO] [stdout] | [INFO] [stdout] 295 | #[command(author, version, about, long_about = None)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `treereduce` (bench "bench") due to 3 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: cannot find attribute `arg` in this scope [INFO] [stdout] --> examples/bench.rs:297:7 [INFO] [stdout] | [INFO] [stdout] 297 | #[arg(long, default_values_t = vec![Config::Default], value_name = "CONF")] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `arg` in this scope [INFO] [stdout] --> examples/bench.rs:300:7 [INFO] [stdout] | [INFO] [stdout] 300 | #[arg(long, default_value_t = Oracle::False)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `arg` in this scope [INFO] [stdout] --> examples/bench.rs:303:7 [INFO] [stdout] | [INFO] [stdout] 303 | #[arg(short, long, default_value_t = 1)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `arg` in this scope [INFO] [stdout] --> examples/bench.rs:306:7 [INFO] [stdout] | [INFO] [stdout] 306 | #[arg(long, default_values_t = vec![Tool::Treereduce], value_name = "TOOL")] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `arg` in this scope [INFO] [stdout] --> examples/bench.rs:309:7 [INFO] [stdout] | [INFO] [stdout] 309 | #[arg(long, default_value_t = String::from(""))] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `arg` in this scope [INFO] [stdout] --> examples/bench.rs:312:7 [INFO] [stdout] | [INFO] [stdout] 312 | #[arg(long, default_value_t = 1)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `arg` in this scope [INFO] [stdout] --> examples/bench.rs:315:7 [INFO] [stdout] | [INFO] [stdout] 315 | #[arg(value_name = "SRC_FILE")] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `Result` in the current scope [INFO] [stdout] --> examples/bench.rs:185:22 [INFO] [stdout] | [INFO] [stdout] 180 | / Command::new("creduce") [INFO] [stdout] 181 | | .args(args) [INFO] [stdout] 182 | | .stdout(Stdio::piped()) [INFO] [stdout] 183 | | .stderr(Stdio::piped()) [INFO] [stdout] 184 | | .spawn() [INFO] [stdout] 185 | | .context("Failed to spawn c-reduce")? [INFO] [stdout] | | -^^^^^^^ method not found in `Result` [INFO] [stdout] | |_____________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `Result` in the current scope [INFO] [stdout] --> examples/bench.rs:209:22 [INFO] [stdout] | [INFO] [stdout] 204 | / Command::new("halfempty") [INFO] [stdout] 205 | | .args(args) [INFO] [stdout] 206 | | .stdout(Stdio::piped()) [INFO] [stdout] 207 | | .stderr(Stdio::piped()) [INFO] [stdout] 208 | | .spawn() [INFO] [stdout] 209 | | .context("Failed to spawn halfempty")? [INFO] [stdout] | | -^^^^^^^ method not found in `Result` [INFO] [stdout] | |_____________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `Result` in the current scope [INFO] [stdout] --> examples/bench.rs:242:22 [INFO] [stdout] | [INFO] [stdout] 237 | let out = Command::new("picireny") [INFO] [stdout] | ___________________________- [INFO] [stdout] 238 | | .args(args) [INFO] [stdout] 239 | | .stdout(Stdio::piped()) [INFO] [stdout] 240 | | .stderr(Stdio::piped()) [INFO] [stdout] 241 | | .spawn() [INFO] [stdout] 242 | | .context("Failed to spawn picireny")? [INFO] [stdout] | | -^^^^^^^ method not found in `Result` [INFO] [stdout] | |_____________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `Result` in the current scope [INFO] [stdout] --> examples/bench.rs:275:22 [INFO] [stdout] | [INFO] [stdout] 270 | / Command::new("treereduce-c") [INFO] [stdout] 271 | | .args(args) [INFO] [stdout] 272 | | .stdout(Stdio::piped()) [INFO] [stdout] 273 | | .stderr(Stdio::piped()) [INFO] [stdout] 274 | | .spawn() [INFO] [stdout] 275 | | .context("Failed to spawn treereduce-c")? [INFO] [stdout] | | -^^^^^^^ method not found in `Result` [INFO] [stdout] | |_____________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `with_context` found for enum `Result` in the current scope [INFO] [stdout] --> examples/bench.rs:326:10 [INFO] [stdout] | [INFO] [stdout] 325 | / std::fs::copy(file, OUT_FILE) [INFO] [stdout] 326 | | .with_context(|| format!("Failed to copy input file {} to {}", path_str, OUT_FILE))?; [INFO] [stdout] | | -^^^^^^^^^^^^ method not found in `Result` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `with_context` found for enum `Result` in the current scope [INFO] [stdout] --> examples/bench.rs:328:10 [INFO] [stdout] | [INFO] [stdout] 327 | let src = std::fs::read_to_string(file) [INFO] [stdout] | _______________- [INFO] [stdout] 328 | | .with_context(|| format!("Failed to read input file {}", path_str))?; [INFO] [stdout] | | -^^^^^^^^^^^^ method not found in `Result` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `with_context` found for enum `Result` in the current scope [INFO] [stdout] --> examples/bench.rs:354:10 [INFO] [stdout] | [INFO] [stdout] 353 | let result = std::fs::read_to_string(OUT_FILE) [INFO] [stdout] | __________________- [INFO] [stdout] 354 | | .with_context(|| format!("Failed to read output file {}", "out"))?; [INFO] [stdout] | | -^^^^^^^^^^^^ method not found in `Result` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `parse` found for struct `Args` in the current scope [INFO] [stdout] --> examples/bench.rs:377:22 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct Args { [INFO] [stdout] | --------------- function or associated item `parse` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 377 | let args = Args::parse(); [INFO] [stdout] | ^^^^^ function or associated item not found in `Args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `treereduce` (example "bench") due to 22 previous errors [INFO] running `Command { std: "docker" "inspect" "74377180f53b6f1069fe4924a6bccc16d148709c280537aad0bb94fc8932efc8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74377180f53b6f1069fe4924a6bccc16d148709c280537aad0bb94fc8932efc8", kill_on_drop: false }` [INFO] [stdout] 74377180f53b6f1069fe4924a6bccc16d148709c280537aad0bb94fc8932efc8 [INFO] checking treereduce-0.3.0 against try#9ae1860851f3fbc1435a1698e572252c0076f413 for pr-122960-1 [INFO] extracting crate treereduce 0.3.0 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate treereduce 0.3.0 on toolchain 9ae1860851f3fbc1435a1698e572252c0076f413 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9ae1860851f3fbc1435a1698e572252c0076f413" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate treereduce 0.3.0 [INFO] finished tweaking crates.io crate treereduce 0.3.0 [INFO] tweaked toml for crates.io crate treereduce 0.3.0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate treereduce 0.3.0 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" "+9ae1860851f3fbc1435a1698e572252c0076f413" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+9ae1860851f3fbc1435a1698e572252c0076f413" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dbac7bcc767bbc2fa704a9d7dafc25685fd8b1f131e1f7bdbe2754b29dda51b9 [INFO] running `Command { std: "docker" "start" "-a" "dbac7bcc767bbc2fa704a9d7dafc25685fd8b1f131e1f7bdbe2754b29dda51b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dbac7bcc767bbc2fa704a9d7dafc25685fd8b1f131e1f7bdbe2754b29dda51b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbac7bcc767bbc2fa704a9d7dafc25685fd8b1f131e1f7bdbe2754b29dda51b9", kill_on_drop: false }` [INFO] [stdout] dbac7bcc767bbc2fa704a9d7dafc25685fd8b1f131e1f7bdbe2754b29dda51b9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+9ae1860851f3fbc1435a1698e572252c0076f413" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 993e65f556fd7427097f169f8c2a5ef0117ed6319f181462609e98a8c1abf792 [INFO] running `Command { std: "docker" "start" "-a" "993e65f556fd7427097f169f8c2a5ef0117ed6319f181462609e98a8c1abf792", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Compiling unicode-ident v1.0.8 [INFO] [stderr] Compiling quote v1.0.29 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking regex-syntax v0.7.3 [INFO] [stderr] Compiling libc v0.2.146 [INFO] [stderr] Compiling io-lifetimes v1.0.10 [INFO] [stderr] Compiling tree-sitter v0.20.10 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rustix v0.37.20 [INFO] [stderr] Compiling serde v1.0.171 [INFO] [stderr] Compiling tempfile v3.6.0 [INFO] [stderr] Compiling serde_json v1.0.100 [INFO] [stderr] Checking once_cell v1.17.1 [INFO] [stderr] Checking aho-corasick v1.0.1 [INFO] [stderr] Checking linux-raw-sys v0.3.8 [INFO] [stderr] Compiling thiserror v1.0.43 [INFO] [stderr] Compiling syn v2.0.25 [INFO] [stderr] Checking tracing-core v0.1.30 [INFO] [stderr] Compiling tree-sitter-java v0.20.0 [INFO] [stderr] Compiling tree-sitter-c v0.20.2 [INFO] [stderr] Checking itoa v1.0.6 [INFO] [stderr] Checking fastrand v1.9.0 [INFO] [stderr] Checking ryu v1.0.13 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking regex-automata v0.3.2 [INFO] [stderr] Checking log v0.4.19 [INFO] [stderr] Checking bencher v0.1.5 [INFO] [stderr] Compiling serde_derive v1.0.171 [INFO] [stderr] Compiling thiserror-impl v1.0.43 [INFO] [stderr] Checking regex v1.9.1 [INFO] [stderr] Checking tree-sitter-traversal v0.1.2 [INFO] [stderr] Checking tree-sitter-edit v0.3.0 [INFO] [stderr] Compiling tracing-attributes v0.1.23 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking treereduce v0.3.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Migrating benches/bench.rs from 2021 edition to 2024 [INFO] [stdout] error[E0061]: this function takes 3 arguments but 5 arguments were supplied [INFO] [stdout] --> benches/bench.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 75 | fn reduce( [INFO] [stdout] | - found this type parameter [INFO] [stdout] ... [INFO] [stdout] 80 | treereduce(1, node_types, orig, chk, 1).unwrap() [INFO] [stdout] | ^^^^^^^^^^ - ---------- - unexpected argument of type `{integer}` [INFO] [stdout] | | | [INFO] [stdout] | | unexpected argument of type `NodeTypes` [INFO] [stdout] | expected `&NodeTypes`, found integer [INFO] [stdout] | [INFO] [stdout] note: expected `&Config<_>`, found type parameter `T` [INFO] [stdout] --> benches/bench.rs:80:41 [INFO] [stdout] | [INFO] [stdout] 80 | treereduce(1, node_types, orig, chk, 1).unwrap() [INFO] [stdout] | ^^^ [INFO] [stdout] = note: expected reference `&Config<_>` [INFO] [stdout] found type parameter `T` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /tmp/fixit/src/reduce.rs:553:8 [INFO] [stdout] | [INFO] [stdout] 553 | pub fn treereduce( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 80 - treereduce(1, node_types, orig, chk, 1).unwrap() [INFO] [stdout] 80 + treereduce(/* &NodeTypes */, orig, /* conf */).unwrap() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/bench.rs from 2021 edition to 2024 [INFO] [stderr] error: could not compile `treereduce` (bench "bench") due to 3 previous errors; 4 warnings emitted [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> benches/bench.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 79 | ) -> Edits { [INFO] [stdout] | ----- expected `Edits` because of return type [INFO] [stdout] 80 | treereduce(1, node_types, orig, chk, 1).unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Edits`, found `(Original, Edits)` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Edits` [INFO] [stdout] found tuple `(Original, Edits)` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> benches/bench.rs:27:28 [INFO] [stdout] | [INFO] [stdout] 27 | fn try_wait(&self, state: &mut Self::State) -> io::Result> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> benches/bench.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 31 | fn wait(&self, state: Self::State) -> io::Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> benches/bench.rs:50:28 [INFO] [stdout] | [INFO] [stdout] 50 | fn try_wait(&self, state: &mut Self::State) -> io::Result> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> benches/bench.rs:54:24 [INFO] [stdout] | [INFO] [stdout] 54 | fn wait(&self, state: Self::State) -> io::Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `anyhow` [INFO] [stdout] --> examples/bench.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use anyhow::{Context, Result}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `anyhow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `clap` [INFO] [stdout] --> examples/bench.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use clap::Parser; [INFO] [stdout] | ^^^^ use of undeclared crate or module `clap` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `treereduce` (example "bench") due to 22 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `clap` [INFO] [stdout] --> examples/bench.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(clap::ValueEnum, Debug, Clone, PartialEq, Eq)] [INFO] [stdout] | ^^^^ use of undeclared crate or module `clap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `clap` [INFO] [stdout] --> examples/bench.rs:102:10 [INFO] [stdout] | [INFO] [stdout] 102 | #[derive(clap::ValueEnum, Debug, Clone, PartialEq, Eq)] [INFO] [stdout] | ^^^^ use of undeclared crate or module `clap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `clap` [INFO] [stdout] --> examples/bench.rs:150:10 [INFO] [stdout] | [INFO] [stdout] 150 | #[derive(clap::ValueEnum, Debug, Clone, PartialEq, Eq)] [INFO] [stdout] | ^^^^ use of undeclared crate or module `clap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `command` in this scope [INFO] [stdout] --> examples/bench.rs:295:3 [INFO] [stdout] | [INFO] [stdout] 295 | #[command(author, version, about, long_about = None)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `arg` in this scope [INFO] [stdout] --> examples/bench.rs:297:7 [INFO] [stdout] | [INFO] [stdout] 297 | #[arg(long, default_values_t = vec![Config::Default], value_name = "CONF")] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `arg` in this scope [INFO] [stdout] --> examples/bench.rs:300:7 [INFO] [stdout] | [INFO] [stdout] 300 | #[arg(long, default_value_t = Oracle::False)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `arg` in this scope [INFO] [stdout] --> examples/bench.rs:303:7 [INFO] [stdout] | [INFO] [stdout] 303 | #[arg(short, long, default_value_t = 1)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `arg` in this scope [INFO] [stdout] --> examples/bench.rs:306:7 [INFO] [stdout] | [INFO] [stdout] 306 | #[arg(long, default_values_t = vec![Tool::Treereduce], value_name = "TOOL")] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `arg` in this scope [INFO] [stdout] --> examples/bench.rs:309:7 [INFO] [stdout] | [INFO] [stdout] 309 | #[arg(long, default_value_t = String::from(""))] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `arg` in this scope [INFO] [stdout] --> examples/bench.rs:312:7 [INFO] [stdout] | [INFO] [stdout] 312 | #[arg(long, default_value_t = 1)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `arg` in this scope [INFO] [stdout] --> examples/bench.rs:315:7 [INFO] [stdout] | [INFO] [stdout] 315 | #[arg(value_name = "SRC_FILE")] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `Result` in the current scope [INFO] [stdout] --> examples/bench.rs:185:22 [INFO] [stdout] | [INFO] [stdout] 180 | / Command::new("creduce") [INFO] [stdout] 181 | | .args(args) [INFO] [stdout] 182 | | .stdout(Stdio::piped()) [INFO] [stdout] 183 | | .stderr(Stdio::piped()) [INFO] [stdout] 184 | | .spawn() [INFO] [stdout] 185 | | .context("Failed to spawn c-reduce")? [INFO] [stdout] | | -^^^^^^^ method not found in `Result` [INFO] [stdout] | |_____________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `Result` in the current scope [INFO] [stdout] --> examples/bench.rs:209:22 [INFO] [stdout] | [INFO] [stdout] 204 | / Command::new("halfempty") [INFO] [stdout] 205 | | .args(args) [INFO] [stdout] 206 | | .stdout(Stdio::piped()) [INFO] [stdout] 207 | | .stderr(Stdio::piped()) [INFO] [stdout] 208 | | .spawn() [INFO] [stdout] 209 | | .context("Failed to spawn halfempty")? [INFO] [stdout] | | -^^^^^^^ method not found in `Result` [INFO] [stdout] | |_____________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `Result` in the current scope [INFO] [stdout] --> examples/bench.rs:242:22 [INFO] [stdout] | [INFO] [stdout] 237 | let out = Command::new("picireny") [INFO] [stdout] | ___________________________- [INFO] [stdout] 238 | | .args(args) [INFO] [stdout] 239 | | .stdout(Stdio::piped()) [INFO] [stdout] 240 | | .stderr(Stdio::piped()) [INFO] [stdout] 241 | | .spawn() [INFO] [stdout] 242 | | .context("Failed to spawn picireny")? [INFO] [stdout] | | -^^^^^^^ method not found in `Result` [INFO] [stdout] | |_____________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `context` found for enum `Result` in the current scope [INFO] [stdout] --> examples/bench.rs:275:22 [INFO] [stdout] | [INFO] [stdout] 270 | / Command::new("treereduce-c") [INFO] [stdout] 271 | | .args(args) [INFO] [stdout] 272 | | .stdout(Stdio::piped()) [INFO] [stdout] 273 | | .stderr(Stdio::piped()) [INFO] [stdout] 274 | | .spawn() [INFO] [stdout] 275 | | .context("Failed to spawn treereduce-c")? [INFO] [stdout] | | -^^^^^^^ method not found in `Result` [INFO] [stdout] | |_____________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `with_context` found for enum `Result` in the current scope [INFO] [stdout] --> examples/bench.rs:326:10 [INFO] [stdout] | [INFO] [stdout] 325 | / std::fs::copy(file, OUT_FILE) [INFO] [stdout] 326 | | .with_context(|| format!("Failed to copy input file {} to {}", path_str, OUT_FILE))?; [INFO] [stdout] | | -^^^^^^^^^^^^ method not found in `Result` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `with_context` found for enum `Result` in the current scope [INFO] [stdout] --> examples/bench.rs:328:10 [INFO] [stdout] | [INFO] [stdout] 327 | let src = std::fs::read_to_string(file) [INFO] [stdout] | _______________- [INFO] [stdout] 328 | | .with_context(|| format!("Failed to read input file {}", path_str))?; [INFO] [stdout] | | -^^^^^^^^^^^^ method not found in `Result` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `with_context` found for enum `Result` in the current scope [INFO] [stdout] --> examples/bench.rs:354:10 [INFO] [stdout] | [INFO] [stdout] 353 | let result = std::fs::read_to_string(OUT_FILE) [INFO] [stdout] | __________________- [INFO] [stdout] 354 | | .with_context(|| format!("Failed to read output file {}", "out"))?; [INFO] [stdout] | | -^^^^^^^^^^^^ method not found in `Result` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `parse` found for struct `Args` in the current scope [INFO] [stdout] --> examples/bench.rs:377:22 [INFO] [stdout] | [INFO] [stdout] 296 | pub struct Args { [INFO] [stdout] | --------------- function or associated item `parse` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 377 | let args = Args::parse(); [INFO] [stdout] | ^^^^^ function or associated item not found in `Args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [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" "993e65f556fd7427097f169f8c2a5ef0117ed6319f181462609e98a8c1abf792", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "993e65f556fd7427097f169f8c2a5ef0117ed6319f181462609e98a8c1abf792", kill_on_drop: false }` [INFO] [stdout] 993e65f556fd7427097f169f8c2a5ef0117ed6319f181462609e98a8c1abf792