[INFO] cloning repository https://github.com/ayourtch/tbpatch [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ayourtch/tbpatch" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fayourtch%2Ftbpatch", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fayourtch%2Ftbpatch'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3662a034a5b4fda3d522cdf31fa1d82c0e819151 [INFO] testing ayourtch/tbpatch against beta-2021-01-01 for beta-1.50-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fayourtch%2Ftbpatch" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ayourtch/tbpatch on toolchain beta-2021-01-01 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-01-01" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ayourtch/tbpatch [INFO] finished tweaking git repo https://github.com/ayourtch/tbpatch [INFO] tweaked toml for git repo https://github.com/ayourtch/tbpatch written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/ayourtch/tbpatch already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-01-01" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded diffus v0.9.1 [INFO] [stderr] Downloaded diffus-derive v0.9.1 [INFO] [stderr] Downloaded unidiff v0.3.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "+beta-2021-01-01" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d903381e08dd2c338634c519c1bb77690947f719050b6f9024f78b5521025e61 [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" "d903381e08dd2c338634c519c1bb77690947f719050b6f9024f78b5521025e61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d903381e08dd2c338634c519c1bb77690947f719050b6f9024f78b5521025e61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d903381e08dd2c338634c519c1bb77690947f719050b6f9024f78b5521025e61", kill_on_drop: false }` [INFO] [stdout] d903381e08dd2c338634c519c1bb77690947f719050b6f9024f78b5521025e61 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-01-01" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 35864bedb5fcd0822be772d2d21581b051b42fb6ed8ed81a0faf26ef8148e32a [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" "35864bedb5fcd0822be772d2d21581b051b42fb6ed8ed81a0faf26ef8148e32a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling syn v1.0.55 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling encoding_rs v0.8.26 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling regex-syntax v0.6.21 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling os_str_bytes v2.4.0 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling textwrap v0.12.1 [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling heck v0.3.2 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Compiling diffus v0.9.1 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling regex v1.4.2 [INFO] [stderr] Compiling unidiff v0.3.3 [INFO] [stderr] Compiling clap_derive v3.0.0-beta.2 [INFO] [stderr] Compiling diffus-derive v0.9.1 [INFO] [stderr] Compiling clap v3.0.0-beta.2 [INFO] [stderr] Compiling tbpatch v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:517:5 [INFO] [stdout] | [INFO] [stdout] 508 | return out_file; [INFO] [stdout] | --------------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 517 | return src_file.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_uuid` [INFO] [stdout] --> src/main.rs:255:37 [INFO] [stdout] | [INFO] [stdout] 255 | ... token_uuid, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `token_uuid: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leading_ws` [INFO] [stdout] --> src/main.rs:256:37 [INFO] [stdout] | [INFO] [stdout] 256 | ... leading_ws, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `leading_ws: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tok` [INFO] [stdout] --> src/main.rs:261:49 [INFO] [stdout] | [INFO] [stdout] 261 | ... let tok = &right.atoms[atom_index].token_value; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ch` [INFO] [stdout] --> src/main.rs:328:14 [INFO] [stdout] | [INFO] [stdout] 328 | for (hi, ch) in haystack.into_iter().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:361:9 [INFO] [stdout] | [INFO] [stdout] 361 | for i in 0..p { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_uuid` [INFO] [stdout] --> src/main.rs:425:37 [INFO] [stdout] | [INFO] [stdout] 425 | ... token_uuid, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `token_uuid: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leading_ws` [INFO] [stdout] --> src/main.rs:426:37 [INFO] [stdout] | [INFO] [stdout] 426 | ... leading_ws, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `leading_ws: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:429:58 [INFO] [stdout] | [INFO] [stdout] 429 | ... edit::Edit::Copy(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:387:26 [INFO] [stdout] | [INFO] [stdout] 387 | edit::Edit::Copy(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `find_pos` [INFO] [stdout] --> src/main.rs:512:13 [INFO] [stdout] | [INFO] [stdout] 512 | let find_pos = find_needle(&src.atoms, &src_file.atoms, true); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_find_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/main.rs:477:5 [INFO] [stdout] | [INFO] [stdout] 477 | file: &unidiff::PatchedFile, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_nth_arg` [INFO] [stdout] --> src/main.rs:148:4 [INFO] [stdout] | [INFO] [stdout] 148 | fn read_nth_arg(i: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_nth_arg` [INFO] [stdout] --> src/main.rs:154:4 [INFO] [stdout] | [INFO] [stdout] 154 | fn parse_nth_arg(i: usize) -> ParseStruct { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_diffus` [INFO] [stdout] --> src/main.rs:299:4 [INFO] [stdout] | [INFO] [stdout] 299 | fn test_diffus() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `HunkOp` [INFO] [stdout] --> src/main.rs:318:6 [INFO] [stdout] | [INFO] [stdout] 318 | enum HunkOp { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> src/main.rs:177:21 [INFO] [stdout] | [INFO] [stdout] 177 | / diff.into_iter() [INFO] [stdout] 178 | | .map(|edit| { [INFO] [stdout] 179 | | match edit { [INFO] [stdout] 180 | | collection::Edit::Copy(elem) => println!("copy: {:?}", elem), [INFO] [stdout] ... | [INFO] [stdout] 211 | | }) [INFO] [stdout] 212 | | .collect::>(); [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Map` that must be used [INFO] [stdout] --> src/main.rs:233:21 [INFO] [stdout] | [INFO] [stdout] 233 | / x.into_iter().map(|xx| { [INFO] [stdout] 234 | | print!("{}", &atom2str(&xx)); [INFO] [stdout] 235 | | atom_index = atom_index + 1; [INFO] [stdout] 236 | | }); [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> src/main.rs:239:21 [INFO] [stdout] | [INFO] [stdout] 239 | / diff.into_iter() [INFO] [stdout] 240 | | .map(|edit| { [INFO] [stdout] 241 | | match edit { [INFO] [stdout] 242 | | collection::Edit::Copy(elem) => { [INFO] [stdout] ... | [INFO] [stdout] 290 | | }) [INFO] [stdout] 291 | | .collect::>(); [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Map` that must be used [INFO] [stdout] --> src/main.rs:398:21 [INFO] [stdout] | [INFO] [stdout] 398 | / x.into_iter().map(|xx| { [INFO] [stdout] 399 | | assert!(&src_file.atoms[p + src_skip] == xx); [INFO] [stdout] 400 | | out_file.atoms.push(xx.clone()); [INFO] [stdout] 401 | | src_skip = src_skip + 1; [INFO] [stdout] 402 | | }); [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> src/main.rs:405:21 [INFO] [stdout] | [INFO] [stdout] 405 | / diff.into_iter() [INFO] [stdout] 406 | | .map(|edit| { [INFO] [stdout] 407 | | match edit { [INFO] [stdout] 408 | | collection::Edit::Copy(elem) => { [INFO] [stdout] ... | [INFO] [stdout] 466 | | }) [INFO] [stdout] 467 | | .collect::>(); [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 11s [INFO] running `Command { std: "docker" "inspect" "35864bedb5fcd0822be772d2d21581b051b42fb6ed8ed81a0faf26ef8148e32a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35864bedb5fcd0822be772d2d21581b051b42fb6ed8ed81a0faf26ef8148e32a", kill_on_drop: false }` [INFO] [stdout] 35864bedb5fcd0822be772d2d21581b051b42fb6ed8ed81a0faf26ef8148e32a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-01-01" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 5f34e21c1cb85cc6ed11ddb93f2fdba4739c54c15962230f7e2573e20fed415e [INFO] running `Command { std: "docker" "start" "-a" "5f34e21c1cb85cc6ed11ddb93f2fdba4739c54c15962230f7e2573e20fed415e", kill_on_drop: false }` [INFO] [stderr] Compiling tbpatch v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:517:5 [INFO] [stdout] | [INFO] [stdout] 508 | return out_file; [INFO] [stdout] | --------------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 517 | return src_file.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_uuid` [INFO] [stdout] --> src/main.rs:255:37 [INFO] [stdout] | [INFO] [stdout] 255 | ... token_uuid, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `token_uuid: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leading_ws` [INFO] [stdout] --> src/main.rs:256:37 [INFO] [stdout] | [INFO] [stdout] 256 | ... leading_ws, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `leading_ws: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tok` [INFO] [stdout] --> src/main.rs:261:49 [INFO] [stdout] | [INFO] [stdout] 261 | ... let tok = &right.atoms[atom_index].token_value; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ch` [INFO] [stdout] --> src/main.rs:328:14 [INFO] [stdout] | [INFO] [stdout] 328 | for (hi, ch) in haystack.into_iter().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:361:9 [INFO] [stdout] | [INFO] [stdout] 361 | for i in 0..p { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_uuid` [INFO] [stdout] --> src/main.rs:425:37 [INFO] [stdout] | [INFO] [stdout] 425 | ... token_uuid, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `token_uuid: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `leading_ws` [INFO] [stdout] --> src/main.rs:426:37 [INFO] [stdout] | [INFO] [stdout] 426 | ... leading_ws, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `leading_ws: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:429:58 [INFO] [stdout] | [INFO] [stdout] 429 | ... edit::Edit::Copy(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:387:26 [INFO] [stdout] | [INFO] [stdout] 387 | edit::Edit::Copy(x) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `find_pos` [INFO] [stdout] --> src/main.rs:512:13 [INFO] [stdout] | [INFO] [stdout] 512 | let find_pos = find_needle(&src.atoms, &src_file.atoms, true); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_find_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/main.rs:477:5 [INFO] [stdout] | [INFO] [stdout] 477 | file: &unidiff::PatchedFile, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_nth_arg` [INFO] [stdout] --> src/main.rs:148:4 [INFO] [stdout] | [INFO] [stdout] 148 | fn read_nth_arg(i: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parse_nth_arg` [INFO] [stdout] --> src/main.rs:154:4 [INFO] [stdout] | [INFO] [stdout] 154 | fn parse_nth_arg(i: usize) -> ParseStruct { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_diffus` [INFO] [stdout] --> src/main.rs:299:4 [INFO] [stdout] | [INFO] [stdout] 299 | fn test_diffus() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `HunkOp` [INFO] [stdout] --> src/main.rs:318:6 [INFO] [stdout] | [INFO] [stdout] 318 | enum HunkOp { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> src/main.rs:177:21 [INFO] [stdout] | [INFO] [stdout] 177 | / diff.into_iter() [INFO] [stdout] 178 | | .map(|edit| { [INFO] [stdout] 179 | | match edit { [INFO] [stdout] 180 | | collection::Edit::Copy(elem) => println!("copy: {:?}", elem), [INFO] [stdout] ... | [INFO] [stdout] 211 | | }) [INFO] [stdout] 212 | | .collect::>(); [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Map` that must be used [INFO] [stdout] --> src/main.rs:233:21 [INFO] [stdout] | [INFO] [stdout] 233 | / x.into_iter().map(|xx| { [INFO] [stdout] 234 | | print!("{}", &atom2str(&xx)); [INFO] [stdout] 235 | | atom_index = atom_index + 1; [INFO] [stdout] 236 | | }); [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> src/main.rs:239:21 [INFO] [stdout] | [INFO] [stdout] 239 | / diff.into_iter() [INFO] [stdout] 240 | | .map(|edit| { [INFO] [stdout] 241 | | match edit { [INFO] [stdout] 242 | | collection::Edit::Copy(elem) => { [INFO] [stdout] ... | [INFO] [stdout] 290 | | }) [INFO] [stdout] 291 | | .collect::>(); [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Map` that must be used [INFO] [stdout] --> src/main.rs:398:21 [INFO] [stdout] | [INFO] [stdout] 398 | / x.into_iter().map(|xx| { [INFO] [stdout] 399 | | assert!(&src_file.atoms[p + src_skip] == xx); [INFO] [stdout] 400 | | out_file.atoms.push(xx.clone()); [INFO] [stdout] 401 | | src_skip = src_skip + 1; [INFO] [stdout] 402 | | }); [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `collect` that must be used [INFO] [stdout] --> src/main.rs:405:21 [INFO] [stdout] | [INFO] [stdout] 405 | / diff.into_iter() [INFO] [stdout] 406 | | .map(|edit| { [INFO] [stdout] 407 | | match edit { [INFO] [stdout] 408 | | collection::Edit::Copy(elem) => { [INFO] [stdout] ... | [INFO] [stdout] 466 | | }) [INFO] [stdout] 467 | | .collect::>(); [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.48s [INFO] running `Command { std: "docker" "inspect" "5f34e21c1cb85cc6ed11ddb93f2fdba4739c54c15962230f7e2573e20fed415e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f34e21c1cb85cc6ed11ddb93f2fdba4739c54c15962230f7e2573e20fed415e", kill_on_drop: false }` [INFO] [stdout] 5f34e21c1cb85cc6ed11ddb93f2fdba4739c54c15962230f7e2573e20fed415e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-01-01" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 264ee837e0b505dd22162d14362be16b7a2abb9fb2f3425993003dac1516481c [INFO] running `Command { std: "docker" "start" "-a" "264ee837e0b505dd22162d14362be16b7a2abb9fb2f3425993003dac1516481c", kill_on_drop: false }` [INFO] [stdout] [INFO] [stderr] warning: unreachable statement [INFO] [stdout] running 0 tests [INFO] [stderr] --> src/main.rs:517:5 [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] 508 | return out_file; [INFO] [stdout] [INFO] [stderr] | --------------- any code following this expression is unreachable [INFO] [stderr] ... [INFO] [stderr] 517 | return src_file.clone(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `token_uuid` [INFO] [stderr] --> src/main.rs:255:37 [INFO] [stderr] | [INFO] [stderr] 255 | ... token_uuid, [INFO] [stderr] | ^^^^^^^^^^ help: try ignoring the field: `token_uuid: _` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `leading_ws` [INFO] [stderr] --> src/main.rs:256:37 [INFO] [stderr] | [INFO] [stderr] 256 | ... leading_ws, [INFO] [stderr] | ^^^^^^^^^^ help: try ignoring the field: `leading_ws: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `tok` [INFO] [stderr] --> src/main.rs:261:49 [INFO] [stderr] | [INFO] [stderr] 261 | ... let tok = &right.atoms[atom_index].token_value; [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_tok` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ch` [INFO] [stderr] --> src/main.rs:328:14 [INFO] [stderr] | [INFO] [stderr] 328 | for (hi, ch) in haystack.into_iter().enumerate() { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_ch` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/main.rs:361:9 [INFO] [stderr] | [INFO] [stderr] 361 | for i in 0..p { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `token_uuid` [INFO] [stderr] --> src/main.rs:425:37 [INFO] [stderr] | [INFO] [stderr] 425 | ... token_uuid, [INFO] [stderr] | ^^^^^^^^^^ help: try ignoring the field: `token_uuid: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `leading_ws` [INFO] [stderr] --> src/main.rs:426:37 [INFO] [stderr] | [INFO] [stderr] 426 | ... leading_ws, [INFO] [stderr] | ^^^^^^^^^^ help: try ignoring the field: `leading_ws: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/main.rs:429:58 [INFO] [stderr] | [INFO] [stderr] 429 | ... edit::Edit::Copy(x) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/main.rs:387:26 [INFO] [stderr] | [INFO] [stderr] 387 | edit::Edit::Copy(x) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `find_pos` [INFO] [stderr] --> src/main.rs:512:13 [INFO] [stderr] | [INFO] [stderr] 512 | let find_pos = find_needle(&src.atoms, &src_file.atoms, true); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_find_pos` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `file` [INFO] [stderr] --> src/main.rs:477:5 [INFO] [stderr] | [INFO] [stderr] 477 | file: &unidiff::PatchedFile, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stderr] [INFO] [stderr] warning: function is never used: `read_nth_arg` [INFO] [stderr] --> src/main.rs:148:4 [INFO] [stderr] | [INFO] [stderr] 148 | fn read_nth_arg(i: usize) -> String { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `parse_nth_arg` [INFO] [stderr] --> src/main.rs:154:4 [INFO] [stderr] | [INFO] [stderr] 154 | fn parse_nth_arg(i: usize) -> ParseStruct { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `test_diffus` [INFO] [stderr] --> src/main.rs:299:4 [INFO] [stderr] | [INFO] [stderr] 299 | fn test_diffus() { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum is never used: `HunkOp` [INFO] [stderr] --> src/main.rs:318:6 [INFO] [stderr] | [INFO] [stderr] 318 | enum HunkOp { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused return value of `collect` that must be used [INFO] [stderr] --> src/main.rs:177:21 [INFO] [stderr] | [INFO] [stderr] 177 | / diff.into_iter() [INFO] [stderr] 178 | | .map(|edit| { [INFO] [stderr] 179 | | match edit { [INFO] [stderr] 180 | | collection::Edit::Copy(elem) => println!("copy: {:?}", elem), [INFO] [stderr] ... | [INFO] [stderr] 211 | | }) [INFO] [stderr] 212 | | .collect::>(); [INFO] [stderr] | |_____________________________________________^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stderr] [INFO] [stderr] warning: unused `Map` that must be used [INFO] [stderr] --> src/main.rs:233:21 [INFO] [stderr] | [INFO] [stderr] 233 | / x.into_iter().map(|xx| { [INFO] [stderr] 234 | | print!("{}", &atom2str(&xx)); [INFO] [stderr] 235 | | atom_index = atom_index + 1; [INFO] [stderr] 236 | | }); [INFO] [stderr] | |_______________________^ [INFO] [stderr] | [INFO] [stderr] = note: iterators are lazy and do nothing unless consumed [INFO] [stderr] [INFO] [stderr] warning: unused return value of `collect` that must be used [INFO] [stderr] --> src/main.rs:239:21 [INFO] [stderr] | [INFO] [stderr] 239 | / diff.into_iter() [INFO] [stderr] 240 | | .map(|edit| { [INFO] [stderr] 241 | | match edit { [INFO] [stderr] 242 | | collection::Edit::Copy(elem) => { [INFO] [stderr] ... | [INFO] [stderr] 290 | | }) [INFO] [stderr] 291 | | .collect::>(); [INFO] [stderr] | |_____________________________________________^ [INFO] [stderr] | [INFO] [stderr] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stderr] [INFO] [stderr] warning: unused `Map` that must be used [INFO] [stderr] --> src/main.rs:398:21 [INFO] [stderr] | [INFO] [stderr] 398 | / x.into_iter().map(|xx| { [INFO] [stderr] 399 | | assert!(&src_file.atoms[p + src_skip] == xx); [INFO] [stderr] 400 | | out_file.atoms.push(xx.clone()); [INFO] [stderr] 401 | | src_skip = src_skip + 1; [INFO] [stderr] 402 | | }); [INFO] [stderr] | |_______________________^ [INFO] [stderr] | [INFO] [stderr] = note: iterators are lazy and do nothing unless consumed [INFO] [stderr] [INFO] [stderr] warning: unused return value of `collect` that must be used [INFO] [stderr] --> src/main.rs:405:21 [INFO] [stderr] | [INFO] [stderr] 405 | / diff.into_iter() [INFO] [stderr] 406 | | .map(|edit| { [INFO] [stderr] 407 | | match edit { [INFO] [stderr] 408 | | collection::Edit::Copy(elem) => { [INFO] [stderr] ... | [INFO] [stderr] 466 | | }) [INFO] [stderr] 467 | | .collect::>(); [INFO] [stderr] | |_____________________________________________^ [INFO] [stderr] | [INFO] [stderr] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead [INFO] [stderr] [INFO] [stderr] warning: 21 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/tbpatch-96c9744a6b4ca09b [INFO] running `Command { std: "docker" "inspect" "264ee837e0b505dd22162d14362be16b7a2abb9fb2f3425993003dac1516481c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "264ee837e0b505dd22162d14362be16b7a2abb9fb2f3425993003dac1516481c", kill_on_drop: false }` [INFO] [stdout] 264ee837e0b505dd22162d14362be16b7a2abb9fb2f3425993003dac1516481c