[INFO] cloning repository https://github.com/dahai-f/leetcode [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dahai-f/leetcode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdahai-f%2Fleetcode", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdahai-f%2Fleetcode'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ec161351f32986e433381356ec806c6feba6eaaa [INFO] checking dahai-f/leetcode against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdahai-f%2Fleetcode" "/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/dahai-f/leetcode on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dahai-f/leetcode [INFO] finished tweaking git repo https://github.com/dahai-f/leetcode [INFO] tweaked toml for git repo https://github.com/dahai-f/leetcode written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/dahai-f/leetcode already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 10302fb646969b06dcc3000f39682263a01d683c73c06c2e6d08f68497804fa8 [INFO] running `Command { std: "docker" "start" "-a" "10302fb646969b06dcc3000f39682263a01d683c73c06c2e6d08f68497804fa8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "10302fb646969b06dcc3000f39682263a01d683c73c06c2e6d08f68497804fa8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "10302fb646969b06dcc3000f39682263a01d683c73c06c2e6d08f68497804fa8", kill_on_drop: false }` [INFO] [stdout] 10302fb646969b06dcc3000f39682263a01d683c73c06c2e6d08f68497804fa8 [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=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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b341f699949542eca565beea6a56ab31703f46f9d9e4281c12b05be53ca814b4 [INFO] running `Command { std: "docker" "start" "-a" "b341f699949542eca565beea6a56ab31703f46f9d9e4281c12b05be53ca814b4", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking leetcode v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating examples/70_爬楼梯_通项公式.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/695_岛屿的最大面积.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/190_颠倒二进制位.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/567_字符串的排列.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/35_搜索插入位置.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/1963_使字符串平衡的最小交换次数.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/345_反转字符串中的元音字母.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/526_优美的排列.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/278_第一个错误的版本.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/189_旋转数组_reverse.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/784_字母大小写全排列_内置库.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/977_有序数组的平方.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/994_腐烂的橘子.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/5850_找出数组的最大公约数.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/34_在排序数组中查找元素的第一个和最后一个位置.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/617_合并二叉树.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/3_无重复字符的最长子串.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/1337_矩阵中战斗力最弱的K行.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/0_empty_template.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/191_位1的个数.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/1968_构造元素不等于两相邻元素平均值的数组.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/1962_移除石子使总数最小.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/733_图像渲染.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/77_组合_非递归.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/787_k站中转内最便宜的航班.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/198_打家劫舍.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/789_逃脱阻碍者.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/120_三角形最小路径和.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/1646_获取生成数组中的最大值.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/1969_数组元素的最小非零乘积.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/167_两数之和_II_输入有序数组.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/567_字符串的排列_1.rs from 2018 edition to 2021 [INFO] [stdout] warning: associated function is never used: `reverse_bits` [INFO] [stdout] --> examples/190_颠倒二进制位.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn reverse_bits(mut x: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> examples/190_颠倒二进制位.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/876_链表的中间结点.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/552_学生出勤记录_II.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/443_压缩字符串.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/136_只出现一次的数字 .rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/5852_最小化目标值与所选元素的差.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/70_爬楼梯_矩阵快速幂.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/189_旋转数组.rs from 2018 edition to 2021 [INFO] [stdout] warning: method `isBadVersion` should have a snake case name [INFO] [stdout] --> examples/278_第一个错误的版本.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn isBadVersion(&self, version: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `is_bad_version` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/1337_矩阵中战斗力最弱的K行_分割法.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/283_移动零.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/5851_找出不同的二进制字符串.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/557_反转字符串中的单词_III.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/551_学生出勤记录_I.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/21_合并两个有序链表.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/46_全排列.rs from 2018 edition to 2021 [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> examples/0_empty_template.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/77_组合.rs from 2018 edition to 2021 [INFO] [stdout] warning: associated function is never used: `hammingWeight` [INFO] [stdout] --> examples/191_位1的个数.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn hammingWeight(mut n: u32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> examples/191_位1的个数.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hammingWeight` should have a snake case name [INFO] [stdout] --> examples/191_位1的个数.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn hammingWeight(mut n: u32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `hamming_weight` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/526_优美的排列_回溯.rs from 2018 edition to 2021 [INFO] [stdout] warning: crate `1337_矩阵中战斗力最弱的K行` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `1337_矩阵中战斗力最弱的_k行` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/19_删除链表的倒数第N个结点.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/1970_你能穿过矩阵的最后一天.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/1967_作为子字符串出现在单词中的字符串数目.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/542_01矩阵.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/206_反转链表.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/1964_找出到每个位置为止最长的有效障碍赛跑路线.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/541_反转字符串_II.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/231_2的幂.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/784_字母大小写全排列_递归.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/206_反转链表_递归.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/21_合并两个有序链表_递归.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/70_爬楼梯.rs from 2018 edition to 2021 [INFO] [stderr] Migrating examples/704_二分查找.rs from 2018 edition to 2021 [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/1969_数组元素的最小非零乘积.rs:3:44 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn min_non_zero_product(p: i32) -> i32 {} [INFO] [stdout] | -------------------- ^^^ expected `i32`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `rearrange_array` found for struct `Solution` in the current scope [INFO] [stdout] --> examples/1969_数组元素的最小非零乘积.rs:9:26 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution; [INFO] [stdout] | ---------------- function or associated item `rearrange_array` not found for this [INFO] [stdout] ... [INFO] [stdout] 9 | assert_eq!(Solution::rearrange_array(vec![]), vec![]); [INFO] [stdout] | ^^^^^^^^^^^^^^^ function or associated item not found in `Solution` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `num_of_strings` found for struct `Solution` in the current scope [INFO] [stdout] --> examples/1969_数组元素的最小非零乘积.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 6 | struct Solution; [INFO] [stdout] | ---------------- function or associated item `num_of_strings` not found for this [INFO] [stdout] ... [INFO] [stdout] 11 | Solution::num_of_strings( [INFO] [stdout] | ^^^^^^^^^^^^^^ function or associated item not found in `Solution` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `leetcode` due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: crate `167_两数之和_II_输入有序数组` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `167_两数之和_ii_输入有序数组` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `552_学生出勤记录_II` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `552_学生出勤记录_ii` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid character ` ` in crate name: `136_只出现一次的数字 ` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `1337_矩阵中战斗力最弱的K行_分割法` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `1337_矩阵中战斗力最弱的_k行_分割法` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `557_反转字符串中的单词_III` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `557_反转字符串中的单词_iii` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `551_学生出勤记录_I` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `551_学生出勤记录_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `19_删除链表的倒数第N个结点` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `19_删除链表的倒数第_n个结点` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/1970_你能穿过矩阵的最后一天.rs:3:77 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn latest_day_to_cross(row: i32, col: i32, cells: Vec>) -> i32 {} [INFO] [stdout] | ------------------- ^^^ expected `i32`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: crate `541_反转字符串_II` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `541_反转字符串_ii` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_power_of_two` [INFO] [stdout] --> examples/231_2的幂.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn is_power_of_two(n: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> examples/231_2的幂.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "b341f699949542eca565beea6a56ab31703f46f9d9e4281c12b05be53ca814b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b341f699949542eca565beea6a56ab31703f46f9d9e4281c12b05be53ca814b4", kill_on_drop: false }` [INFO] [stdout] b341f699949542eca565beea6a56ab31703f46f9d9e4281c12b05be53ca814b4