[INFO] cloning repository https://github.com/mookid/diffr [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mookid/diffr" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmookid%2Fdiffr", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmookid%2Fdiffr'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8ca4919e60fd2432787550d098db78d4cbc897e7 [INFO] checking mookid/diffr against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmookid%2Fdiffr" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mookid/diffr on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mookid/diffr [INFO] removed path dependency diffr-lib from git repo https://github.com/mookid/diffr [INFO] finished tweaking git repo https://github.com/mookid/diffr [INFO] tweaked toml for git repo https://github.com/mookid/diffr written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/mookid/diffr already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-6/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 084f3d1046e0b74991a014d963211495236c085e293354deb9c03a8a2d040487 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "084f3d1046e0b74991a014d963211495236c085e293354deb9c03a8a2d040487", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "084f3d1046e0b74991a014d963211495236c085e293354deb9c03a8a2d040487", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "084f3d1046e0b74991a014d963211495236c085e293354deb9c03a8a2d040487", kill_on_drop: false }` [INFO] [stdout] 084f3d1046e0b74991a014d963211495236c085e293354deb9c03a8a2d040487 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f7080eeadadce48790a6dee9f913d5a879f3fb06a97bed3befdf87147c285fc2 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "f7080eeadadce48790a6dee9f913d5a879f3fb06a97bed3befdf87147c285fc2", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking diffr-lib v0.1.3 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking diffr v0.1.4 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `diffr_lib::TokenMap` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use diffr_lib::TokenMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ no `TokenMap` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `diffr_lib::TokenMap` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use diffr_lib::TokenMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ no `TokenMap` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/test_cli.rs:91:6 [INFO] [stdout] | [INFO] [stdout] 91 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 364 | fn shared_spans(added_tokens: &Tokenization, diff_buffer: &Vec) -> Vec<(usize, usize)> { [INFO] [stdout] | ------------------- expected `Vec<(usize, usize)>` because of return type [INFO] [stdout] ... [INFO] [stdout] 371 | shared_spans [INFO] [stdout] | ^^^^^^^^^^^^ expected tuple, found struct `HashedSpan` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec<(usize, usize)>` [INFO] [stdout] found struct `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 3 arguments were supplied [INFO] [stdout] --> src/main.rs:499:23 [INFO] [stdout] | [INFO] [stdout] 499 | let removed = Tokenization::new(data, removed_tokens, &m); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ---- -------------- -- supplied 3 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 3 arguments were supplied [INFO] [stdout] --> src/main.rs:500:21 [INFO] [stdout] | [INFO] [stdout] 500 | let added = Tokenization::new(data, added_tokens, &m); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ---- ------------ -- supplied 3 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `DiffInput<'_>` in the current scope [INFO] [stdout] --> src/main.rs:501:33 [INFO] [stdout] | [INFO] [stdout] 501 | let tokens = DiffInput::new(&added, &removed); [INFO] [stdout] | ^^^ function or associated item not found in `DiffInput<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 3 arguments were supplied [INFO] [stdout] --> src/main.rs:506:19 [INFO] [stdout] | [INFO] [stdout] 506 | let lcs = Tokenization::new(data, &shared_spans, &m); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ---- ------------- -- supplied 3 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `added` found for struct `DiffInput<'_>` in the current scope [INFO] [stdout] --> src/main.rs:534:36 [INFO] [stdout] | [INFO] [stdout] 534 | ... tokens.added(), [INFO] [stdout] | ^^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `removed` found for struct `DiffInput<'_>` in the current scope [INFO] [stdout] --> src/main.rs:541:36 [INFO] [stdout] | [INFO] [stdout] 541 | ... tokens.removed(), [INFO] [stdout] | ^^^^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:591:17 [INFO] [stdout] | [INFO] [stdout] 591 | &mut self.added_tokens [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected struct `HashedSpan`, found tuple [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut Vec` [INFO] [stdout] found mutable reference `&mut Vec<(usize, usize)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:371:5 [INFO] [stdout] | [INFO] [stdout] 364 | fn shared_spans(added_tokens: &Tokenization, diff_buffer: &Vec) -> Vec<(usize, usize)> { [INFO] [stdout] | ------------------- expected `Vec<(usize, usize)>` because of return type [INFO] [stdout] ... [INFO] [stdout] 371 | shared_spans [INFO] [stdout] | ^^^^^^^^^^^^ expected tuple, found struct `HashedSpan` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec<(usize, usize)>` [INFO] [stdout] found struct `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 3 arguments were supplied [INFO] [stdout] --> src/main.rs:499:23 [INFO] [stdout] | [INFO] [stdout] 499 | let removed = Tokenization::new(data, removed_tokens, &m); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ---- -------------- -- supplied 3 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 3 arguments were supplied [INFO] [stdout] --> src/main.rs:500:21 [INFO] [stdout] | [INFO] [stdout] 500 | let added = Tokenization::new(data, added_tokens, &m); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ---- ------------ -- supplied 3 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `DiffInput<'_>` in the current scope [INFO] [stdout] --> src/main.rs:501:33 [INFO] [stdout] | [INFO] [stdout] 501 | let tokens = DiffInput::new(&added, &removed); [INFO] [stdout] | ^^^ function or associated item not found in `DiffInput<'_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 3 arguments were supplied [INFO] [stdout] --> src/main.rs:506:19 [INFO] [stdout] | [INFO] [stdout] 506 | let lcs = Tokenization::new(data, &shared_spans, &m); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ---- ------------- -- supplied 3 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:593:17 [INFO] [stdout] | [INFO] [stdout] 593 | &mut self.removed_tokens [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `HashedSpan`, found tuple [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut Vec` [INFO] [stdout] found mutable reference `&mut Vec<(usize, usize)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `added` found for struct `DiffInput<'_>` in the current scope [INFO] [stdout] --> src/main.rs:534:36 [INFO] [stdout] | [INFO] [stdout] 534 | ... tokens.added(), [INFO] [stdout] | ^^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `removed` found for struct `DiffInput<'_>` in the current scope [INFO] [stdout] --> src/main.rs:541:36 [INFO] [stdout] | [INFO] [stdout] 541 | ... tokens.removed(), [INFO] [stdout] | ^^^^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:591:17 [INFO] [stdout] | [INFO] [stdout] 591 | &mut self.added_tokens [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected struct `HashedSpan`, found tuple [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut Vec` [INFO] [stdout] found mutable reference `&mut Vec<(usize, usize)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:593:17 [INFO] [stdout] | [INFO] [stdout] 593 | &mut self.removed_tokens [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `HashedSpan`, found tuple [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut Vec` [INFO] [stdout] found mutable reference `&mut Vec<(usize, usize)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `diffr` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 10 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "f7080eeadadce48790a6dee9f913d5a879f3fb06a97bed3befdf87147c285fc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7080eeadadce48790a6dee9f913d5a879f3fb06a97bed3befdf87147c285fc2", kill_on_drop: false }` [INFO] [stdout] f7080eeadadce48790a6dee9f913d5a879f3fb06a97bed3befdf87147c285fc2