[INFO] fetching crate ra_ap_syntax 0.0.276... [INFO] checking ra_ap_syntax-0.0.276 against try#1d0e7c032bf9b905a3165592072b5cc63c491d50 for pr-133502-5 [INFO] extracting crate ra_ap_syntax 0.0.276 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate ra_ap_syntax 0.0.276 on toolchain 1d0e7c032bf9b905a3165592072b5cc63c491d50 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1d0e7c032bf9b905a3165592072b5cc63c491d50" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate ra_ap_syntax 0.0.276 [INFO] finished tweaking crates.io crate ra_ap_syntax 0.0.276 [INFO] tweaked toml for crates.io crate ra_ap_syntax 0.0.276 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate ra_ap_syntax 0.0.276 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" "+1d0e7c032bf9b905a3165592072b5cc63c491d50" "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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1d0e7c032bf9b905a3165592072b5cc63c491d50" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f819e692d1a48c8ae5beab9e1a45cfda1f11f94f9b907b964679b10bc1d4d526 [INFO] running `Command { std: "docker" "start" "-a" "f819e692d1a48c8ae5beab9e1a45cfda1f11f94f9b907b964679b10bc1d4d526", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f819e692d1a48c8ae5beab9e1a45cfda1f11f94f9b907b964679b10bc1d4d526", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f819e692d1a48c8ae5beab9e1a45cfda1f11f94f9b907b964679b10bc1d4d526", kill_on_drop: false }` [INFO] [stdout] f819e692d1a48c8ae5beab9e1a45cfda1f11f94f9b907b964679b10bc1d4d526 [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1d0e7c032bf9b905a3165592072b5cc63c491d50" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac49b752e04f547ae1621f725d5598944565b5bb79400e9d759be97474ef0ca6 [INFO] running `Command { std: "docker" "start" "-a" "ac49b752e04f547ae1621f725d5598944565b5bb79400e9d759be97474ef0ca6", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking unicode-xid v0.2.6 [INFO] [stderr] Checking unicode-properties v0.1.3 [INFO] [stderr] Checking jod-thread v1.0.0 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking ra_ap_edition v0.0.276 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking drop_bomb v0.1.5 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Checking countme v3.0.1 [INFO] [stderr] Checking text-size v1.1.1 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Checking triomphe v0.1.14 [INFO] [stderr] Checking smol_str v0.3.2 [INFO] [stderr] Checking rustc-hash v2.1.1 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking itertools v0.14.0 [INFO] [stderr] Checking ra-ap-rustc_lexer v0.100.0 [INFO] [stderr] Checking rowan v0.15.15 [INFO] [stderr] Checking crossbeam-channel v0.5.15 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking ra_ap_parser v0.0.276 [INFO] [stderr] Checking ra_ap_stdx v0.0.276 [INFO] [stderr] Checking ra_ap_syntax v0.0.276 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rayon` [INFO] [stdout] --> src/tests.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `rayon` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rayon`, use `cargo add rayon` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rustc_apfloat` [INFO] [stdout] --> src/ast/token_ext.rs:484:9 [INFO] [stdout] | [INFO] [stdout] 484 | use rustc_apfloat::ieee::Quad as f128; [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `rustc_apfloat` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rustc_apfloat`, use `cargo add rustc_apfloat` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `test_utils` [INFO] [stdout] --> src/parsing/reparsing.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | use test_utils::{assert_eq_text, extract_range}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `test_utils` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `test_utils`, use `cargo add test_utils` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `test_utils` [INFO] [stdout] --> src/syntax_editor/edits.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | use test_utils::assert_eq_text; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `test_utils` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `test_utils`, use `cargo add test_utils` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `expect_test` [INFO] [stdout] --> src/syntax_editor.rs:378:9 [INFO] [stdout] | [INFO] [stdout] 378 | use expect_test::expect; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `expect_test` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `expect_test`, use `cargo add expect_test` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `expect_test` [INFO] [stdout] --> src/tests.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use expect_test::expect_file; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `expect_test` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `expect_test`, use `cargo add expect_test` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `test_utils` [INFO] [stdout] --> src/tests.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use test_utils::{bench, bench_fixture, project_root}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `test_utils` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `test_utils`, use `cargo add test_utils` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stdx::trim_indent` [INFO] [stdout] --> src/syntax_editor/edits.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 149 | use stdx::trim_indent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/parsing/reparsing.rs:204:36 [INFO] [stdout] | [INFO] [stdout] 204 | let mut after = before.clone(); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `Vec<_, _>` [INFO] [stdout] --> src/tests.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let mut work = vec![crates_dir.into_std_path_buf()]; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 83 | while let Some(dir) = work.pop() { [INFO] [stdout] 84 | for entry in dir.read_dir().unwrap() { [INFO] [stdout] | -------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `work` an explicit type, where the type for type parameter `T` is specified [INFO] [stdout] | [INFO] [stdout] 82 | let mut work: Vec<_, _> = vec![crates_dir.into_std_path_buf()]; [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:85:31 [INFO] [stdout] | [INFO] [stdout] 85 | let entry = entry.unwrap(); [INFO] [stdout] | ^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:100:19 [INFO] [stdout] | [INFO] [stdout] 100 | files.retain(|path| { [INFO] [stdout] | ^^^^ [INFO] [stdout] 101 | // Get all files which are not in the crates/syntax/test_data folder [INFO] [stdout] 102 | !path.components().any(|component| component.as_os_str() == "test_data") [INFO] [stdout] | ---------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 100 | files.retain(|path: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:102:33 [INFO] [stdout] | [INFO] [stdout] 102 | !path.components().any(|component| component.as_os_str() == "test_data") [INFO] [stdout] | ^^^^^^^^^ --------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 102 | !path.components().any(|component: /* Type */| component.as_os_str() == "test_data") [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/tests.rs:112:22 [INFO] [stdout] | [INFO] [stdout] 112 | .filter_map(|file| { [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `std::path::Path`, the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] note: required because it appears within the type `std::path::Path` [INFO] [stdout] --> /rustc/1d0e7c032bf9b905a3165592072b5cc63c491d50/library/std/src/path.rs:2139:12 [INFO] [stdout] = note: all function arguments must have a statically known size [INFO] [stdout] = help: unsized fn params are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/tests.rs:116:29 [INFO] [stdout] | [INFO] [stdout] 116 | Err(err) => Some((file, err)), [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `std::path::Path`, the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] note: required because it appears within the type `std::path::Path` [INFO] [stdout] --> /rustc/1d0e7c032bf9b905a3165592072b5cc63c491d50/library/std/src/path.rs:2139:12 [INFO] [stdout] = note: only the last element of a tuple may have a dynamically sized type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/tests.rs:116:34 [INFO] [stdout] | [INFO] [stdout] 116 | Err(err) => Some((file, err)), [INFO] [stdout] | ^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `std::path::Path`, the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] note: required because it appears within the type `std::path::Path` [INFO] [stdout] --> /rustc/1d0e7c032bf9b905a3165592072b5cc63c491d50/library/std/src/path.rs:2139:12 [INFO] [stdout] = note: only the last element of a tuple may have a dynamically sized type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/tests.rs:116:29 [INFO] [stdout] | [INFO] [stdout] 116 | Err(err) => Some((file, err)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `std::path::Path`, the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] note: required because it appears within the type `std::path::Path` [INFO] [stdout] --> /rustc/1d0e7c032bf9b905a3165592072b5cc63c491d50/library/std/src/path.rs:2139:12 [INFO] [stdout] = note: only the last element of a tuple may have a dynamically sized type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> src/tests.rs:115:26 [INFO] [stdout] | [INFO] [stdout] 115 | Ok(_) => None, [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `std::path::Path`, the trait `Sized` is not implemented for `[u8]` [INFO] [stdout] note: required because it appears within the type `std::path::Path` [INFO] [stdout] --> /rustc/1d0e7c032bf9b905a3165592072b5cc63c491d50/library/std/src/path.rs:2139:12 [INFO] [stdout] = note: only the last element of a tuple may have a dynamically sized type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:122:62 [INFO] [stdout] | [INFO] [stdout] 122 | let errors = errors.into_iter().fold(String::new(), |mut acc, (path, err)| { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 123 | format_to_acc!(acc, "{}: {:?}\n", path.display(), err[0]) [INFO] [stdout] | --------------------------------------------------------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 122 | let errors = errors.into_iter().fold(String::new(), |mut acc: /* Type */, (path, err)| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `(_, _)` [INFO] [stdout] --> src/tests.rs:122:71 [INFO] [stdout] | [INFO] [stdout] 122 | let errors = errors.into_iter().fold(String::new(), |mut acc, (path, err)| { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 123 | format_to_acc!(acc, "{}: {:?}\n", path.display(), err[0]) [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 122 | let errors = errors.into_iter().fold(String::new(), |mut acc, (path, err): (_, _)| { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0282, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ra_ap_syntax` (lib test) due to 19 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "ac49b752e04f547ae1621f725d5598944565b5bb79400e9d759be97474ef0ca6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac49b752e04f547ae1621f725d5598944565b5bb79400e9d759be97474ef0ca6", kill_on_drop: false }` [INFO] [stdout] ac49b752e04f547ae1621f725d5598944565b5bb79400e9d759be97474ef0ca6