[INFO] cloning repository https://github.com/44smkn/ironmonkey [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/44smkn/ironmonkey" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F44smkn%2Fironmonkey", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F44smkn%2Fironmonkey'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 99cfc8da1a65836d9c92e59f8ce86d5d2f28d129 [INFO] checking 44smkn/ironmonkey against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F44smkn%2Fironmonkey" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/44smkn/ironmonkey 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/44smkn/ironmonkey [INFO] finished tweaking git repo https://github.com/44smkn/ironmonkey [INFO] tweaked toml for git repo https://github.com/44smkn/ironmonkey written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/44smkn/ironmonkey 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-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 876ae40f8c0bfb39d05100f154ac32d0c033b70fcdad7130fca8beec9f7f6569 [INFO] running `Command { std: "docker" "start" "-a" "876ae40f8c0bfb39d05100f154ac32d0c033b70fcdad7130fca8beec9f7f6569", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "876ae40f8c0bfb39d05100f154ac32d0c033b70fcdad7130fca8beec9f7f6569", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "876ae40f8c0bfb39d05100f154ac32d0c033b70fcdad7130fca8beec9f7f6569", kill_on_drop: false }` [INFO] [stdout] 876ae40f8c0bfb39d05100f154ac32d0c033b70fcdad7130fca8beec9f7f6569 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] e29af3485d95f0e43b6fe942b90e0d9f1254f17d8db3f8a810c1ae915bb1e6ce [INFO] running `Command { std: "docker" "start" "-a" "e29af3485d95f0e43b6fe942b90e0d9f1254f17d8db3f8a810c1ae915bb1e6ce", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking ironmonkey v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/ast.rs (2 fixes) [INFO] [stderr] Fixed src/lexer.rs (1 fix) [INFO] [stderr] Fixed src/parser.rs (1 fix) [INFO] [stdout] error[E0599]: no method named `token_literal` found for reference `&StatementType` in the current scope [INFO] [stdout] --> src/parser.rs:222:27 [INFO] [stdout] | [INFO] [stdout] 222 | statement.token_literal(), [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `&StatementType` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use crate::ast::Node;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `token_literal` found for reference `&StatementType` in the current scope [INFO] [stdout] --> src/parser.rs:225:27 [INFO] [stdout] | [INFO] [stdout] 225 | statement.token_literal() [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `&StatementType` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use crate::ast::Node;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `token_literal` found for struct `Identifer` in the current scope [INFO] [stdout] --> src/parser.rs:232:39 [INFO] [stdout] | [INFO] [stdout] 232 | assert_eq!(statement.name.token_literal(), expected_identifier); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `Identifer` [INFO] [stdout] | [INFO] [stdout] ::: src/ast.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | fn token_literal(&self) -> String; [INFO] [stdout] | ------------- the method is available for `Identifer` here [INFO] [stdout] ... [INFO] [stdout] 118 | pub struct Identifer { [INFO] [stdout] | -------------------- method `token_literal` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use crate::ast::Node;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `token_literal` found for struct `ReturnStatement` in the current scope [INFO] [stdout] --> src/parser.rs:273:34 [INFO] [stdout] | [INFO] [stdout] 273 | assert_eq!(statement.token_literal(), "return"); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `ReturnStatement` [INFO] [stdout] | [INFO] [stdout] ::: src/ast.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | fn token_literal(&self) -> String; [INFO] [stdout] | ------------- the method is available for `ReturnStatement` here [INFO] [stdout] ... [INFO] [stdout] 83 | pub struct ReturnStatement { [INFO] [stdout] | -------------------------- method `token_literal` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use crate::ast::Node;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `token_literal` found for reference `&Identifer` in the current scope [INFO] [stdout] --> src/parser.rs:301:26 [INFO] [stdout] | [INFO] [stdout] 301 | assert_eq!(ident.token_literal(), "foobar"); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `&Identifer` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use crate::ast::Node;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ironmonkey` due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variant is never constructed: `LetStatement` [INFO] [stdout] --> src/ast.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | LetStatement(LetStatement), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ReturnStatement` [INFO] [stdout] --> src/ast.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | ReturnStatement(ReturnStatement), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ExpressionStatement` [INFO] [stdout] --> src/ast.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | ExpressionStatement(ExpressionStatement), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Identifer` [INFO] [stdout] --> src/ast.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | Identifer(Identifer), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Illegal` [INFO] [stdout] --> src/ast.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | Illegal, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/ast.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn new(token: Box) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/parser.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn new(lexer: Lexer) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `errors` [INFO] [stdout] --> src/parser.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | fn errors(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_error` [INFO] [stdout] --> src/parser.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn peek_error(&mut self, token_type: &TokenType) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_token` [INFO] [stdout] --> src/parser.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | fn next_token(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `expect_peek` [INFO] [stdout] --> src/parser.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | fn expect_peek(&mut self, token: TokenType) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_token_is` [INFO] [stdout] --> src/parser.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | fn peek_token_is(&mut self, token: &TokenType) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `cur_token_is` [INFO] [stdout] --> src/parser.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | fn cur_token_is(&mut self, token: TokenType) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_program` [INFO] [stdout] --> src/parser.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | fn parse_program(&mut self) -> Program { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_statement` [INFO] [stdout] --> src/parser.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | fn parse_statement(&mut self) -> StatementType { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_let_statement` [INFO] [stdout] --> src/parser.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | fn parse_let_statement(&mut self) -> StatementType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_return_statement` [INFO] [stdout] --> src/parser.rs:135:8 [INFO] [stdout] | [INFO] [stdout] 135 | fn parse_return_statement(&mut self) -> StatementType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `register_prefix` [INFO] [stdout] --> src/parser.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | fn register_prefix(&mut self, token_type: TokenType, func: PrefixParseFn) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `register_infix` [INFO] [stdout] --> src/parser.rs:155:8 [INFO] [stdout] | [INFO] [stdout] 155 | fn register_infix(&mut self, token_type: TokenType, func: InfixParseFn) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_expression_statement` [INFO] [stdout] --> src/parser.rs:159:8 [INFO] [stdout] | [INFO] [stdout] 159 | fn parse_expression_statement(&mut self) -> StatementType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_expression` [INFO] [stdout] --> src/parser.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 174 | fn parse_expression(&mut self) -> ExpressionType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `OperatorPriority` [INFO] [stdout] --> src/parser.rs:179:6 [INFO] [stdout] | [INFO] [stdout] 179 | enum OperatorPriority { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `discover_token_type` [INFO] [stdout] --> src/parser.rs:189:4 [INFO] [stdout] | [INFO] [stdout] 189 | fn discover_token_type(token: &Option>) -> TokenType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 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" "e29af3485d95f0e43b6fe942b90e0d9f1254f17d8db3f8a810c1ae915bb1e6ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e29af3485d95f0e43b6fe942b90e0d9f1254f17d8db3f8a810c1ae915bb1e6ce", kill_on_drop: false }` [INFO] [stdout] e29af3485d95f0e43b6fe942b90e0d9f1254f17d8db3f8a810c1ae915bb1e6ce