[INFO] cloning repository https://github.com/sagnikc395/lox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sagnikc395/lox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsagnikc395%2Flox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsagnikc395%2Flox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 02c8c77574f5f26d54157894e676f220aef520f1 [INFO] checking sagnikc395/lox against try#802c9b5f98c16ec9d24cdfd517f740f1f3df0e29 for pr-137728 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsagnikc395%2Flox" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sagnikc395/lox on toolchain 802c9b5f98c16ec9d24cdfd517f740f1f3df0e29 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+802c9b5f98c16ec9d24cdfd517f740f1f3df0e29" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sagnikc395/lox [INFO] finished tweaking git repo https://github.com/sagnikc395/lox [INFO] tweaked toml for git repo https://github.com/sagnikc395/lox written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/sagnikc395/lox already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+802c9b5f98c16ec9d24cdfd517f740f1f3df0e29" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+802c9b5f98c16ec9d24cdfd517f740f1f3df0e29" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e85205298b57c25daf0658896a423b963b7cba9a3ede6eacd2a549ecb9443644 [INFO] running `Command { std: "docker" "start" "-a" "e85205298b57c25daf0658896a423b963b7cba9a3ede6eacd2a549ecb9443644", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e85205298b57c25daf0658896a423b963b7cba9a3ede6eacd2a549ecb9443644", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e85205298b57c25daf0658896a423b963b7cba9a3ede6eacd2a549ecb9443644", kill_on_drop: false }` [INFO] [stdout] e85205298b57c25daf0658896a423b963b7cba9a3ede6eacd2a549ecb9443644 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "RUSTDOCFLAGS=--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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+802c9b5f98c16ec9d24cdfd517f740f1f3df0e29" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aa06d7565e409bcdfd10ff9860f6fb08c5071b95d68a333856dd7cf1a0ba0bf2 [INFO] running `Command { std: "docker" "start" "-a" "aa06d7565e409bcdfd10ff9860f6fb08c5071b95d68a333856dd7cf1a0ba0bf2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.16 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking bytes v1.10.0 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [INFO] [stderr] Compiling miette-derive v7.5.0 [INFO] [stderr] Checking miette v7.5.0 [INFO] [stderr] Checking lox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> src/lib.rs:90:82 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn lex(input: impl IntoIterator) -> impl Iterator> { [INFO] [stdout] | ^^^^^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from [INFO] [stdout] help: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static`, or if you will only have owned values [INFO] [stdout] | [INFO] [stdout] 90 | pub fn lex(input: impl IntoIterator) -> impl Iterator, Error>> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `T` in this scope [INFO] [stdout] --> src/lib.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | T: Iterator, [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> src/lib.rs:90:82 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn lex(input: impl IntoIterator) -> impl Iterator> { [INFO] [stdout] | ^^^^^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from [INFO] [stdout] help: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static`, or if you will only have owned values [INFO] [stdout] | [INFO] [stdout] 90 | pub fn lex(input: impl IntoIterator) -> impl Iterator, Error>> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `T` in this scope [INFO] [stdout] --> src/lib.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | T: Iterator, [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:91:16 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn lex(input: impl IntoIterator) -> impl Iterator> { [INFO] [stdout] | ------------------------------ found this type parameter [INFO] [stdout] 91 | Lexer::new(input) [INFO] [stdout] | ---------- ^^^^^ expected `&str`, found type parameter `impl IntoIterator` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&str` [INFO] [stdout] found type parameter `impl IntoIterator` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/lib.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn new(input: &'a str) -> Self { [INFO] [stdout] | ^^^ -------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:71:32 [INFO] [stdout] | [INFO] [stdout] 71 | '(' => return Some(Ok(Token::LeftParen)), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^ expected `char`, found `Result, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `char` [INFO] [stdout] found enum `Result, _>` [INFO] [stdout] help: the type constructed contains `Result, _>` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:71:27 [INFO] [stdout] | [INFO] [stdout] 71 | '(' => return Some(Ok(Token::LeftParen)), [INFO] [stdout] | ^^^^^--------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/802c9b5f98c16ec9d24cdfd517f740f1f3df0e29/library/core/src/option.rs:580:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:91:16 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn lex(input: impl IntoIterator) -> impl Iterator> { [INFO] [stdout] | ------------------------------ found this type parameter [INFO] [stdout] 91 | Lexer::new(input) [INFO] [stdout] | ---------- ^^^^^ expected `&str`, found type parameter `impl IntoIterator` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&str` [INFO] [stdout] found type parameter `impl IntoIterator` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/lib.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn new(input: &'a str) -> Self { [INFO] [stdout] | ^^^ -------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:72:32 [INFO] [stdout] | [INFO] [stdout] 72 | ')' => return Some(Ok(Token::RightParen)), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^ expected `char`, found `Result, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `char` [INFO] [stdout] found enum `Result, _>` [INFO] [stdout] help: the type constructed contains `Result, _>` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:72:27 [INFO] [stdout] | [INFO] [stdout] 72 | ')' => return Some(Ok(Token::RightParen)), [INFO] [stdout] | ^^^^^---------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/802c9b5f98c16ec9d24cdfd517f740f1f3df0e29/library/core/src/option.rs:580:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:73:32 [INFO] [stdout] | [INFO] [stdout] 73 | '{' => return Some(Ok(Token::LeftBrace)), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^ expected `char`, found `Result, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `char` [INFO] [stdout] found enum `Result, _>` [INFO] [stdout] help: the type constructed contains `Result, _>` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:73:27 [INFO] [stdout] | [INFO] [stdout] 73 | '{' => return Some(Ok(Token::LeftBrace)), [INFO] [stdout] | ^^^^^--------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/802c9b5f98c16ec9d24cdfd517f740f1f3df0e29/library/core/src/option.rs:580:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:74:32 [INFO] [stdout] | [INFO] [stdout] 74 | '}' => return Some(Ok(Token::RightBrace)), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^ expected `char`, found `Result, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `char` [INFO] [stdout] found enum `Result, _>` [INFO] [stdout] help: the type constructed contains `Result, _>` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:74:27 [INFO] [stdout] | [INFO] [stdout] 74 | '}' => return Some(Ok(Token::RightBrace)), [INFO] [stdout] | ^^^^^---------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/802c9b5f98c16ec9d24cdfd517f740f1f3df0e29/library/core/src/option.rs:580:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:75:32 [INFO] [stdout] | [INFO] [stdout] 75 | ',' => return Some(Ok(Token::COMMA)), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ expected `char`, found `Result, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `char` [INFO] [stdout] found enum `Result, _>` [INFO] [stdout] help: the type constructed contains `Result, _>` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:75:27 [INFO] [stdout] | [INFO] [stdout] 75 | ',' => return Some(Ok(Token::COMMA)), [INFO] [stdout] | ^^^^^----------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/802c9b5f98c16ec9d24cdfd517f740f1f3df0e29/library/core/src/option.rs:580:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:76:32 [INFO] [stdout] | [INFO] [stdout] 76 | '-' => return Some(Ok(Token::MINUS)), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ expected `char`, found `Result, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `char` [INFO] [stdout] found enum `Result, _>` [INFO] [stdout] help: the type constructed contains `Result, _>` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:76:27 [INFO] [stdout] | [INFO] [stdout] 76 | '-' => return Some(Ok(Token::MINUS)), [INFO] [stdout] | ^^^^^----------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/802c9b5f98c16ec9d24cdfd517f740f1f3df0e29/library/core/src/option.rs:580:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:77:32 [INFO] [stdout] | [INFO] [stdout] 77 | '.' => return Some(Ok(Token::DOT)), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^ expected `char`, found `Result, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `char` [INFO] [stdout] found enum `Result, _>` [INFO] [stdout] help: the type constructed contains `Result, _>` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:77:27 [INFO] [stdout] | [INFO] [stdout] 77 | '.' => return Some(Ok(Token::DOT)), [INFO] [stdout] | ^^^^^--------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/802c9b5f98c16ec9d24cdfd517f740f1f3df0e29/library/core/src/option.rs:580:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:78:32 [INFO] [stdout] | [INFO] [stdout] 78 | '+' => return Some(Ok(Token::PLUS)), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^ expected `char`, found `Result, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `char` [INFO] [stdout] found enum `Result, _>` [INFO] [stdout] help: the type constructed contains `Result, _>` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:78:27 [INFO] [stdout] | [INFO] [stdout] 78 | '+' => return Some(Ok(Token::PLUS)), [INFO] [stdout] | ^^^^^---------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/802c9b5f98c16ec9d24cdfd517f740f1f3df0e29/library/core/src/option.rs:580:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:79:32 [INFO] [stdout] | [INFO] [stdout] 79 | ';' => return Some(Ok(Token::SEMICOLON)), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^ expected `char`, found `Result, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `char` [INFO] [stdout] found enum `Result, _>` [INFO] [stdout] help: the type constructed contains `Result, _>` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:79:27 [INFO] [stdout] | [INFO] [stdout] 79 | ';' => return Some(Ok(Token::SEMICOLON)), [INFO] [stdout] | ^^^^^--------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/802c9b5f98c16ec9d24cdfd517f740f1f3df0e29/library/core/src/option.rs:580:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:80:32 [INFO] [stdout] | [INFO] [stdout] 80 | '*' => return Some(Ok(Token::STAR)), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^ expected `char`, found `Result, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `char` [INFO] [stdout] found enum `Result, _>` [INFO] [stdout] help: the type constructed contains `Result, _>` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:80:27 [INFO] [stdout] | [INFO] [stdout] 80 | '*' => return Some(Ok(Token::STAR)), [INFO] [stdout] | ^^^^^---------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/802c9b5f98c16ec9d24cdfd517f740f1f3df0e29/library/core/src/option.rs:580:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:71:32 [INFO] [stdout] | [INFO] [stdout] 71 | '(' => return Some(Ok(Token::LeftParen)), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^ expected `char`, found `Result, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `char` [INFO] [stdout] found enum `Result, _>` [INFO] [stdout] help: the type constructed contains `Result, _>` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:71:27 [INFO] [stdout] | [INFO] [stdout] 71 | '(' => return Some(Ok(Token::LeftParen)), [INFO] [stdout] | ^^^^^--------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/802c9b5f98c16ec9d24cdfd517f740f1f3df0e29/library/core/src/option.rs:580:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:72:32 [INFO] [stdout] | [INFO] [stdout] 72 | ')' => return Some(Ok(Token::RightParen)), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^ expected `char`, found `Result, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `char` [INFO] [stdout] found enum `Result, _>` [INFO] [stdout] help: the type constructed contains `Result, _>` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:72:27 [INFO] [stdout] | [INFO] [stdout] 72 | ')' => return Some(Ok(Token::RightParen)), [INFO] [stdout] | ^^^^^---------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/802c9b5f98c16ec9d24cdfd517f740f1f3df0e29/library/core/src/option.rs:580:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:73:32 [INFO] [stdout] | [INFO] [stdout] 73 | '{' => return Some(Ok(Token::LeftBrace)), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^ expected `char`, found `Result, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `char` [INFO] [stdout] found enum `Result, _>` [INFO] [stdout] help: the type constructed contains `Result, _>` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:73:27 [INFO] [stdout] | [INFO] [stdout] 73 | '{' => return Some(Ok(Token::LeftBrace)), [INFO] [stdout] | ^^^^^--------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/802c9b5f98c16ec9d24cdfd517f740f1f3df0e29/library/core/src/option.rs:580:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:74:32 [INFO] [stdout] | [INFO] [stdout] 74 | '}' => return Some(Ok(Token::RightBrace)), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^^ expected `char`, found `Result, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `char` [INFO] [stdout] found enum `Result, _>` [INFO] [stdout] help: the type constructed contains `Result, _>` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:74:27 [INFO] [stdout] | [INFO] [stdout] 74 | '}' => return Some(Ok(Token::RightBrace)), [INFO] [stdout] | ^^^^^---------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/802c9b5f98c16ec9d24cdfd517f740f1f3df0e29/library/core/src/option.rs:580:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:75:32 [INFO] [stdout] | [INFO] [stdout] 75 | ',' => return Some(Ok(Token::COMMA)), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ expected `char`, found `Result, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `char` [INFO] [stdout] found enum `Result, _>` [INFO] [stdout] help: the type constructed contains `Result, _>` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:75:27 [INFO] [stdout] | [INFO] [stdout] 75 | ',' => return Some(Ok(Token::COMMA)), [INFO] [stdout] | ^^^^^----------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/802c9b5f98c16ec9d24cdfd517f740f1f3df0e29/library/core/src/option.rs:580:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:76:32 [INFO] [stdout] | [INFO] [stdout] 76 | '-' => return Some(Ok(Token::MINUS)), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ expected `char`, found `Result, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `char` [INFO] [stdout] found enum `Result, _>` [INFO] [stdout] help: the type constructed contains `Result, _>` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:76:27 [INFO] [stdout] | [INFO] [stdout] 76 | '-' => return Some(Ok(Token::MINUS)), [INFO] [stdout] | ^^^^^----------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/802c9b5f98c16ec9d24cdfd517f740f1f3df0e29/library/core/src/option.rs:580:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:77:32 [INFO] [stdout] | [INFO] [stdout] 77 | '.' => return Some(Ok(Token::DOT)), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^ expected `char`, found `Result, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `char` [INFO] [stdout] found enum `Result, _>` [INFO] [stdout] help: the type constructed contains `Result, _>` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:77:27 [INFO] [stdout] | [INFO] [stdout] 77 | '.' => return Some(Ok(Token::DOT)), [INFO] [stdout] | ^^^^^--------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/802c9b5f98c16ec9d24cdfd517f740f1f3df0e29/library/core/src/option.rs:580:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:78:32 [INFO] [stdout] | [INFO] [stdout] 78 | '+' => return Some(Ok(Token::PLUS)), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^ expected `char`, found `Result, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `char` [INFO] [stdout] found enum `Result, _>` [INFO] [stdout] help: the type constructed contains `Result, _>` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:78:27 [INFO] [stdout] | [INFO] [stdout] 78 | '+' => return Some(Ok(Token::PLUS)), [INFO] [stdout] | ^^^^^---------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/802c9b5f98c16ec9d24cdfd517f740f1f3df0e29/library/core/src/option.rs:580:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:79:32 [INFO] [stdout] | [INFO] [stdout] 79 | ';' => return Some(Ok(Token::SEMICOLON)), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^^^^^ expected `char`, found `Result, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `char` [INFO] [stdout] found enum `Result, _>` [INFO] [stdout] help: the type constructed contains `Result, _>` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:79:27 [INFO] [stdout] | [INFO] [stdout] 79 | ';' => return Some(Ok(Token::SEMICOLON)), [INFO] [stdout] | ^^^^^--------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/802c9b5f98c16ec9d24cdfd517f740f1f3df0e29/library/core/src/option.rs:580:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:80:32 [INFO] [stdout] | [INFO] [stdout] 80 | '*' => return Some(Ok(Token::STAR)), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^ expected `char`, found `Result, _>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `char` [INFO] [stdout] found enum `Result, _>` [INFO] [stdout] help: the type constructed contains `Result, _>` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:80:27 [INFO] [stdout] | [INFO] [stdout] 80 | '*' => return Some(Ok(Token::STAR)), [INFO] [stdout] | ^^^^^---------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/802c9b5f98c16ec9d24cdfd517f740f1f3df0e29/library/core/src/option.rs:580:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0106, E0308, E0412. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0106, E0308, E0412. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lox` (lib) due to 13 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `lox` (lib test) due to 13 previous errors [INFO] running `Command { std: "docker" "inspect" "aa06d7565e409bcdfd10ff9860f6fb08c5071b95d68a333856dd7cf1a0ba0bf2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa06d7565e409bcdfd10ff9860f6fb08c5071b95d68a333856dd7cf1a0ba0bf2", kill_on_drop: false }` [INFO] [stdout] aa06d7565e409bcdfd10ff9860f6fb08c5071b95d68a333856dd7cf1a0ba0bf2