[INFO] fetching crate ra_ap_syntax 0.0.305... [INFO] testing ra_ap_syntax-0.0.305 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-8 [INFO] extracting crate ra_ap_syntax 0.0.305 into /workspace/builds/worker-5-tc2/source [INFO] started tweaking crates.io crate ra_ap_syntax 0.0.305 [INFO] finished tweaking crates.io crate ra_ap_syntax 0.0.305 [INFO] tweaked toml for crates.io crate ra_ap_syntax 0.0.305 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate ra_ap_syntax 0.0.305 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate ra_ap_syntax 0.0.305 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a6e03d17b9f52fe60c2e14b874f0b1c163eb555ef326a974a31a41b3749b0b71 [INFO] running `Command { std: "docker" "start" "-a" "a6e03d17b9f52fe60c2e14b874f0b1c163eb555ef326a974a31a41b3749b0b71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a6e03d17b9f52fe60c2e14b874f0b1c163eb555ef326a974a31a41b3749b0b71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a6e03d17b9f52fe60c2e14b874f0b1c163eb555ef326a974a31a41b3749b0b71", kill_on_drop: false }` [INFO] [stdout] a6e03d17b9f52fe60c2e14b874f0b1c163eb555ef326a974a31a41b3749b0b71 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 92ed207e2fdb15b24edbbc43faff9a15c23fa628cdadd36b5a44d9fc01a33219 [INFO] running `Command { std: "docker" "start" "-a" "92ed207e2fdb15b24edbbc43faff9a15c23fa628cdadd36b5a44d9fc01a33219", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling rustc-literal-escaper v0.0.4 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling drop_bomb v0.1.5 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling countme v3.0.1 [INFO] [stderr] Compiling ra_ap_edition v0.0.305 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling jod-thread v1.0.0 [INFO] [stderr] Compiling text-size v1.1.1 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling triomphe v0.1.15 [INFO] [stderr] Compiling smol_str v0.3.4 [INFO] [stderr] Compiling ra-ap-rustc_lexer v0.137.0 [INFO] [stderr] Compiling rowan v0.15.15 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling ra_ap_parser v0.0.305 [INFO] [stderr] Compiling ra_ap_stdx v0.0.305 [INFO] [stderr] Compiling ra_ap_syntax v0.0.305 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.79s [INFO] running `Command { std: "docker" "inspect" "92ed207e2fdb15b24edbbc43faff9a15c23fa628cdadd36b5a44d9fc01a33219", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92ed207e2fdb15b24edbbc43faff9a15c23fa628cdadd36b5a44d9fc01a33219", kill_on_drop: false }` [INFO] [stdout] 92ed207e2fdb15b24edbbc43faff9a15c23fa628cdadd36b5a44d9fc01a33219 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 14044c45ba0ab53109d474bc4e3f76c1caab63602375861cdaa4554e1eee84ac [INFO] running `Command { std: "docker" "start" "-a" "14044c45ba0ab53109d474bc4e3f76c1caab63602375861cdaa4554e1eee84ac", kill_on_drop: false }` [INFO] [stderr] Compiling ra_ap_syntax v0.0.305 (/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:548:9 [INFO] [stdout] | [INFO] [stdout] 548 | 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:260:9 [INFO] [stdout] | [INFO] [stdout] 260 | 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:398:9 [INFO] [stdout] | [INFO] [stdout] 398 | 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:259:9 [INFO] [stdout] | [INFO] [stdout] 259 | use stdx::trim_indent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/parsing/reparsing.rs:204:29 [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 [INFO] [stdout] --> src/tests.rs:84:22 [INFO] [stdout] | [INFO] [stdout] 84 | for entry in dir.read_dir().unwrap() { [INFO] [stdout] | ^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/tests.rs:85:25 [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/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/path.rs:2303:11 [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/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/path.rs:2303:11 [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/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/path.rs:2303:11 [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/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/path.rs:2303:11 [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 18 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "14044c45ba0ab53109d474bc4e3f76c1caab63602375861cdaa4554e1eee84ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14044c45ba0ab53109d474bc4e3f76c1caab63602375861cdaa4554e1eee84ac", kill_on_drop: false }` [INFO] [stdout] 14044c45ba0ab53109d474bc4e3f76c1caab63602375861cdaa4554e1eee84ac