[INFO] fetching crate nlcc 0.12.5... [INFO] testing nlcc-0.12.5 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] extracting crate nlcc 0.12.5 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate nlcc 0.12.5 [INFO] finished tweaking crates.io crate nlcc 0.12.5 [INFO] tweaked toml for crates.io crate nlcc 0.12.5 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate nlcc 0.12.5 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate nlcc 0.12.5 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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 55708e6ca9f2c521d7d4551c1b6c5797db1f7d5c8667a841f6e394f477a892e8 [INFO] running `Command { std: "docker" "start" "-a" "55708e6ca9f2c521d7d4551c1b6c5797db1f7d5c8667a841f6e394f477a892e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "55708e6ca9f2c521d7d4551c1b6c5797db1f7d5c8667a841f6e394f477a892e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55708e6ca9f2c521d7d4551c1b6c5797db1f7d5c8667a841f6e394f477a892e8", kill_on_drop: false }` [INFO] [stdout] 55708e6ca9f2c521d7d4551c1b6c5797db1f7d5c8667a841f6e394f477a892e8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 61652adb9b19c82647547eea3b4fe926d592d4c959520af757be2dcf4733a8dc [INFO] running `Command { std: "docker" "start" "-a" "61652adb9b19c82647547eea3b4fe926d592d4c959520af757be2dcf4733a8dc", kill_on_drop: false }` [INFO] [stderr] Compiling nlcc v0.12.5 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.47s [INFO] running `Command { std: "docker" "inspect" "61652adb9b19c82647547eea3b4fe926d592d4c959520af757be2dcf4733a8dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61652adb9b19c82647547eea3b4fe926d592d4c959520af757be2dcf4733a8dc", kill_on_drop: false }` [INFO] [stdout] 61652adb9b19c82647547eea3b4fe926d592d4c959520af757be2dcf4733a8dc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dbbaabf9eb210f0f6ab183825d322f6b0b2e1ae046262bcdef1e7883907a8171 [INFO] running `Command { std: "docker" "start" "-a" "dbbaabf9eb210f0f6ab183825d322f6b0b2e1ae046262bcdef1e7883907a8171", kill_on_drop: false }` [INFO] [stderr] Compiling nlcc v0.12.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/tacky/tacky_tests.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lexer/lexer_tests.rs:16:30 [INFO] [stdout] | [INFO] [stdout] 16 | assert_eq!(Ok(expected), lexed); [INFO] [stdout] | ^^^^^ expected `Result, _>`, found `Result, LexError>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result, _>` [INFO] [stdout] found enum `std::result::Result, lexer_error::LexError>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `lexer_error::LexError` doesn't implement `Debug` [INFO] [stdout] --> src/lexer/lexer_tests.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | assert_eq!(Ok(expected), lexed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Debug` is not implemented for `lexer_error::LexError` [INFO] [stdout] | [INFO] [stdout] = note: add `#[derive(Debug)]` to `lexer_error::LexError` or manually `impl Debug for lexer_error::LexError` [INFO] [stdout] help: the trait `Debug` is implemented for `std::result::Result` [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/result.rs:552:15 [INFO] [stdout] help: consider annotating `lexer_error::LexError` with `#[derive(Debug)]` [INFO] [stdout] --> src/lexer/lexer_error.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Debug)] [INFO] [stdout] 12 | pub struct LexError { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `UnexpectedChar` found for struct `lexer_error::LexError` in the current scope [INFO] [stdout] --> src/lexer/lexer_tests.rs:23:34 [INFO] [stdout] | [INFO] [stdout] 23 | let expected = Err(LexError::UnexpectedChar('@')); [INFO] [stdout] | ^^^^^^^^^^^^^^ associated item not found in `lexer_error::LexError` [INFO] [stdout] | [INFO] [stdout] ::: src/lexer/lexer_error.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct LexError { [INFO] [stdout] | ------------------- associated item `UnexpectedChar` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `lexer_error::LexError` doesn't implement `Debug` [INFO] [stdout] --> src/lexer/lexer_tests.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(expected, lexed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Debug` is not implemented for `lexer_error::LexError` [INFO] [stdout] | [INFO] [stdout] = note: add `#[derive(Debug)]` to `lexer_error::LexError` or manually `impl Debug for lexer_error::LexError` [INFO] [stdout] help: the trait `Debug` is implemented for `std::result::Result` [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/result.rs:552:15 [INFO] [stdout] help: consider annotating `lexer_error::LexError` with `#[derive(Debug)]` [INFO] [stdout] --> src/lexer/lexer_error.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Debug)] [INFO] [stdout] 12 | pub struct LexError { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `UnexpectedChar` found for struct `lexer_error::LexError` in the current scope [INFO] [stdout] --> src/lexer/lexer_tests.rs:31:34 [INFO] [stdout] | [INFO] [stdout] 31 | let expected = Err(LexError::UnexpectedChar('f')); [INFO] [stdout] | ^^^^^^^^^^^^^^ associated item not found in `lexer_error::LexError` [INFO] [stdout] | [INFO] [stdout] ::: src/lexer/lexer_error.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct LexError { [INFO] [stdout] | ------------------- associated item `UnexpectedChar` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `lexer_error::LexError` doesn't implement `Debug` [INFO] [stdout] --> src/lexer/lexer_tests.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | assert_eq!(expected, lexed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Debug` is not implemented for `lexer_error::LexError` [INFO] [stdout] | [INFO] [stdout] = note: add `#[derive(Debug)]` to `lexer_error::LexError` or manually `impl Debug for lexer_error::LexError` [INFO] [stdout] help: the trait `Debug` is implemented for `std::result::Result` [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/result.rs:552:15 [INFO] [stdout] help: consider annotating `lexer_error::LexError` with `#[derive(Debug)]` [INFO] [stdout] --> src/lexer/lexer_error.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Debug)] [INFO] [stdout] 12 | pub struct LexError { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lexer/lexer_tests.rs:65:30 [INFO] [stdout] | [INFO] [stdout] 65 | assert_eq!(Ok(expected), lexed); [INFO] [stdout] | ^^^^^ expected `Result, _>`, found `Result, LexError>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result, _>` [INFO] [stdout] found enum `std::result::Result, lexer_error::LexError>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `lexer_error::LexError` doesn't implement `Debug` [INFO] [stdout] --> src/lexer/lexer_tests.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | assert_eq!(Ok(expected), lexed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Debug` is not implemented for `lexer_error::LexError` [INFO] [stdout] | [INFO] [stdout] = note: add `#[derive(Debug)]` to `lexer_error::LexError` or manually `impl Debug for lexer_error::LexError` [INFO] [stdout] help: the trait `Debug` is implemented for `std::result::Result` [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/result.rs:552:15 [INFO] [stdout] help: consider annotating `lexer_error::LexError` with `#[derive(Debug)]` [INFO] [stdout] --> src/lexer/lexer_error.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Debug)] [INFO] [stdout] 12 | pub struct LexError { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `lexer_error::LexError` doesn't implement `Debug` [INFO] [stdout] --> src/parser/parser_tests.rs:7:35 [INFO] [stdout] | [INFO] [stdout] 7 | let tokens = lexer::lex(&exp).unwrap(); [INFO] [stdout] | ^^^^^^ the trait `Debug` is not implemented for `lexer_error::LexError` [INFO] [stdout] | [INFO] [stdout] = note: add `#[derive(Debug)]` to `lexer_error::LexError` or manually `impl Debug for lexer_error::LexError` [INFO] [stdout] note: required by a bound in `std::result::Result::::unwrap` [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/result.rs:1227:4 [INFO] [stdout] help: consider annotating `lexer_error::LexError` with `#[derive(Debug)]` [INFO] [stdout] --> src/lexer/lexer_error.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 + #[derive(Debug)] [INFO] [stdout] 12 | pub struct LexError { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Binary` found for enum `ast::Exp` in the current scope [INFO] [stdout] --> src/parser/parser_tests.rs:12:25 [INFO] [stdout] | [INFO] [stdout] 12 | let expected = Exp::Binary( [INFO] [stdout] | ^^^^^^ variant or associated item not found in `ast::Exp` [INFO] [stdout] | [INFO] [stdout] ::: src/ast.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub enum Exp { [INFO] [stdout] | ------------ variant or associated item `Binary` not found for this enum [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `ast::Exp` consider using one of the following associated functions: [INFO] [stdout] ast::Exp::conditional [INFO] [stdout] ast::Exp::cast [INFO] [stdout] ast::Exp::binary [INFO] [stdout] ast::Exp::unary [INFO] [stdout] and 6 others [INFO] [stdout] --> src/ast.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn conditional(c: ConditionalExp) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | pub fn cast(t: Type, e: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn binary(op: AstBinaryOp, src: Box, dst: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn unary(op: AstUnaryOp, e: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `binary` with a similar name [INFO] [stdout] | [INFO] [stdout] 12 - let expected = Exp::Binary( [INFO] [stdout] 12 + let expected = Exp::binary( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Binary` found for enum `ast::Exp` in the current scope [INFO] [stdout] --> src/parser/parser_tests.rs:14:23 [INFO] [stdout] | [INFO] [stdout] 14 | Box::new(Exp::Binary( [INFO] [stdout] | ^^^^^^ variant or associated item not found in `ast::Exp` [INFO] [stdout] | [INFO] [stdout] ::: src/ast.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub enum Exp { [INFO] [stdout] | ------------ variant or associated item `Binary` not found for this enum [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `ast::Exp` consider using one of the following associated functions: [INFO] [stdout] ast::Exp::conditional [INFO] [stdout] ast::Exp::cast [INFO] [stdout] ast::Exp::binary [INFO] [stdout] ast::Exp::unary [INFO] [stdout] and 6 others [INFO] [stdout] --> src/ast.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn conditional(c: ConditionalExp) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | pub fn cast(t: Type, e: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn binary(op: AstBinaryOp, src: Box, dst: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn unary(op: AstUnaryOp, e: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `binary` with a similar name [INFO] [stdout] | [INFO] [stdout] 14 - Box::new(Exp::Binary( [INFO] [stdout] 14 + Box::new(Exp::binary( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Constant` found for enum `ast::Exp` in the current scope [INFO] [stdout] --> src/parser/parser_tests.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | Box::new(Exp::Constant(1)), [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `ast::Exp` [INFO] [stdout] | [INFO] [stdout] ::: src/ast.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub enum Exp { [INFO] [stdout] | ------------ variant or associated item `Constant` not found for this enum [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `ast::Exp` consider using one of the following associated functions: [INFO] [stdout] ast::Exp::conditional [INFO] [stdout] ast::Exp::cast [INFO] [stdout] ast::Exp::binary [INFO] [stdout] ast::Exp::unary [INFO] [stdout] and 6 others [INFO] [stdout] --> src/ast.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn conditional(c: ConditionalExp) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | pub fn cast(t: Type, e: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn binary(op: AstBinaryOp, src: Box, dst: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn unary(op: AstUnaryOp, e: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `constant` with a similar name (notice the capitalization) [INFO] [stdout] | [INFO] [stdout] 16 - Box::new(Exp::Constant(1)), [INFO] [stdout] 16 + Box::new(Exp::constant(1)), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Constant` found for enum `ast::Exp` in the current scope [INFO] [stdout] --> src/parser/parser_tests.rs:17:27 [INFO] [stdout] | [INFO] [stdout] 17 | Box::new(Exp::Constant(2)), [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `ast::Exp` [INFO] [stdout] | [INFO] [stdout] ::: src/ast.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub enum Exp { [INFO] [stdout] | ------------ variant or associated item `Constant` not found for this enum [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `ast::Exp` consider using one of the following associated functions: [INFO] [stdout] ast::Exp::conditional [INFO] [stdout] ast::Exp::cast [INFO] [stdout] ast::Exp::binary [INFO] [stdout] ast::Exp::unary [INFO] [stdout] and 6 others [INFO] [stdout] --> src/ast.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn conditional(c: ConditionalExp) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | pub fn cast(t: Type, e: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn binary(op: AstBinaryOp, src: Box, dst: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn unary(op: AstUnaryOp, e: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `constant` with a similar name (notice the capitalization) [INFO] [stdout] | [INFO] [stdout] 17 - Box::new(Exp::Constant(2)), [INFO] [stdout] 17 + Box::new(Exp::constant(2)), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Binary` found for enum `ast::Exp` in the current scope [INFO] [stdout] --> src/parser/parser_tests.rs:19:23 [INFO] [stdout] | [INFO] [stdout] 19 | Box::new(Exp::Binary( [INFO] [stdout] | ^^^^^^ variant or associated item not found in `ast::Exp` [INFO] [stdout] | [INFO] [stdout] ::: src/ast.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub enum Exp { [INFO] [stdout] | ------------ variant or associated item `Binary` not found for this enum [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `ast::Exp` consider using one of the following associated functions: [INFO] [stdout] ast::Exp::conditional [INFO] [stdout] ast::Exp::cast [INFO] [stdout] ast::Exp::binary [INFO] [stdout] ast::Exp::unary [INFO] [stdout] and 6 others [INFO] [stdout] --> src/ast.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn conditional(c: ConditionalExp) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | pub fn cast(t: Type, e: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn binary(op: AstBinaryOp, src: Box, dst: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn unary(op: AstUnaryOp, e: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `binary` with a similar name [INFO] [stdout] | [INFO] [stdout] 19 - Box::new(Exp::Binary( [INFO] [stdout] 19 + Box::new(Exp::binary( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Constant` found for enum `ast::Exp` in the current scope [INFO] [stdout] --> src/parser/parser_tests.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 21 | Box::new(Exp::Constant(3)), [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `ast::Exp` [INFO] [stdout] | [INFO] [stdout] ::: src/ast.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub enum Exp { [INFO] [stdout] | ------------ variant or associated item `Constant` not found for this enum [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `ast::Exp` consider using one of the following associated functions: [INFO] [stdout] ast::Exp::conditional [INFO] [stdout] ast::Exp::cast [INFO] [stdout] ast::Exp::binary [INFO] [stdout] ast::Exp::unary [INFO] [stdout] and 6 others [INFO] [stdout] --> src/ast.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn conditional(c: ConditionalExp) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | pub fn cast(t: Type, e: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn binary(op: AstBinaryOp, src: Box, dst: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn unary(op: AstUnaryOp, e: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `constant` with a similar name (notice the capitalization) [INFO] [stdout] | [INFO] [stdout] 21 - Box::new(Exp::Constant(3)), [INFO] [stdout] 21 + Box::new(Exp::constant(3)), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Binary` found for enum `ast::Exp` in the current scope [INFO] [stdout] --> src/parser/parser_tests.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | Box::new(Exp::Binary( [INFO] [stdout] | ^^^^^^ variant or associated item not found in `ast::Exp` [INFO] [stdout] | [INFO] [stdout] ::: src/ast.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub enum Exp { [INFO] [stdout] | ------------ variant or associated item `Binary` not found for this enum [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `ast::Exp` consider using one of the following associated functions: [INFO] [stdout] ast::Exp::conditional [INFO] [stdout] ast::Exp::cast [INFO] [stdout] ast::Exp::binary [INFO] [stdout] ast::Exp::unary [INFO] [stdout] and 6 others [INFO] [stdout] --> src/ast.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn conditional(c: ConditionalExp) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | pub fn cast(t: Type, e: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn binary(op: AstBinaryOp, src: Box, dst: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn unary(op: AstUnaryOp, e: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `binary` with a similar name [INFO] [stdout] | [INFO] [stdout] 22 - Box::new(Exp::Binary( [INFO] [stdout] 22 + Box::new(Exp::binary( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Constant` found for enum `ast::Exp` in the current scope [INFO] [stdout] --> src/parser/parser_tests.rs:24:31 [INFO] [stdout] | [INFO] [stdout] 24 | Box::new(Exp::Constant(4)), [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `ast::Exp` [INFO] [stdout] | [INFO] [stdout] ::: src/ast.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub enum Exp { [INFO] [stdout] | ------------ variant or associated item `Constant` not found for this enum [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `ast::Exp` consider using one of the following associated functions: [INFO] [stdout] ast::Exp::conditional [INFO] [stdout] ast::Exp::cast [INFO] [stdout] ast::Exp::binary [INFO] [stdout] ast::Exp::unary [INFO] [stdout] and 6 others [INFO] [stdout] --> src/ast.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn conditional(c: ConditionalExp) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | pub fn cast(t: Type, e: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn binary(op: AstBinaryOp, src: Box, dst: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn unary(op: AstUnaryOp, e: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `constant` with a similar name (notice the capitalization) [INFO] [stdout] | [INFO] [stdout] 24 - Box::new(Exp::Constant(4)), [INFO] [stdout] 24 + Box::new(Exp::constant(4)), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Constant` found for enum `ast::Exp` in the current scope [INFO] [stdout] --> src/parser/parser_tests.rs:25:31 [INFO] [stdout] | [INFO] [stdout] 25 | Box::new(Exp::Constant(5)), [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `ast::Exp` [INFO] [stdout] | [INFO] [stdout] ::: src/ast.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub enum Exp { [INFO] [stdout] | ------------ variant or associated item `Constant` not found for this enum [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `ast::Exp` consider using one of the following associated functions: [INFO] [stdout] ast::Exp::conditional [INFO] [stdout] ast::Exp::cast [INFO] [stdout] ast::Exp::binary [INFO] [stdout] ast::Exp::unary [INFO] [stdout] and 6 others [INFO] [stdout] --> src/ast.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn conditional(c: ConditionalExp) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | pub fn cast(t: Type, e: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn binary(op: AstBinaryOp, src: Box, dst: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn unary(op: AstUnaryOp, e: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `constant` with a similar name (notice the capitalization) [INFO] [stdout] | [INFO] [stdout] 25 - Box::new(Exp::Constant(5)), [INFO] [stdout] 25 + Box::new(Exp::constant(5)), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `nlcc` (lib test) due to 18 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "dbbaabf9eb210f0f6ab183825d322f6b0b2e1ae046262bcdef1e7883907a8171", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbbaabf9eb210f0f6ab183825d322f6b0b2e1ae046262bcdef1e7883907a8171", kill_on_drop: false }` [INFO] [stdout] dbbaabf9eb210f0f6ab183825d322f6b0b2e1ae046262bcdef1e7883907a8171