[INFO] cloning repository https://github.com/bbarnickel/oas-lint-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bbarnickel/oas-lint-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbbarnickel%2Foas-lint-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbbarnickel%2Foas-lint-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c2e14be1901b4150792618f84ee184658d1340d1 [INFO] testing bbarnickel/oas-lint-rs against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbbarnickel%2Foas-lint-rs" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bbarnickel/oas-lint-rs on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/bbarnickel/oas-lint-rs [INFO] finished tweaking git repo https://github.com/bbarnickel/oas-lint-rs [INFO] tweaked toml for git repo https://github.com/bbarnickel/oas-lint-rs written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/bbarnickel/oas-lint-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 57d16c9a064180096745a25a6a9a94c1e47ffb7172c558adad679bf2f4b68052 [INFO] running `Command { std: "docker" "start" "-a" "57d16c9a064180096745a25a6a9a94c1e47ffb7172c558adad679bf2f4b68052", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "57d16c9a064180096745a25a6a9a94c1e47ffb7172c558adad679bf2f4b68052", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57d16c9a064180096745a25a6a9a94c1e47ffb7172c558adad679bf2f4b68052", kill_on_drop: false }` [INFO] [stdout] 57d16c9a064180096745a25a6a9a94c1e47ffb7172c558adad679bf2f4b68052 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fd5e7a2c41abea973db7ec38b7ac0458158b1e0c7a13bcd3289025198a3bb0aa [INFO] running `Command { std: "docker" "start" "-a" "fd5e7a2c41abea973db7ec38b7ac0458158b1e0c7a13bcd3289025198a3bb0aa", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling oas-lint-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `cc` [INFO] [stdout] --> src/parser/scanner.rs:56:18 [INFO] [stdout] | [INFO] [stdout] 56 | Some(cc) => (self.peeked_char.take(), self.stream.get_position()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/scanner.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let mut result = Self { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Stream` [INFO] [stdout] --> src/parser/stream.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) struct Stream<'a> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/parser/stream.rs:15:19 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) fn new(data: &'a str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_position` [INFO] [stdout] --> src/parser/stream.rs:26:19 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn get_position(&self) -> Position { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next` [INFO] [stdout] --> src/parser/stream.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 34 | pub(crate) fn next(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_internal` [INFO] [stdout] --> src/parser/stream.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | fn next_internal(&mut self) -> Option<(usize, char)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_pos` [INFO] [stdout] --> src/parser/stream.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | fn update_pos(&mut self, offset: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/parser/scanner.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn new(pos: Position, content: TokenType<'a>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Spaces` [INFO] [stdout] --> src/parser/scanner.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | Spaces(usize), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TokenType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser/scanner.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `QuestionMark` [INFO] [stdout] --> src/parser/scanner.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | QuestionMark, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TokenType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser/scanner.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Dash` [INFO] [stdout] --> src/parser/scanner.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | Dash, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TokenType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser/scanner.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Newline` [INFO] [stdout] --> src/parser/scanner.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | Newline, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TokenType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser/scanner.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Colon` [INFO] [stdout] --> src/parser/scanner.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | Colon, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TokenType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser/scanner.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `LeftBraket` [INFO] [stdout] --> src/parser/scanner.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | LeftBraket, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TokenType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser/scanner.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `RightBraket` [INFO] [stdout] --> src/parser/scanner.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | RightBraket, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TokenType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser/scanner.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `LeftSqBraket` [INFO] [stdout] --> src/parser/scanner.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | LeftSqBraket, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TokenType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser/scanner.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `RightSqBraket` [INFO] [stdout] --> src/parser/scanner.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | RightSqBraket, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TokenType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser/scanner.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `DoubleQuote` [INFO] [stdout] --> src/parser/scanner.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | DoubleQuote, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TokenType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser/scanner.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `SingleQuote` [INFO] [stdout] --> src/parser/scanner.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | SingleQuote, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TokenType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser/scanner.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `String` [INFO] [stdout] --> src/parser/scanner.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | String(&'a str), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TokenType` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/parser/scanner.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Scanner` [INFO] [stdout] --> src/parser/scanner.rs:33:19 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) struct Scanner<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/parser/scanner.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 42 | pub(crate) fn new(data: &'a str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next` [INFO] [stdout] --> src/parser/scanner.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) fn next(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_indent` [INFO] [stdout] --> src/parser/scanner.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | fn create_indent(&mut self, pos: Position) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_token` [INFO] [stdout] --> src/parser/scanner.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | fn create_token(&self, pos: Position, content: TokenType<'a>) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.04s [INFO] running `Command { std: "docker" "inspect" "fd5e7a2c41abea973db7ec38b7ac0458158b1e0c7a13bcd3289025198a3bb0aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd5e7a2c41abea973db7ec38b7ac0458158b1e0c7a13bcd3289025198a3bb0aa", kill_on_drop: false }` [INFO] [stdout] fd5e7a2c41abea973db7ec38b7ac0458158b1e0c7a13bcd3289025198a3bb0aa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 968ceaad419d8dffd0861e49e6036c3b8e556a2ed7314fdc7045974d4e6d04e8 [INFO] running `Command { std: "docker" "start" "-a" "968ceaad419d8dffd0861e49e6036c3b8e556a2ed7314fdc7045974d4e6d04e8", kill_on_drop: false }` [INFO] [stderr] Compiling oas-lint-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `cc` [INFO] [stdout] --> src/parser/scanner.rs:56:18 [INFO] [stdout] | [INFO] [stdout] 56 | Some(cc) => (self.peeked_char.take(), self.stream.get_position()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/scanner.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let mut result = Self { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `data` [INFO] [stdout] --> src/parser/scanner.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | data: &'a str, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.36s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/oas_lint_rs-804e683b20a4cb5a) [INFO] running `Command { std: "docker" "inspect" "968ceaad419d8dffd0861e49e6036c3b8e556a2ed7314fdc7045974d4e6d04e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "968ceaad419d8dffd0861e49e6036c3b8e556a2ed7314fdc7045974d4e6d04e8", kill_on_drop: false }` [INFO] [stdout] 968ceaad419d8dffd0861e49e6036c3b8e556a2ed7314fdc7045974d4e6d04e8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 21661fc0f8a6c0eea3b064878932c7581d421146da7d44de1e743ad938d42a1e [INFO] running `Command { std: "docker" "start" "-a" "21661fc0f8a6c0eea3b064878932c7581d421146da7d44de1e743ad938d42a1e", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused variable: `cc` [INFO] [stderr] --> src/parser/scanner.rs:56:18 [INFO] [stderr] | [INFO] [stderr] 56 | Some(cc) => (self.peeked_char.take(), self.stream.get_position()), [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_cc` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/parser/scanner.rs:43:13 [INFO] [stderr] | [INFO] [stderr] 43 | let mut result = Self { [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `data` [INFO] [stderr] --> src/parser/scanner.rs:34:5 [INFO] [stderr] | [INFO] [stderr] 34 | data: &'a str, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `oas-lint-rs` (bin "oas-lint-rs" test) generated 3 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/oas_lint_rs-804e683b20a4cb5a) [INFO] [stdout] [INFO] [stdout] running 15 tests [INFO] [stdout] test parser::scanner::test_scanner::test_empty ... ok [INFO] [stdout] test parser::stream::test_stream::test_emoji_end ... ok [INFO] [stdout] test parser::stream::test_stream::test_emoji_n_emoji ... ok [INFO] [stdout] test parser::stream::test_stream::test_emoji_r_emoji ... ok [INFO] [stdout] test parser::stream::test_stream::test_emoji_rn_emoji ... ok [INFO] [stdout] test parser::stream::test_stream::test_emoji_start ... ok [INFO] [stdout] test parser::stream::test_stream::test_empty ... ok [INFO] [stdout] test parser::stream::test_stream::test_single_word ... ok [INFO] [stdout] test parser::stream::test_stream::test_single_word_and_r ... ok [INFO] [stdout] test parser::stream::test_stream::test_single_word_and_n ... ok [INFO] [stdout] test parser::stream::test_stream::test_single_word_and_rn ... ok [INFO] [stdout] test parser::stream::test_stream::test_word_n_word ... ok [INFO] [stdout] test parser::stream::test_stream::test_word_r_word ... ok [INFO] [stdout] test parser::stream::test_stream::test_word_rn_word ... ok [INFO] [stdout] test parser::scanner::test_scanner::test_string ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- parser::scanner::test_scanner::test_string stdout ---- [INFO] [stdout] thread 'parser::scanner::test_scanner::test_string' panicked at 'assertion failed: token.is_some()', src/parser/scanner.rs:146:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x560daacc72fd - std::backtrace_rs::backtrace::libunwind::trace::ha359b7f0090e2792 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x560daacc72fd - std::backtrace_rs::backtrace::trace_unsynchronized::h0584631f25c1d70e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x560daacc72fd - std::sys_common::backtrace::_print_fmt::hdadffd97d279ff14 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x560daacc72fd - ::fmt::h26f189e611080a74 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x560daace9c0c - core::fmt::write::hfb5d11dfe037e8b7 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/fmt/mod.rs:1194:17 [INFO] [stdout] 5: 0x560daacc3cc1 - std::io::Write::write_fmt::h6a24ec64406df9e2 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/io/mod.rs:1655:15 [INFO] [stdout] 6: 0x560daacc9045 - std::sys_common::backtrace::_print::h7a0e44402913ba60 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x560daacc9045 - std::sys_common::backtrace::print::h9767dc455a84e728 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x560daacc9045 - std::panicking::default_hook::{{closure}}::h60afd6c8b12988ad [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x560daacc8d34 - std::panicking::default_hook::ha7b9bac6813f9d21 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x560daacc9592 - std::panicking::rust_panic_with_hook::h7b117a162a6f8664 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x560daacc9439 - std::panicking::begin_panic_handler::{{closure}}::h346750923c608600 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:586:13 [INFO] [stdout] 12: 0x560daacc77b4 - std::sys_common::backtrace::__rust_end_short_backtrace::h768c56c6a0c055c0 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x560daacc91a9 - rust_begin_unwind [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x560daac683d3 - core::panicking::panic_fmt::h5c41cb2fa118fdbc [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x560daac6829d - core::panicking::panic::h19a70c01bbabd538 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panicking.rs:48:5 [INFO] [stdout] 16: 0x560daac6da03 - oas_lint_rs::parser::scanner::test_scanner::assert_token::h1e07efa41a0847b2 [INFO] [stdout] at /opt/rustwide/workdir/src/parser/scanner.rs:146:9 [INFO] [stdout] 17: 0x560daac6dd10 - oas_lint_rs::parser::scanner::test_scanner::test_string::h59bb40788a36628d [INFO] [stdout] at /opt/rustwide/workdir/src/parser/scanner.rs:136:9 [INFO] [stdout] 18: 0x560daac6dc5a - oas_lint_rs::parser::scanner::test_scanner::test_string::{{closure}}::h61b85c09f9bc80bc [INFO] [stdout] at /opt/rustwide/workdir/src/parser/scanner.rs:131:5 [INFO] [stdout] 19: 0x560daac6b01e - core::ops::function::FnOnce::call_once::h8ee41c20128f4f7c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 20: 0x560daaca3063 - core::ops::function::FnOnce::call_once::h018fc248431ce8de [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x560daaca3063 - test::__rust_begin_short_backtrace::h293b982b6069d6e3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:574:5 [INFO] [stdout] 22: 0x560daaca1e19 - as core::ops::function::FnOnce>::call_once::h4fc1be1a762c7a46 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 23: 0x560daaca1e19 - as core::ops::function::FnOnce<()>>::call_once::hd44623ec51b9e897 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 24: 0x560daaca1e19 - std::panicking::try::do_call::ha8cfa4b025f5b832 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 25: 0x560daaca1e19 - std::panicking::try::h664f75e41c112145 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 26: 0x560daaca1e19 - std::panic::catch_unwind::h4932ec05cd60558e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 27: 0x560daaca1e19 - test::run_test_in_process::ha14a47756671755c [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:597:18 [INFO] [stdout] 28: 0x560daaca1e19 - test::run_test::run_test_inner::{{closure}}::h0ec9e37c8f67b62d [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:491:39 [INFO] [stdout] 29: 0x560daac6dfce - test::run_test::run_test_inner::{{closure}}::hd9d2e7f26d4f59e6 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/test/src/lib.rs:518:37 [INFO] [stdout] 30: 0x560daac6dfce - std::sys_common::backtrace::__rust_begin_short_backtrace::h41c0a39fac5123f8 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 31: 0x560daac73538 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h69a02ca0bebb6eeb [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 32: 0x560daac73538 - as core::ops::function::FnOnce<()>>::call_once::hdd05632920ce689b [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 33: 0x560daac73538 - std::panicking::try::do_call::hb4947142729b90fd [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:492:40 [INFO] [stdout] 34: 0x560daac73538 - std::panicking::try::h15a7e9b8394e6878 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panicking.rs:456:19 [INFO] [stdout] 35: 0x560daac73538 - std::panic::catch_unwind::hbd3f4a3f9df49b85 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/panic.rs:137:14 [INFO] [stdout] 36: 0x560daac73538 - std::thread::Builder::spawn_unchecked_::{{closure}}::h880b5d5f1b9799f4 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 37: 0x560daac73538 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h304d5eaf401f5061 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 38: 0x560daaccdda3 - as core::ops::function::FnOnce>::call_once::hdba7f2afed0c35b3 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 39: 0x560daaccdda3 - as core::ops::function::FnOnce>::call_once::h38b0832765bf7961 [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/alloc/src/boxed.rs:1861:9 [INFO] [stdout] 40: 0x560daaccdda3 - std::sys::unix::thread::Thread::new::thread_start::h70236dc17753425e [INFO] [stdout] at /rustc/7c13df853721b60a03e7c0bb084d2eb1e27a9caa/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 41: 0x7f1837b3c609 - start_thread [INFO] [stdout] 42: 0x7f183790c163 - clone [INFO] [stdout] 43: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] parser::scanner::test_scanner::test_string [INFO] [stdout] [INFO] [stdout] test result: FAILED. 14 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--bin oas-lint-rs' [INFO] running `Command { std: "docker" "inspect" "21661fc0f8a6c0eea3b064878932c7581d421146da7d44de1e743ad938d42a1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21661fc0f8a6c0eea3b064878932c7581d421146da7d44de1e743ad938d42a1e", kill_on_drop: false }` [INFO] [stdout] 21661fc0f8a6c0eea3b064878932c7581d421146da7d44de1e743ad938d42a1e