[INFO] cloning repository https://github.com/sirgl/analysis [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sirgl/analysis" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsirgl%2Fanalysis", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsirgl%2Fanalysis'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 70243aa006948902507eba649188e803cd46aac1 [INFO] testing sirgl/analysis against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsirgl%2Fanalysis" "/workspace/builds/worker-95/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-95/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sirgl/analysis on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sirgl/analysis [INFO] finished tweaking git repo https://github.com/sirgl/analysis [INFO] tweaked toml for git repo https://github.com/sirgl/analysis written to /workspace/builds/worker-95/source/Cargo.toml [INFO] crate git repo https://github.com/sirgl/analysis already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-95/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-95/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fb279a6f12b7f735004ca71f93f9c54d3a57a60de014c6c4ebe6fe4420203668 [INFO] running `Command { std: "docker" "start" "-a" "fb279a6f12b7f735004ca71f93f9c54d3a57a60de014c6c4ebe6fe4420203668", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fb279a6f12b7f735004ca71f93f9c54d3a57a60de014c6c4ebe6fe4420203668", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb279a6f12b7f735004ca71f93f9c54d3a57a60de014c6c4ebe6fe4420203668", kill_on_drop: false }` [INFO] [stdout] fb279a6f12b7f735004ca71f93f9c54d3a57a60de014c6c4ebe6fe4420203668 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-95/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-95/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6928287f4e741b685faed232b57ccd035c18e0c76c547bec639520fbdfa2c9ac [INFO] running `Command { std: "docker" "start" "-a" "6928287f4e741b685faed232b57ccd035c18e0c76c547bec639520fbdfa2c9ac", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.44 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling rand_core v0.3.0 [INFO] [stderr] Compiling proc-macro2 v0.4.24 [INFO] [stderr] Compiling text_unit v0.1.5 [INFO] [stderr] Compiling smol_str v0.1.8 [INFO] [stderr] Compiling either v1.5.0 [INFO] [stderr] Compiling superslice v0.1.0 [INFO] [stderr] Compiling drop_bomb v0.1.4 [INFO] [stderr] Compiling regex-syntax v0.6.4 [INFO] [stderr] Compiling parking_lot_core v0.3.1 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling rand_core v0.2.2 [INFO] [stderr] Compiling errors v0.1.0 (/opt/rustwide/workdir/crates/errors) [INFO] [stderr] Compiling inspections_base v0.1.0 (/opt/rustwide/workdir/crates/inspections_base) [INFO] [stderr] Compiling itertools v0.8.0 [INFO] [stderr] Compiling highlight_reporter v0.1.0 (/opt/rustwide/workdir/crates/highlight_reporter) [INFO] [stderr] Compiling smallvec v0.6.7 [INFO] [stdout] error[E0412]: cannot find type `IntentionFamily` in this scope [INFO] [stdout] --> crates/inspections_base/src/problem.rs:28:31 [INFO] [stdout] | [INFO] [stdout] 28 | fn suggest_fixes() -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: trait `crate::fixes::IntentionFamily` exists but is inaccessible [INFO] [stdout] --> crates/inspections_base/src/fixes.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | trait IntentionFamily { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `C` in this scope [INFO] [stdout] --> crates/inspections_base/src/inspection_impl.rs:49:52 [INFO] [stdout] | [INFO] [stdout] 49 | impl SingleNodeVisitor for ContextBasedNodeVisitor { [INFO] [stdout] | - ^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0726]: implicit elided lifetime not allowed here [INFO] [stdout] --> crates/inspections_base/src/inspection_impl.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | impl InspectionEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^^^- help: indicate the anonymous lifetime: `<'_>` [INFO] [stdout] | [INFO] [stdout] = note: assuming a `'static` lifetime... [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0726]: implicit elided lifetime not allowed here [INFO] [stdout] --> crates/inspections_base/src/inspection_impl.rs:49:28 [INFO] [stdout] | [INFO] [stdout] 49 | impl SingleNodeVisitor for ContextBasedNodeVisitor { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: indicate the anonymous lifetime: `ContextBasedNodeVisitor<'_, C>` [INFO] [stdout] | [INFO] [stdout] = note: assuming a `'static` lifetime... [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> crates/inspections_base/src/inspection_impl.rs:16:24 [INFO] [stdout] | [INFO] [stdout] 16 | funcs: Vec> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 - funcs: Vec> [INFO] [stdout] 16 + funcs: Vec> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> crates/inspections_base/src/inspection_impl.rs:20:35 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(funcs: Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 - pub fn new(funcs: Vec>) -> Self { [INFO] [stdout] 20 + pub fn new(funcs: Vec>) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0392]: parameter `'a` is never used [INFO] [stdout] --> crates/inspections_base/src/inspection_impl.rs:2:29 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct InspectionEngine<'a> { [INFO] [stdout] | ^^ unused parameter [INFO] [stdout] | [INFO] [stdout] = help: consider removing `'a`, referring to it in a field, or using a marker such as `PhantomData` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0392, E0412, E0726. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0392`. [INFO] [stdout] [INFO] [stderr] error: could not compile `inspections_base` due to 6 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> crates/highlight_reporter/src/per_line.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_count` [INFO] [stdout] --> crates/highlight_reporter/src/highlight.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let line_count = self.text.lines().count(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_to_highlights` [INFO] [stdout] --> crates/highlight_reporter/src/highlight.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let line_to_highlights = group_by_line(highlights, &line_index); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_to_highlights` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `options` [INFO] [stdout] --> crates/highlight_reporter/src/highlight.rs:54:65 [INFO] [stdout] | [INFO] [stdout] 54 | fn render_highlights(&self, highlights: Vec, options: HighlightOptions) -> String { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_options` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> crates/highlight_reporter/src/per_line.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | for i in 0..count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> crates/highlight_reporter/src/canvas.rs:34:33 [INFO] [stdout] | [INFO] [stdout] 34 | fn put_underline(&mut self, start: CanvasPoint, length: usize) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> crates/highlight_reporter/src/canvas.rs:34:53 [INFO] [stdout] | [INFO] [stdout] 34 | fn put_underline(&mut self, start: CanvasPoint, length: usize) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> crates/highlight_reporter/src/canvas.rs:38:28 [INFO] [stdout] | [INFO] [stdout] 38 | fn put_text(&mut self, start: CanvasPoint, text: String) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> crates/highlight_reporter/src/canvas.rs:38:48 [INFO] [stdout] | [INFO] [stdout] 38 | fn put_text(&mut self, start: CanvasPoint, text: String) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/highlight_reporter/src/highlight.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let mut text = String::new(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/highlight_reporter/src/canvas.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | fn text(mut self) -> String { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> crates/highlight_reporter/src/line_index.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(text: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `line_offsets` [INFO] [stdout] --> crates/highlight_reporter/src/line_index.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn line_offsets(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calculate_offsets` [INFO] [stdout] --> crates/highlight_reporter/src/line_index.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn calculate_offsets(text: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `HighlightRange` [INFO] [stdout] --> crates/highlight_reporter/src/highlight.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct HighlightRange { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> crates/highlight_reporter/src/highlight.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(start: usize, end: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TextHighlight` [INFO] [stdout] --> crates/highlight_reporter/src/highlight.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | struct TextHighlight { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> crates/highlight_reporter/src/highlight.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn new(range: HighlightRange, text: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TextHighlighter` [INFO] [stdout] --> crates/highlight_reporter/src/highlight.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | struct TextHighlighter<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> crates/highlight_reporter/src/highlight.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn new(text: &'a str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `HighlightOptions` [INFO] [stdout] --> crates/highlight_reporter/src/highlight.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | struct HighlightOptions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `render_highlights` [INFO] [stdout] --> crates/highlight_reporter/src/highlight.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | fn render_highlights(&self, highlights: Vec, options: HighlightOptions) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `group_by_line` [INFO] [stdout] --> crates/highlight_reporter/src/highlight.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn group_by_line(highlights: Vec, line_index: &LinearLineIndex) -> HashMap> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_per_line` [INFO] [stdout] --> crates/highlight_reporter/src/per_line.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn print_per_line Option>( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `push_indent` [INFO] [stdout] --> crates/highlight_reporter/src/per_line.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn push_indent(str: &mut String, count: u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Line` [INFO] [stdout] --> crates/highlight_reporter/src/canvas.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct Line { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Canvas` [INFO] [stdout] --> crates/highlight_reporter/src/canvas.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | struct Canvas { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `put_underline` [INFO] [stdout] --> crates/highlight_reporter/src/canvas.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | fn put_underline(&mut self, start: CanvasPoint, length: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `put_text` [INFO] [stdout] --> crates/highlight_reporter/src/canvas.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | fn put_text(&mut self, start: CanvasPoint, text: String) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `text` [INFO] [stdout] --> crates/highlight_reporter/src/canvas.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | fn text(mut self) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6928287f4e741b685faed232b57ccd035c18e0c76c547bec639520fbdfa2c9ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6928287f4e741b685faed232b57ccd035c18e0c76c547bec639520fbdfa2c9ac", kill_on_drop: false }` [INFO] [stdout] 6928287f4e741b685faed232b57ccd035c18e0c76c547bec639520fbdfa2c9ac