[INFO] cloning repository https://github.com/bodagovsky/migrator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bodagovsky/migrator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbodagovsky%2Fmigrator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbodagovsky%2Fmigrator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dee7f719405a0b02da588542defc18039d327954 [INFO] checking bodagovsky/migrator against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbodagovsky%2Fmigrator" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bodagovsky/migrator 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/bodagovsky/migrator [INFO] finished tweaking git repo https://github.com/bodagovsky/migrator [INFO] tweaked toml for git repo https://github.com/bodagovsky/migrator written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/bodagovsky/migrator 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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded textwrap v0.12.1 [INFO] [stderr] Downloaded clap_derive v3.0.0-beta.2 [INFO] [stderr] Downloaded clap v3.0.0-beta.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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] eb39cbc4b939cce995515a0f295580259e643fefb228419cf368d0a1132b3a6d [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" "eb39cbc4b939cce995515a0f295580259e643fefb228419cf368d0a1132b3a6d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eb39cbc4b939cce995515a0f295580259e643fefb228419cf368d0a1132b3a6d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb39cbc4b939cce995515a0f295580259e643fefb228419cf368d0a1132b3a6d", kill_on_drop: false }` [INFO] [stdout] eb39cbc4b939cce995515a0f295580259e643fefb228419cf368d0a1132b3a6d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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] af5bf62e0c8505d5a9f85f72a27433ddbb1a1415520d31416859dc922ae14134 [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" "af5bf62e0c8505d5a9f85f72a27433ddbb1a1415520d31416859dc922ae14134", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Checking textwrap v0.12.1 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling clap_derive v3.0.0-beta.2 [INFO] [stderr] Checking clap v3.0.0-beta.2 [INFO] [stderr] Checking migrator v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/migration.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | f.write(GOOSE.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/migration.rs:61:29 [INFO] [stdout] | [INFO] [stdout] 61 | / ... fs::rename( [INFO] [stdout] 62 | | ... current_dir.clone() + &file_name, [INFO] [stdout] 63 | | ... current_dir.clone() + &new_file_name, [INFO] [stdout] 64 | | ... ); [INFO] [stdout] | |________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/migration/prefix.rs (1 fix) [INFO] [stderr] Fixed src/migration/tools.rs (1 fix) [INFO] [stderr] Fixed src/migration.rs (1 fix) [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/migration.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | f.write(GOOSE.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/migration.rs:61:29 [INFO] [stdout] | [INFO] [stdout] 61 | / ... fs::rename( [INFO] [stdout] 62 | | ... current_dir.clone() + &file_name, [INFO] [stdout] 63 | | ... current_dir.clone() + &new_file_name, [INFO] [stdout] 64 | | ... ); [INFO] [stdout] | |________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 27.73s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking migrator v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `prefix` [INFO] [stdout] --> src/migration/prefix.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | assert_eq!(prefix::count_digits(1), 1); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `prefix` [INFO] [stdout] --> src/migration/prefix.rs:50:20 [INFO] [stdout] | [INFO] [stdout] 50 | assert_eq!(prefix::count_digits(10), 2); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `prefix` [INFO] [stdout] --> src/migration/prefix.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 51 | assert_eq!(prefix::count_digits(100), 3); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `prefix` [INFO] [stdout] --> src/migration/prefix.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | assert_eq!(prefix::count_digits(12345), 5); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `prefix` [INFO] [stdout] --> src/migration/prefix.rs:57:20 [INFO] [stdout] | [INFO] [stdout] 57 | assert_eq!(prefix::extract_prefix("001_migration.sql"), "001"); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `prefix` [INFO] [stdout] --> src/migration/prefix.rs:58:20 [INFO] [stdout] | [INFO] [stdout] 58 | assert_eq!(prefix::extract_prefix("1_migration.sql"), "1"); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `prefix` [INFO] [stdout] --> src/migration/prefix.rs:59:20 [INFO] [stdout] | [INFO] [stdout] 59 | assert_eq!(prefix::extract_prefix("002_migration.sql"), "002"); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `prefix` [INFO] [stdout] --> src/migration/prefix.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | prefix::extract_prefix("001migration.sql"), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `prefix` [INFO] [stdout] --> src/migration/prefix.rs:64:20 [INFO] [stdout] | [INFO] [stdout] 64 | assert_eq!(prefix::extract_prefix(""), ""); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `prefix` [INFO] [stdout] --> src/migration/prefix.rs:65:20 [INFO] [stdout] | [INFO] [stdout] 65 | assert_eq!(prefix::extract_prefix("5000_migration.sql"), "5000"); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `prefix` [INFO] [stdout] --> src/migration/prefix.rs:70:20 [INFO] [stdout] | [INFO] [stdout] 70 | assert_eq!(prefix::construct_prefix(1, 2), "01"); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `prefix` [INFO] [stdout] --> src/migration/prefix.rs:71:20 [INFO] [stdout] | [INFO] [stdout] 71 | assert_eq!(prefix::construct_prefix(2, 5), "00002"); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `prefix` [INFO] [stdout] --> src/migration/prefix.rs:72:20 [INFO] [stdout] | [INFO] [stdout] 72 | assert_eq!(prefix::construct_prefix(135, 2), ""); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `prefix` [INFO] [stdout] --> src/migration/prefix.rs:73:20 [INFO] [stdout] | [INFO] [stdout] 73 | assert_eq!(prefix::construct_prefix(0, 0), "0"); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `prefix` [INFO] [stdout] --> src/migration/prefix.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | prefix::change_prefix("0002", "001_migration.sql"), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `prefix` [INFO] [stdout] --> src/migration/prefix.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | prefix::change_prefix("02", "1_migration.sql"), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `prefix` [INFO] [stdout] --> src/migration/prefix.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | prefix::change_prefix("10", "0_migration.sql"), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `prefix` [INFO] [stdout] --> src/migration/prefix.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | prefix::change_prefix("0100", "migration.sql"), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `prefix` [INFO] [stdout] --> src/migration/prefix.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | prefix::change_prefix("000002", "_migration.sql"), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `prefix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tools` [INFO] [stdout] --> src/migration/tools.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | tools::file_name("Users/Documents/migrations/001_migrations.sql"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tools` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tools` [INFO] [stdout] --> src/migration/tools.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | tools::file_name("/002_migrations.sql"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tools` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tools` [INFO] [stdout] --> src/migration/tools.rs:67:20 [INFO] [stdout] | [INFO] [stdout] 67 | assert_eq!(tools::file_name("003_migrations.sql"), "003_migrations.sql"); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tools` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tools` [INFO] [stdout] --> src/migration/tools.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | tools::file_name("004_migrations.sql/"), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tools` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tools` [INFO] [stdout] --> src/migration/tools.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | tools::extract_migrations_path(), [INFO] [stdout] | ^^^^^ use of undeclared crate or module `tools` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `sort_migrations` in this scope [INFO] [stdout] --> src/migration.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | sort_migrations() [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 79 | use crate::sort_migrations; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/migration.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | f.write(GOOSE.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/migration.rs:61:29 [INFO] [stdout] | [INFO] [stdout] 61 | / ... fs::rename( [INFO] [stdout] 62 | | ... current_dir.clone() + &file_name, [INFO] [stdout] 63 | | ... current_dir.clone() + &new_file_name, [INFO] [stdout] 64 | | ... ); [INFO] [stdout] | |________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 25 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `migrator` due to 26 previous errors [INFO] [stderr] error: failed to check after updating to 2021 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "af5bf62e0c8505d5a9f85f72a27433ddbb1a1415520d31416859dc922ae14134", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af5bf62e0c8505d5a9f85f72a27433ddbb1a1415520d31416859dc922ae14134", kill_on_drop: false }` [INFO] [stdout] af5bf62e0c8505d5a9f85f72a27433ddbb1a1415520d31416859dc922ae14134