[INFO] cloning repository https://github.com/Dreae/sourcepawn-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Dreae/sourcepawn-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDreae%2Fsourcepawn-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDreae%2Fsourcepawn-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 20d42d328a396b53f2b55dc2918987cb1545156c [INFO] building Dreae/sourcepawn-rs against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDreae%2Fsourcepawn-rs" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Dreae/sourcepawn-rs on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Dreae/sourcepawn-rs [INFO] finished tweaking git repo https://github.com/Dreae/sourcepawn-rs [INFO] tweaked toml for git repo https://github.com/Dreae/sourcepawn-rs written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Dreae/sourcepawn-rs 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6b2e54321efd760efd8aa71e5a5ca1241983c768cd733a430d7311bd9bea471a [INFO] running `Command { std: "docker" "start" "-a" "6b2e54321efd760efd8aa71e5a5ca1241983c768cd733a430d7311bd9bea471a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6b2e54321efd760efd8aa71e5a5ca1241983c768cd733a430d7311bd9bea471a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b2e54321efd760efd8aa71e5a5ca1241983c768cd733a430d7311bd9bea471a", kill_on_drop: false }` [INFO] [stdout] 6b2e54321efd760efd8aa71e5a5ca1241983c768cd733a430d7311bd9bea471a [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bc19a753cd0983cb0ed62686d870f5c7dc040858b37f56776767c723e2f36eeb [INFO] running `Command { std: "docker" "start" "-a" "bc19a753cd0983cb0ed62686d870f5c7dc040858b37f56776767c723e2f36eeb", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling bitflags v1.1.0 [INFO] [stderr] Compiling unicode-width v0.1.6 [INFO] [stderr] Compiling sourcepawn-preprocessor v0.1.0 (/opt/rustwide/workdir/sourcepawn-preprocessor) [INFO] [stderr] Compiling sourcepawn-lexer v0.1.0 (/opt/rustwide/workdir/sourcepawn-lexer) [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling sourcepawn-parser v0.1.0 (/opt/rustwide/workdir/sourcepawn-parser) [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> sourcepawn-parser/src/lib.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 32 | / loop { [INFO] [stdout] 33 | | match self.top_level_statement() { [INFO] [stdout] 34 | | Ok(statement) => statements.push(statement), [INFO] [stdout] 35 | | Err(e) => return Err(e) [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 38 | [INFO] [stdout] 39 | / Ok(Program { [INFO] [stdout] 40 | | statements [INFO] [stdout] 41 | | }) [INFO] [stdout] | |__________^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tokens` and `current_pos` are never read [INFO] [stdout] --> sourcepawn-parser/src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | struct Parser<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 16 | tokens: Peekable>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | current_pos: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `function_declaration`, `function_definition`, `consume_whitespace`, `next`, and `peek` are never used [INFO] [stdout] --> sourcepawn-parser/src/lib.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl <'a> Parser<'a> { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | fn function_declaration(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn function_definition(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn consume_whitespace(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | fn next(&mut self) -> &Token { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | fn peek(&mut self) -> Option<&&Token> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `statements` is never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Program { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 4 | pub statements: Vec [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Lit { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 8 | kind: LitKind [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Int`, `Float`, `Str`, `Bool`, and `Char` are never constructed [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum LitKind { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 12 | Int(i32), [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | Float(f32), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | Str(Symbol), [INFO] [stdout] | ^^^ [INFO] [stdout] 15 | Bool(bool), [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | Char(char) [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `statements` and `params` are never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Function { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 20 | statements: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | params: Vec [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `params` is never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct FunctionDecl { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 25 | params: Vec [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct TopLevelStatement { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 29 | kind: TopLevelStatementKind [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `FunctionDecl`, `Function`, and `Local` are never constructed [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum TopLevelStatementKind { [INFO] [stdout] | --------------------- variants in this enum [INFO] [stdout] 33 | FunctionDecl(FunctionDecl), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 34 | Function(Function), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 35 | Local(Local), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `ty`, and `default` are never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Param { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 39 | name: Symbol, [INFO] [stdout] | ^^^^ [INFO] [stdout] 40 | ty: Symbol, [INFO] [stdout] | ^^ [INFO] [stdout] 41 | default: Option [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct Statement { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 45 | kind: StatementKind [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Local` and `Expression` are never constructed [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 48 | pub enum StatementKind { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 49 | Local(Local), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 50 | Expression(Expression) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `name` are never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Local { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 58 | kind: LocalKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 59 | name: Symbol [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Decl` and `Init` are never constructed [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 62 | pub enum LocalKind { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 63 | Decl, [INFO] [stdout] | ^^^^ [INFO] [stdout] 64 | Init(Expression) [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `message` is never read [INFO] [stdout] --> sourcepawn-parser/src/error.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct ParserError { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 2 | pub message: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> sourcepawn-parser/src/lib.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | Parser::new(tokens).parse(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 95 | let _ = Parser::new(tokens).parse(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling atty v0.2.13 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling sourcepawn-cli v0.1.0 (/opt/rustwide/workdir/sourcepawn-cli) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.32s [INFO] running `Command { std: "docker" "inspect" "bc19a753cd0983cb0ed62686d870f5c7dc040858b37f56776767c723e2f36eeb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc19a753cd0983cb0ed62686d870f5c7dc040858b37f56776767c723e2f36eeb", kill_on_drop: false }` [INFO] [stdout] bc19a753cd0983cb0ed62686d870f5c7dc040858b37f56776767c723e2f36eeb [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b872cbda59c540b289b9993bc8f29e2e18445c384360e2ee54243c0f43c308af [INFO] running `Command { std: "docker" "start" "-a" "b872cbda59c540b289b9993bc8f29e2e18445c384360e2ee54243c0f43c308af", kill_on_drop: false }` [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> sourcepawn-parser/src/lib.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 32 | / loop { [INFO] [stdout] 33 | | match self.top_level_statement() { [INFO] [stdout] 34 | | Ok(statement) => statements.push(statement), [INFO] [stdout] 35 | | Err(e) => return Err(e) [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 38 | [INFO] [stdout] 39 | / Ok(Program { [INFO] [stdout] 40 | | statements [INFO] [stdout] 41 | | }) [INFO] [stdout] | |__________^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tokens` and `current_pos` are never read [INFO] [stdout] --> sourcepawn-parser/src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | struct Parser<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 16 | tokens: Peekable>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | current_pos: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `function_declaration`, `function_definition`, `consume_whitespace`, `next`, and `peek` are never used [INFO] [stdout] --> sourcepawn-parser/src/lib.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl <'a> Parser<'a> { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | fn function_declaration(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn function_definition(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn consume_whitespace(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | fn next(&mut self) -> &Token { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | fn peek(&mut self) -> Option<&&Token> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling sourcepawn-parser v0.1.0 (/opt/rustwide/workdir/sourcepawn-parser) [INFO] [stdout] warning: field `statements` is never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Program { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 4 | pub statements: Vec [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling sourcepawn-lexer v0.1.0 (/opt/rustwide/workdir/sourcepawn-lexer) [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Lit { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 8 | kind: LitKind [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Int`, `Float`, `Str`, `Bool`, and `Char` are never constructed [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum LitKind { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 12 | Int(i32), [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | Float(f32), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | Str(Symbol), [INFO] [stdout] | ^^^ [INFO] [stdout] 15 | Bool(bool), [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | Char(char) [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `statements` and `params` are never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Function { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 20 | statements: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | params: Vec [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling sourcepawn-preprocessor v0.1.0 (/opt/rustwide/workdir/sourcepawn-preprocessor) [INFO] [stdout] warning: field `params` is never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct FunctionDecl { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 25 | params: Vec [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct TopLevelStatement { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 29 | kind: TopLevelStatementKind [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `FunctionDecl`, `Function`, and `Local` are never constructed [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum TopLevelStatementKind { [INFO] [stdout] | --------------------- variants in this enum [INFO] [stdout] 33 | FunctionDecl(FunctionDecl), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 34 | Function(Function), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 35 | Local(Local), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling sourcepawn-cli v0.1.0 (/opt/rustwide/workdir/sourcepawn-cli) [INFO] [stdout] warning: fields `name`, `ty`, and `default` are never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Param { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 39 | name: Symbol, [INFO] [stdout] | ^^^^ [INFO] [stdout] 40 | ty: Symbol, [INFO] [stdout] | ^^ [INFO] [stdout] 41 | default: Option [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct Statement { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 45 | kind: StatementKind [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Local` and `Expression` are never constructed [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 48 | pub enum StatementKind { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 49 | Local(Local), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 50 | Expression(Expression) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `name` are never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Local { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 58 | kind: LocalKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 59 | name: Symbol [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Decl` and `Init` are never constructed [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 62 | pub enum LocalKind { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 63 | Decl, [INFO] [stdout] | ^^^^ [INFO] [stdout] 64 | Init(Expression) [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `message` is never read [INFO] [stdout] --> sourcepawn-parser/src/error.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct ParserError { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 2 | pub message: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> sourcepawn-parser/src/lib.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | Parser::new(tokens).parse(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 95 | let _ = Parser::new(tokens).parse(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> sourcepawn-parser/src/lib.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 32 | / loop { [INFO] [stdout] 33 | | match self.top_level_statement() { [INFO] [stdout] 34 | | Ok(statement) => statements.push(statement), [INFO] [stdout] 35 | | Err(e) => return Err(e) [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 38 | [INFO] [stdout] 39 | / Ok(Program { [INFO] [stdout] 40 | | statements [INFO] [stdout] 41 | | }) [INFO] [stdout] | |__________^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tokens` and `current_pos` are never read [INFO] [stdout] --> sourcepawn-parser/src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | struct Parser<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 16 | tokens: Peekable>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | current_pos: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `function_declaration`, `function_definition`, `consume_whitespace`, `next`, and `peek` are never used [INFO] [stdout] --> sourcepawn-parser/src/lib.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl <'a> Parser<'a> { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | fn function_declaration(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn function_definition(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn consume_whitespace(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | fn next(&mut self) -> &Token { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | fn peek(&mut self) -> Option<&&Token> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `statements` is never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Program { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 4 | pub statements: Vec [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Lit { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 8 | kind: LitKind [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Int`, `Float`, `Str`, `Bool`, and `Char` are never constructed [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum LitKind { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 12 | Int(i32), [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | Float(f32), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | Str(Symbol), [INFO] [stdout] | ^^^ [INFO] [stdout] 15 | Bool(bool), [INFO] [stdout] | ^^^^ [INFO] [stdout] 16 | Char(char) [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `statements` and `params` are never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Function { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 20 | statements: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | params: Vec [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `params` is never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct FunctionDecl { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 25 | params: Vec [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct TopLevelStatement { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 29 | kind: TopLevelStatementKind [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `FunctionDecl`, `Function`, and `Local` are never constructed [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum TopLevelStatementKind { [INFO] [stdout] | --------------------- variants in this enum [INFO] [stdout] 33 | FunctionDecl(FunctionDecl), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 34 | Function(Function), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 35 | Local(Local), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `ty`, and `default` are never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Param { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 39 | name: Symbol, [INFO] [stdout] | ^^^^ [INFO] [stdout] 40 | ty: Symbol, [INFO] [stdout] | ^^ [INFO] [stdout] 41 | default: Option [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct Statement { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 45 | kind: StatementKind [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Local` and `Expression` are never constructed [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 48 | pub enum StatementKind { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 49 | Local(Local), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 50 | Expression(Expression) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `name` are never read [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 57 | pub struct Local { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 58 | kind: LocalKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 59 | name: Symbol [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Decl` and `Init` are never constructed [INFO] [stdout] --> sourcepawn-parser/src/ast.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 62 | pub enum LocalKind { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 63 | Decl, [INFO] [stdout] | ^^^^ [INFO] [stdout] 64 | Init(Expression) [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `message` is never read [INFO] [stdout] --> sourcepawn-parser/src/error.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct ParserError { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 2 | pub message: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> sourcepawn-parser/src/lib.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | Parser::new(tokens).parse(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 95 | let _ = Parser::new(tokens).parse(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] running `Command { std: "docker" "inspect" "b872cbda59c540b289b9993bc8f29e2e18445c384360e2ee54243c0f43c308af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b872cbda59c540b289b9993bc8f29e2e18445c384360e2ee54243c0f43c308af", kill_on_drop: false }` [INFO] [stdout] b872cbda59c540b289b9993bc8f29e2e18445c384360e2ee54243c0f43c308af