[INFO] fetching crate nastran 0.0.1... [INFO] testing nastran-0.0.1 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate nastran 0.0.1 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate nastran 0.0.1 [INFO] finished tweaking crates.io crate nastran 0.0.1 [INFO] tweaked toml for crates.io crate nastran 0.0.1 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate nastran 0.0.1 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 40 packages to latest compatible versions [INFO] [stderr] Adding ascii v0.8.7 (available: v1.1.0) [INFO] [stderr] Adding clap v2.34.0 (available: v4.5.40) [INFO] [stderr] Adding dtoa v0.4.8 (available: v1.0.10) [INFO] [stderr] Adding itertools v0.6.5 (available: v0.14.0) [INFO] [stderr] Adding memmap v0.5.2 (available: v0.7.0) [INFO] [stderr] Adding nom v3.2.1 (available: v8.0.0) [INFO] [stderr] Adding num v0.1.43 (available: v0.4.3) [INFO] [stderr] Adding num-traits v0.1.43 (available: v0.2.19) [INFO] [stderr] Adding quick-error v1.2.3 (available: v2.0.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ascii v0.8.7 [INFO] [stderr] Downloaded memmap v0.5.2 [INFO] [stderr] Downloaded num-rational v0.1.43 [INFO] [stderr] Downloaded num-bigint v0.1.45 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fdd3fe8d2e4469f7f988f8238a94209a176785a1df4617b8c96ff16eb0d315cc [INFO] running `Command { std: "docker" "start" "-a" "fdd3fe8d2e4469f7f988f8238a94209a176785a1df4617b8c96ff16eb0d315cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fdd3fe8d2e4469f7f988f8238a94209a176785a1df4617b8c96ff16eb0d315cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fdd3fe8d2e4469f7f988f8238a94209a176785a1df4617b8c96ff16eb0d315cc", kill_on_drop: false }` [INFO] [stdout] fdd3fe8d2e4469f7f988f8238a94209a176785a1df4617b8c96ff16eb0d315cc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] f367c3cc2c4a4e13d832a923c6306231560f4bb30b2c05cc962d4212c4e49963 [INFO] running `Command { std: "docker" "start" "-a" "f367c3cc2c4a4e13d832a923c6306231560f4bb30b2c05cc962d4212c4e49963", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling num-bigint v0.1.45 [INFO] [stderr] Compiling rustc-serialize v0.3.25 [INFO] [stderr] Compiling num-complex v0.1.44 [INFO] [stderr] Compiling num-rational v0.1.43 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling itertools v0.6.5 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Compiling ascii v0.8.7 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling memchr v1.0.2 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling memmap v0.5.2 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling nom v3.2.1 [INFO] [stderr] Compiling num v0.1.43 [INFO] [stderr] Compiling nastran v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:225:27 [INFO] [stdout] | [INFO] [stdout] 225 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:274:13 [INFO] [stdout] | [INFO] [stdout] 274 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:274:27 [INFO] [stdout] | [INFO] [stdout] 274 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:275:27 [INFO] [stdout] | [INFO] [stdout] 275 | b'+' | b'-' | b'0'...b'9' | b'.' => maybe_number(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:290:13 [INFO] [stdout] | [INFO] [stdout] 290 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:290:27 [INFO] [stdout] | [INFO] [stdout] 290 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:291:27 [INFO] [stdout] | [INFO] [stdout] 291 | b'+' | b'-' | b'0'...b'9' | b'.' => maybe_number(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | try!(write!(f, "Card(")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | try!(write!(f, "{:?},", self.first)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | try!(write!(f, "{:?},", field)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | try!(write!(f, "+{:?}", self.continuation)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | try!(write!(f, "Comment='{}',", String::from_utf8_lossy(comment))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | try!(write!(f, "comma,")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | try!(write!(f, "double,")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | try!(write!( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | try!(write!(f, "{}", first)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:147:25 [INFO] [stdout] | [INFO] [stdout] 147 | try!(write!(f, "+ \n* ")) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:150:25 [INFO] [stdout] | [INFO] [stdout] 150 | try!(write!(f, "{:16}", field)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:157:25 [INFO] [stdout] | [INFO] [stdout] 157 | try!(write!(f, "+ \n+ ")) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:160:25 [INFO] [stdout] | [INFO] [stdout] 160 | try!(write!(f, "{}", field)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | try!(write!(f, "{}", String::from_utf8_lossy(comment))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:170:17 [INFO] [stdout] | [INFO] [stdout] 170 | try!(write!(f, "$")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | try!(write!(f, "Deck(\n")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | try!(write!(f, " {},\n", card)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/datfile/mod.rs:577:18 [INFO] [stdout] | [INFO] [stdout] 577 | _ => (false), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 577 - _ => (false), [INFO] [stdout] 577 + _ => false, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/datfile/mod.rs:262:21 [INFO] [stdout] | [INFO] [stdout] 262 | let mut existing = self.deck.cards.index_mut(index); [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: variable does not need to be mutable [INFO] [stdout] --> src/datfile/mod.rs:280:21 [INFO] [stdout] | [INFO] [stdout] 280 | let mut existing = self.deck.cards.index_mut(index); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/mod.rs:364:27 [INFO] [stdout] | [INFO] [stdout] 364 | fn read_first_field(line: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ---------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 364 | fn read_first_field(line: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/mod.rs:424:27 [INFO] [stdout] | [INFO] [stdout] 424 | pub fn parse_line(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 424 | pub fn parse_line(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/mod.rs:608:35 [INFO] [stdout] | [INFO] [stdout] 608 | pub fn parse_buffer(input_buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 608 | pub fn parse_buffer(input_buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:62:25 [INFO] [stdout] | [INFO] [stdout] 62 | fn maybe_string(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 62 | fn maybe_string(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:93:25 [INFO] [stdout] | [INFO] [stdout] 93 | fn maybe_number(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 93 | fn maybe_number(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:196:34 [INFO] [stdout] | [INFO] [stdout] 196 | pub fn maybe_first_field(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 196 | pub fn maybe_first_field(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:243:32 [INFO] [stdout] | [INFO] [stdout] 243 | pub fn maybe_any_field(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 243 | pub fn maybe_any_field(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:280:28 [INFO] [stdout] | [INFO] [stdout] 280 | pub fn maybe_field(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 280 | pub fn maybe_field(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/macros.rs:17:35 [INFO] [stdout] | [INFO] [stdout] 17 | whole_file!($i, call!($f)); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/op2/mod.rs:271:5 [INFO] [stdout] | [INFO] [stdout] 271 | whole_file!(buffer,parse_op2) [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: macro invocations at the end of a block are treated as expressions [INFO] [stdout] = note: to ignore the value produced by the macro, add a semicolon after the invocation of `whole_file` [INFO] [stdout] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = note: this warning originates in the macro `whole_file` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:225:27 [INFO] [stdout] | [INFO] [stdout] 225 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:274:13 [INFO] [stdout] | [INFO] [stdout] 274 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:274:27 [INFO] [stdout] | [INFO] [stdout] 274 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:275:27 [INFO] [stdout] | [INFO] [stdout] 275 | b'+' | b'-' | b'0'...b'9' | b'.' => maybe_number(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:290:13 [INFO] [stdout] | [INFO] [stdout] 290 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:290:27 [INFO] [stdout] | [INFO] [stdout] 290 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:291:27 [INFO] [stdout] | [INFO] [stdout] 291 | b'+' | b'-' | b'0'...b'9' | b'.' => maybe_number(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `maybe_any_field` and `maybe_field` [INFO] [stdout] --> src/datfile/mod.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | pub use self::field::{maybe_field, maybe_any_field}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | try!(write!(f, "Card(")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | try!(write!(f, "{:?},", self.first)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | try!(write!(f, "{:?},", field)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | try!(write!(f, "+{:?}", self.continuation)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | try!(write!(f, "Comment='{}',", String::from_utf8_lossy(comment))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | try!(write!(f, "comma,")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | try!(write!(f, "double,")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | try!(write!( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | try!(write!(f, "{}", first)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:147:25 [INFO] [stdout] | [INFO] [stdout] 147 | try!(write!(f, "+ \n* ")) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:150:25 [INFO] [stdout] | [INFO] [stdout] 150 | try!(write!(f, "{:16}", field)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:157:25 [INFO] [stdout] | [INFO] [stdout] 157 | try!(write!(f, "+ \n+ ")) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:160:25 [INFO] [stdout] | [INFO] [stdout] 160 | try!(write!(f, "{}", field)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | try!(write!(f, "{}", String::from_utf8_lossy(comment))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:170:17 [INFO] [stdout] | [INFO] [stdout] 170 | try!(write!(f, "$")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | try!(write!(f, "Deck(\n")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | try!(write!(f, " {},\n", card)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/datfile/mod.rs:577:18 [INFO] [stdout] | [INFO] [stdout] 577 | _ => (false), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 577 - _ => (false), [INFO] [stdout] 577 + _ => false, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/datfile/mod.rs:262:21 [INFO] [stdout] | [INFO] [stdout] 262 | let mut existing = self.deck.cards.index_mut(index); [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: variable does not need to be mutable [INFO] [stdout] --> src/datfile/mod.rs:280:21 [INFO] [stdout] | [INFO] [stdout] 280 | let mut existing = self.deck.cards.index_mut(index); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/op2/mod.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | tag!(unsafe { transmute::(length)}) >> [INFO] [stdout] | -----------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i32::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/op2/mod.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | unsafe { transmute(num.to_le()) } [INFO] [stdout] | ---------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i32::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/op2/mod.rs:248:26 [INFO] [stdout] | [INFO] [stdout] 248 | fn read_datablock(input: &[u8]) -> IResult<&[u8], DataBlock> { [INFO] [stdout] | ^^^^^ ----- --------- the lifetimes get resolved as `'_` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 248 | fn read_datablock(input: &[u8]) -> IResult<&[u8], DataBlock<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/op2/mod.rs:270:29 [INFO] [stdout] | [INFO] [stdout] 270 | pub fn parse_buffer(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ --- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 270 | pub fn parse_buffer(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/op2/keyed.rs:72:35 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn read_unknown_record(input: &[u8], record_size: i32) -> IResult<&[u8], UnknownRecord> { [INFO] [stdout] | ^^^^^ ----- ------------- the lifetimes get resolved as `'_` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 72 | pub fn read_unknown_record(input: &[u8], record_size: i32) -> IResult<&[u8], UnknownRecord<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/mod.rs:364:27 [INFO] [stdout] | [INFO] [stdout] 364 | fn read_first_field(line: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ---------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 364 | fn read_first_field(line: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/mod.rs:424:27 [INFO] [stdout] | [INFO] [stdout] 424 | pub fn parse_line(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 424 | pub fn parse_line(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/mod.rs:608:35 [INFO] [stdout] | [INFO] [stdout] 608 | pub fn parse_buffer(input_buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 608 | pub fn parse_buffer(input_buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:62:25 [INFO] [stdout] | [INFO] [stdout] 62 | fn maybe_string(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 62 | fn maybe_string(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:93:25 [INFO] [stdout] | [INFO] [stdout] 93 | fn maybe_number(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 93 | fn maybe_number(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:196:34 [INFO] [stdout] | [INFO] [stdout] 196 | pub fn maybe_first_field(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 196 | pub fn maybe_first_field(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:243:32 [INFO] [stdout] | [INFO] [stdout] 243 | pub fn maybe_any_field(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 243 | pub fn maybe_any_field(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:280:28 [INFO] [stdout] | [INFO] [stdout] 280 | pub fn maybe_field(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 280 | pub fn maybe_field(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.46s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nastran v0.0.1 (/opt/rustwide/workdir), nom v3.2.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "f367c3cc2c4a4e13d832a923c6306231560f4bb30b2c05cc962d4212c4e49963", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f367c3cc2c4a4e13d832a923c6306231560f4bb30b2c05cc962d4212c4e49963", kill_on_drop: false }` [INFO] [stdout] f367c3cc2c4a4e13d832a923c6306231560f4bb30b2c05cc962d4212c4e49963 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] cbb76dd31c847db5aae4800db71cb31725168d39f8bb82e13217eb230ba1e0f1 [INFO] running `Command { std: "docker" "start" "-a" "cbb76dd31c847db5aae4800db71cb31725168d39f8bb82e13217eb230ba1e0f1", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:225:27 [INFO] [stdout] | [INFO] [stdout] 225 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:274:13 [INFO] [stdout] | [INFO] [stdout] 274 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:274:27 [INFO] [stdout] | [INFO] [stdout] 274 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:275:27 [INFO] [stdout] | [INFO] [stdout] 275 | b'+' | b'-' | b'0'...b'9' | b'.' => maybe_number(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:290:13 [INFO] [stdout] | [INFO] [stdout] 290 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:290:27 [INFO] [stdout] | [INFO] [stdout] 290 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:291:27 [INFO] [stdout] | [INFO] [stdout] 291 | b'+' | b'-' | b'0'...b'9' | b'.' => maybe_number(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | try!(write!(f, "Card(")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | try!(write!(f, "{:?},", self.first)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | try!(write!(f, "{:?},", field)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | try!(write!(f, "+{:?}", self.continuation)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | try!(write!(f, "Comment='{}',", String::from_utf8_lossy(comment))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | try!(write!(f, "comma,")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | try!(write!(f, "double,")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | try!(write!( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | try!(write!(f, "{}", first)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:147:25 [INFO] [stdout] | [INFO] [stdout] 147 | try!(write!(f, "+ \n* ")) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:150:25 [INFO] [stdout] | [INFO] [stdout] 150 | try!(write!(f, "{:16}", field)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling nastran v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:157:25 [INFO] [stdout] | [INFO] [stdout] 157 | try!(write!(f, "+ \n+ ")) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:160:25 [INFO] [stdout] | [INFO] [stdout] 160 | try!(write!(f, "{}", field)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | try!(write!(f, "{}", String::from_utf8_lossy(comment))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:170:17 [INFO] [stdout] | [INFO] [stdout] 170 | try!(write!(f, "$")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | try!(write!(f, "Deck(\n")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | try!(write!(f, " {},\n", card)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/datfile/mod.rs:577:18 [INFO] [stdout] | [INFO] [stdout] 577 | _ => (false), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 577 - _ => (false), [INFO] [stdout] 577 + _ => false, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/datfile/mod.rs:262:21 [INFO] [stdout] | [INFO] [stdout] 262 | let mut existing = self.deck.cards.index_mut(index); [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: variable does not need to be mutable [INFO] [stdout] --> src/datfile/mod.rs:280:21 [INFO] [stdout] | [INFO] [stdout] 280 | let mut existing = self.deck.cards.index_mut(index); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/mod.rs:364:27 [INFO] [stdout] | [INFO] [stdout] 364 | fn read_first_field(line: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ---------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 364 | fn read_first_field(line: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/mod.rs:424:27 [INFO] [stdout] | [INFO] [stdout] 424 | pub fn parse_line(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 424 | pub fn parse_line(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/mod.rs:608:35 [INFO] [stdout] | [INFO] [stdout] 608 | pub fn parse_buffer(input_buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 608 | pub fn parse_buffer(input_buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:62:25 [INFO] [stdout] | [INFO] [stdout] 62 | fn maybe_string(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 62 | fn maybe_string(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:93:25 [INFO] [stdout] | [INFO] [stdout] 93 | fn maybe_number(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 93 | fn maybe_number(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:196:34 [INFO] [stdout] | [INFO] [stdout] 196 | pub fn maybe_first_field(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 196 | pub fn maybe_first_field(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:243:32 [INFO] [stdout] | [INFO] [stdout] 243 | pub fn maybe_any_field(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 243 | pub fn maybe_any_field(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:280:28 [INFO] [stdout] | [INFO] [stdout] 280 | pub fn maybe_field(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 280 | pub fn maybe_field(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/macros.rs:17:35 [INFO] [stdout] | [INFO] [stdout] 17 | whole_file!($i, call!($f)); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/op2/mod.rs:271:5 [INFO] [stdout] | [INFO] [stdout] 271 | whole_file!(buffer,parse_op2) [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: macro invocations at the end of a block are treated as expressions [INFO] [stdout] = note: to ignore the value produced by the macro, add a semicolon after the invocation of `whole_file` [INFO] [stdout] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = note: this warning originates in the macro `whole_file` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:225:27 [INFO] [stdout] | [INFO] [stdout] 225 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:274:13 [INFO] [stdout] | [INFO] [stdout] 274 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:274:27 [INFO] [stdout] | [INFO] [stdout] 274 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:275:27 [INFO] [stdout] | [INFO] [stdout] 275 | b'+' | b'-' | b'0'...b'9' | b'.' => maybe_number(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:290:13 [INFO] [stdout] | [INFO] [stdout] 290 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:290:27 [INFO] [stdout] | [INFO] [stdout] 290 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:291:27 [INFO] [stdout] | [INFO] [stdout] 291 | b'+' | b'-' | b'0'...b'9' | b'.' => maybe_number(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `maybe_any_field` and `maybe_field` [INFO] [stdout] --> src/datfile/mod.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | pub use self::field::{maybe_field, maybe_any_field}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | try!(write!(f, "Card(")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | try!(write!(f, "{:?},", self.first)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | try!(write!(f, "{:?},", field)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | try!(write!(f, "+{:?}", self.continuation)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | try!(write!(f, "Comment='{}',", String::from_utf8_lossy(comment))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | try!(write!(f, "comma,")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | try!(write!(f, "double,")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | try!(write!( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | try!(write!(f, "{}", first)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:147:25 [INFO] [stdout] | [INFO] [stdout] 147 | try!(write!(f, "+ \n* ")) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:150:25 [INFO] [stdout] | [INFO] [stdout] 150 | try!(write!(f, "{:16}", field)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:157:25 [INFO] [stdout] | [INFO] [stdout] 157 | try!(write!(f, "+ \n+ ")) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:160:25 [INFO] [stdout] | [INFO] [stdout] 160 | try!(write!(f, "{}", field)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | try!(write!(f, "{}", String::from_utf8_lossy(comment))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:170:17 [INFO] [stdout] | [INFO] [stdout] 170 | try!(write!(f, "$")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | try!(write!(f, "Deck(\n")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | try!(write!(f, " {},\n", card)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/datfile/mod.rs:577:18 [INFO] [stdout] | [INFO] [stdout] 577 | _ => (false), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 577 - _ => (false), [INFO] [stdout] 577 + _ => false, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/datfile/mod.rs:262:21 [INFO] [stdout] | [INFO] [stdout] 262 | let mut existing = self.deck.cards.index_mut(index); [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: variable does not need to be mutable [INFO] [stdout] --> src/datfile/mod.rs:280:21 [INFO] [stdout] | [INFO] [stdout] 280 | let mut existing = self.deck.cards.index_mut(index); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/op2/mod.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | tag!(unsafe { transmute::(length)}) >> [INFO] [stdout] | -----------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i32::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/op2/mod.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | unsafe { transmute(num.to_le()) } [INFO] [stdout] | ---------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i32::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/op2/mod.rs:248:26 [INFO] [stdout] | [INFO] [stdout] 248 | fn read_datablock(input: &[u8]) -> IResult<&[u8], DataBlock> { [INFO] [stdout] | ^^^^^ ----- --------- the lifetimes get resolved as `'_` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 248 | fn read_datablock(input: &[u8]) -> IResult<&[u8], DataBlock<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/op2/mod.rs:270:29 [INFO] [stdout] | [INFO] [stdout] 270 | pub fn parse_buffer(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ --- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 270 | pub fn parse_buffer(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/op2/keyed.rs:72:35 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn read_unknown_record(input: &[u8], record_size: i32) -> IResult<&[u8], UnknownRecord> { [INFO] [stdout] | ^^^^^ ----- ------------- the lifetimes get resolved as `'_` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 72 | pub fn read_unknown_record(input: &[u8], record_size: i32) -> IResult<&[u8], UnknownRecord<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/mod.rs:364:27 [INFO] [stdout] | [INFO] [stdout] 364 | fn read_first_field(line: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ---------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 364 | fn read_first_field(line: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/mod.rs:424:27 [INFO] [stdout] | [INFO] [stdout] 424 | pub fn parse_line(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 424 | pub fn parse_line(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/mod.rs:608:35 [INFO] [stdout] | [INFO] [stdout] 608 | pub fn parse_buffer(input_buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 608 | pub fn parse_buffer(input_buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:62:25 [INFO] [stdout] | [INFO] [stdout] 62 | fn maybe_string(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 62 | fn maybe_string(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:93:25 [INFO] [stdout] | [INFO] [stdout] 93 | fn maybe_number(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 93 | fn maybe_number(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:196:34 [INFO] [stdout] | [INFO] [stdout] 196 | pub fn maybe_first_field(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 196 | pub fn maybe_first_field(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:243:32 [INFO] [stdout] | [INFO] [stdout] 243 | pub fn maybe_any_field(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 243 | pub fn maybe_any_field(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:280:28 [INFO] [stdout] | [INFO] [stdout] 280 | pub fn maybe_field(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 280 | pub fn maybe_field(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:225:27 [INFO] [stdout] | [INFO] [stdout] 225 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:274:13 [INFO] [stdout] | [INFO] [stdout] 274 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:274:27 [INFO] [stdout] | [INFO] [stdout] 274 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:275:27 [INFO] [stdout] | [INFO] [stdout] 275 | b'+' | b'-' | b'0'...b'9' | b'.' => maybe_number(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:290:13 [INFO] [stdout] | [INFO] [stdout] 290 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:290:27 [INFO] [stdout] | [INFO] [stdout] 290 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:291:27 [INFO] [stdout] | [INFO] [stdout] 291 | b'+' | b'-' | b'0'...b'9' | b'.' => maybe_number(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | try!(write!(f, "Card(")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | try!(write!(f, "{:?},", self.first)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | try!(write!(f, "{:?},", field)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | try!(write!(f, "+{:?}", self.continuation)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | try!(write!(f, "Comment='{}',", String::from_utf8_lossy(comment))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | try!(write!(f, "comma,")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | try!(write!(f, "double,")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | try!(write!( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | try!(write!(f, "{}", first)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:147:25 [INFO] [stdout] | [INFO] [stdout] 147 | try!(write!(f, "+ \n* ")) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:150:25 [INFO] [stdout] | [INFO] [stdout] 150 | try!(write!(f, "{:16}", field)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:157:25 [INFO] [stdout] | [INFO] [stdout] 157 | try!(write!(f, "+ \n+ ")) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:160:25 [INFO] [stdout] | [INFO] [stdout] 160 | try!(write!(f, "{}", field)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | try!(write!(f, "{}", String::from_utf8_lossy(comment))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:170:17 [INFO] [stdout] | [INFO] [stdout] 170 | try!(write!(f, "$")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | try!(write!(f, "Deck(\n")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | try!(write!(f, " {},\n", card)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/datfile/mod.rs:577:18 [INFO] [stdout] | [INFO] [stdout] 577 | _ => (false), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 577 - _ => (false), [INFO] [stdout] 577 + _ => false, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trailing semicolon in macro used in expression position [INFO] [stdout] --> src/macros.rs:17:35 [INFO] [stdout] | [INFO] [stdout] 17 | whole_file!($i, call!($f)); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] ::: src/op2/mod.rs:271:5 [INFO] [stdout] | [INFO] [stdout] 271 | whole_file!(buffer,parse_op2) [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: macro invocations at the end of a block are treated as expressions [INFO] [stdout] = note: to ignore the value produced by the macro, add a semicolon after the invocation of `whole_file` [INFO] [stdout] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = note: this warning originates in the macro `whole_file` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:225:13 [INFO] [stdout] | [INFO] [stdout] 225 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:225:27 [INFO] [stdout] | [INFO] [stdout] 225 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:274:13 [INFO] [stdout] | [INFO] [stdout] 274 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:274:27 [INFO] [stdout] | [INFO] [stdout] 274 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:275:27 [INFO] [stdout] | [INFO] [stdout] 275 | b'+' | b'-' | b'0'...b'9' | b'.' => maybe_number(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:290:13 [INFO] [stdout] | [INFO] [stdout] 290 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:290:27 [INFO] [stdout] | [INFO] [stdout] 290 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/datfile/field.rs:291:27 [INFO] [stdout] | [INFO] [stdout] 291 | b'+' | b'-' | b'0'...b'9' | b'.' => maybe_number(buffer), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `maybe_any_field` and `maybe_field` [INFO] [stdout] --> src/datfile/mod.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | pub use self::field::{maybe_field, maybe_any_field}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | try!(write!(f, "Card(")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | try!(write!(f, "{:?},", self.first)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | try!(write!(f, "{:?},", field)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | try!(write!(f, "+{:?}", self.continuation)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | try!(write!(f, "Comment='{}',", String::from_utf8_lossy(comment))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | try!(write!(f, "comma,")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | try!(write!(f, "double,")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | try!(write!( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | try!(write!(f, "{}", first)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:147:25 [INFO] [stdout] | [INFO] [stdout] 147 | try!(write!(f, "+ \n* ")) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:150:25 [INFO] [stdout] | [INFO] [stdout] 150 | try!(write!(f, "{:16}", field)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:157:25 [INFO] [stdout] | [INFO] [stdout] 157 | try!(write!(f, "+ \n+ ")) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:160:25 [INFO] [stdout] | [INFO] [stdout] 160 | try!(write!(f, "{}", field)) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | try!(write!(f, "{}", String::from_utf8_lossy(comment))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:170:17 [INFO] [stdout] | [INFO] [stdout] 170 | try!(write!(f, "$")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | try!(write!(f, "Deck(\n")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/datfile/mod.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | try!(write!(f, " {},\n", card)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/datfile/mod.rs:577:18 [INFO] [stdout] | [INFO] [stdout] 577 | _ => (false), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 577 - _ => (false), [INFO] [stdout] 577 + _ => false, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/datfile/mod.rs:262:21 [INFO] [stdout] | [INFO] [stdout] 262 | let mut existing = self.deck.cards.index_mut(index); [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: variable does not need to be mutable [INFO] [stdout] --> src/datfile/mod.rs:280:21 [INFO] [stdout] | [INFO] [stdout] 280 | let mut existing = self.deck.cards.index_mut(index); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/mod.rs:364:27 [INFO] [stdout] | [INFO] [stdout] 364 | fn read_first_field(line: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ---------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 364 | fn read_first_field(line: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/mod.rs:424:27 [INFO] [stdout] | [INFO] [stdout] 424 | pub fn parse_line(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 424 | pub fn parse_line(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/mod.rs:608:35 [INFO] [stdout] | [INFO] [stdout] 608 | pub fn parse_buffer(input_buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 608 | pub fn parse_buffer(input_buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:62:25 [INFO] [stdout] | [INFO] [stdout] 62 | fn maybe_string(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 62 | fn maybe_string(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:93:25 [INFO] [stdout] | [INFO] [stdout] 93 | fn maybe_number(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 93 | fn maybe_number(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:196:34 [INFO] [stdout] | [INFO] [stdout] 196 | pub fn maybe_first_field(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 196 | pub fn maybe_first_field(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:243:32 [INFO] [stdout] | [INFO] [stdout] 243 | pub fn maybe_any_field(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 243 | pub fn maybe_any_field(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:280:28 [INFO] [stdout] | [INFO] [stdout] 280 | pub fn maybe_field(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 280 | pub fn maybe_field(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/datfile/mod.rs:262:21 [INFO] [stdout] | [INFO] [stdout] 262 | let mut existing = self.deck.cards.index_mut(index); [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: variable does not need to be mutable [INFO] [stdout] --> src/datfile/mod.rs:280:21 [INFO] [stdout] | [INFO] [stdout] 280 | let mut existing = self.deck.cards.index_mut(index); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/op2/mod.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | tag!(unsafe { transmute::(length)}) >> [INFO] [stdout] | -----------------------^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i32::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/op2/mod.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | unsafe { transmute(num.to_le()) } [INFO] [stdout] | ---------^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `i32::to_ne_bytes` [INFO] [stdout] | [INFO] [stdout] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/op2/mod.rs:248:26 [INFO] [stdout] | [INFO] [stdout] 248 | fn read_datablock(input: &[u8]) -> IResult<&[u8], DataBlock> { [INFO] [stdout] | ^^^^^ ----- --------- the lifetimes get resolved as `'_` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 248 | fn read_datablock(input: &[u8]) -> IResult<&[u8], DataBlock<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/op2/mod.rs:270:29 [INFO] [stdout] | [INFO] [stdout] 270 | pub fn parse_buffer(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ --- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 270 | pub fn parse_buffer(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/op2/keyed.rs:72:35 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn read_unknown_record(input: &[u8], record_size: i32) -> IResult<&[u8], UnknownRecord> { [INFO] [stdout] | ^^^^^ ----- ------------- the lifetimes get resolved as `'_` [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 72 | pub fn read_unknown_record(input: &[u8], record_size: i32) -> IResult<&[u8], UnknownRecord<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/mod.rs:364:27 [INFO] [stdout] | [INFO] [stdout] 364 | fn read_first_field(line: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ---------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 364 | fn read_first_field(line: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/mod.rs:424:27 [INFO] [stdout] | [INFO] [stdout] 424 | pub fn parse_line(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 424 | pub fn parse_line(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/mod.rs:608:35 [INFO] [stdout] | [INFO] [stdout] 608 | pub fn parse_buffer(input_buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 608 | pub fn parse_buffer(input_buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:62:25 [INFO] [stdout] | [INFO] [stdout] 62 | fn maybe_string(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 62 | fn maybe_string(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:93:25 [INFO] [stdout] | [INFO] [stdout] 93 | fn maybe_number(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 93 | fn maybe_number(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:196:34 [INFO] [stdout] | [INFO] [stdout] 196 | pub fn maybe_first_field(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 196 | pub fn maybe_first_field(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:243:32 [INFO] [stdout] | [INFO] [stdout] 243 | pub fn maybe_any_field(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 243 | pub fn maybe_any_field(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/datfile/field.rs:280:28 [INFO] [stdout] | [INFO] [stdout] 280 | pub fn maybe_field(buffer: &[u8]) -> Result { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 280 | pub fn maybe_field(buffer: &[u8]) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.20s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nastran v0.0.1 (/opt/rustwide/workdir), nom v3.2.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "cbb76dd31c847db5aae4800db71cb31725168d39f8bb82e13217eb230ba1e0f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbb76dd31c847db5aae4800db71cb31725168d39f8bb82e13217eb230ba1e0f1", kill_on_drop: false }` [INFO] [stdout] cbb76dd31c847db5aae4800db71cb31725168d39f8bb82e13217eb230ba1e0f1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 094d376c19119df93383bc5dc8abf449d60f500b7b808001f3c012d10c7bae61 [INFO] running `Command { std: "docker" "start" "-a" "094d376c19119df93383bc5dc8abf449d60f500b7b808001f3c012d10c7bae61", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/datfile/field.rs:225:13 [INFO] [stderr] | [INFO] [stderr] 225 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/datfile/field.rs:225:27 [INFO] [stderr] | [INFO] [stderr] 225 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/datfile/field.rs:274:13 [INFO] [stderr] | [INFO] [stderr] 274 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/datfile/field.rs:274:27 [INFO] [stderr] | [INFO] [stderr] 274 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/datfile/field.rs:275:27 [INFO] [stderr] | [INFO] [stderr] 275 | b'+' | b'-' | b'0'...b'9' | b'.' => maybe_number(buffer), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/datfile/field.rs:290:13 [INFO] [stderr] | [INFO] [stderr] 290 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/datfile/field.rs:290:27 [INFO] [stderr] | [INFO] [stderr] 290 | b'a'...b'z' | b'A'...b'Z' => maybe_string(buffer), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/datfile/field.rs:291:27 [INFO] [stderr] | [INFO] [stderr] 291 | b'+' | b'-' | b'0'...b'9' | b'.' => maybe_number(buffer), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/datfile/mod.rs:110:9 [INFO] [stderr] | [INFO] [stderr] 110 | try!(write!(f, "Card(")); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/datfile/mod.rs:111:9 [INFO] [stderr] | [INFO] [stderr] 111 | try!(write!(f, "{:?},", self.first)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/datfile/mod.rs:113:13 [INFO] [stderr] | [INFO] [stderr] 113 | try!(write!(f, "{:?},", field)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/datfile/mod.rs:116:13 [INFO] [stderr] | [INFO] [stderr] 116 | try!(write!(f, "+{:?}", self.continuation)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/datfile/mod.rs:119:13 [INFO] [stderr] | [INFO] [stderr] 119 | try!(write!(f, "Comment='{}',", String::from_utf8_lossy(comment))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/datfile/mod.rs:122:13 [INFO] [stderr] | [INFO] [stderr] 122 | try!(write!(f, "comma,")); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/datfile/mod.rs:125:13 [INFO] [stderr] | [INFO] [stderr] 125 | try!(write!(f, "double,")); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/datfile/mod.rs:128:13 [INFO] [stderr] | [INFO] [stderr] 128 | try!(write!( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/datfile/mod.rs:142:13 [INFO] [stderr] | [INFO] [stderr] 142 | try!(write!(f, "{}", first)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/datfile/mod.rs:147:25 [INFO] [stderr] | [INFO] [stderr] 147 | try!(write!(f, "+ \n* ")) [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/datfile/mod.rs:150:25 [INFO] [stderr] | [INFO] [stderr] 150 | try!(write!(f, "{:16}", field)) [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/datfile/mod.rs:157:25 [INFO] [stderr] | [INFO] [stderr] 157 | try!(write!(f, "+ \n+ ")) [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/datfile/mod.rs:160:25 [INFO] [stderr] | [INFO] [stderr] 160 | try!(write!(f, "{}", field)) [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/datfile/mod.rs:172:13 [INFO] [stderr] | [INFO] [stderr] 172 | try!(write!(f, "{}", String::from_utf8_lossy(comment))); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/datfile/mod.rs:170:17 [INFO] [stderr] | [INFO] [stderr] 170 | try!(write!(f, "$")); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/datfile/mod.rs:187:9 [INFO] [stderr] | [INFO] [stderr] 187 | try!(write!(f, "Deck(\n")); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/datfile/mod.rs:189:13 [INFO] [stderr] | [INFO] [stderr] 189 | try!(write!(f, " {},\n", card)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around match arm expression [INFO] [stderr] --> src/datfile/mod.rs:577:18 [INFO] [stderr] | [INFO] [stderr] 577 | _ => (false), [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 577 - _ => (false), [INFO] [stderr] 577 + _ => false, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/datfile/mod.rs:262:21 [INFO] [stderr] | [INFO] [stderr] 262 | let mut existing = self.deck.cards.index_mut(index); [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: variable does not need to be mutable [INFO] [stderr] --> src/datfile/mod.rs:280:21 [INFO] [stderr] | [INFO] [stderr] 280 | let mut existing = self.deck.cards.index_mut(index); [INFO] [stderr] | ----^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/datfile/mod.rs:364:27 [INFO] [stderr] | [INFO] [stderr] 364 | fn read_first_field(line: &[u8]) -> Result { [INFO] [stderr] | ^^^^^ ---------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 364 | fn read_first_field(line: &[u8]) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/datfile/mod.rs:424:27 [INFO] [stderr] | [INFO] [stderr] 424 | pub fn parse_line(buffer: &[u8]) -> Result { [INFO] [stderr] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 424 | pub fn parse_line(buffer: &[u8]) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/datfile/mod.rs:608:35 [INFO] [stderr] | [INFO] [stderr] 608 | pub fn parse_buffer(input_buffer: &[u8]) -> Result { [INFO] [stderr] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 608 | pub fn parse_buffer(input_buffer: &[u8]) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/datfile/field.rs:62:25 [INFO] [stderr] | [INFO] [stderr] 62 | fn maybe_string(buffer: &[u8]) -> Result { [INFO] [stderr] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 62 | fn maybe_string(buffer: &[u8]) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/datfile/field.rs:93:25 [INFO] [stderr] | [INFO] [stderr] 93 | fn maybe_number(buffer: &[u8]) -> Result { [INFO] [stderr] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 93 | fn maybe_number(buffer: &[u8]) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/datfile/field.rs:196:34 [INFO] [stderr] | [INFO] [stderr] 196 | pub fn maybe_first_field(buffer: &[u8]) -> Result { [INFO] [stderr] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 196 | pub fn maybe_first_field(buffer: &[u8]) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/datfile/field.rs:243:32 [INFO] [stderr] | [INFO] [stderr] 243 | pub fn maybe_any_field(buffer: &[u8]) -> Result { [INFO] [stderr] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 243 | pub fn maybe_any_field(buffer: &[u8]) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/datfile/field.rs:280:28 [INFO] [stderr] | [INFO] [stderr] 280 | pub fn maybe_field(buffer: &[u8]) -> Result { [INFO] [stderr] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 280 | pub fn maybe_field(buffer: &[u8]) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `nastran` (lib) generated 36 warnings (run `cargo fix --lib -p nastran` to apply 19 suggestions) [INFO] [stderr] warning: `nastran` (lib test) generated 36 warnings (36 duplicates) [INFO] [stderr] warning: trailing semicolon in macro used in expression position [INFO] [stderr] --> src/macros.rs:17:35 [INFO] [stderr] | [INFO] [stderr] 17 | whole_file!($i, call!($f)); [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] ::: src/op2/mod.rs:271:5 [INFO] [stderr] | [INFO] [stderr] 271 | whole_file!(buffer,parse_op2) [INFO] [stderr] | ----------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #79813 [INFO] [stderr] = note: macro invocations at the end of a block are treated as expressions [INFO] [stderr] = note: to ignore the value produced by the macro, add a semicolon after the invocation of `whole_file` [INFO] [stderr] = note: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stderr] = note: this warning originates in the macro `whole_file` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused imports: `maybe_any_field` and `maybe_field` [INFO] [stderr] --> src/datfile/mod.rs:13:23 [INFO] [stderr] | [INFO] [stderr] 13 | pub use self::field::{maybe_field, maybe_any_field}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/op2/mod.rs:60:17 [INFO] [stderr] | [INFO] [stderr] 60 | tag!(unsafe { transmute::(length)}) >> [INFO] [stderr] | -----------------------^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `i32::to_ne_bytes` [INFO] [stderr] | [INFO] [stderr] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stderr] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/op2/mod.rs:65:14 [INFO] [stderr] | [INFO] [stderr] 65 | unsafe { transmute(num.to_le()) } [INFO] [stderr] | ---------^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `i32::to_ne_bytes` [INFO] [stderr] | [INFO] [stderr] = help: there's also `to_le_bytes` and `to_be_bytes` if you expect a particular byte order [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/op2/mod.rs:248:26 [INFO] [stderr] | [INFO] [stderr] 248 | fn read_datablock(input: &[u8]) -> IResult<&[u8], DataBlock> { [INFO] [stderr] | ^^^^^ ----- --------- the lifetimes get resolved as `'_` [INFO] [stderr] | | | [INFO] [stderr] | | the lifetimes get resolved as `'_` [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 248 | fn read_datablock(input: &[u8]) -> IResult<&[u8], DataBlock<'_>> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/op2/mod.rs:270:29 [INFO] [stderr] | [INFO] [stderr] 270 | pub fn parse_buffer(buffer: &[u8]) -> Result { [INFO] [stderr] | ^^^^^ --- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 270 | pub fn parse_buffer(buffer: &[u8]) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/op2/keyed.rs:72:35 [INFO] [stderr] | [INFO] [stderr] 72 | pub fn read_unknown_record(input: &[u8], record_size: i32) -> IResult<&[u8], UnknownRecord> { [INFO] [stderr] | ^^^^^ ----- ------------- the lifetimes get resolved as `'_` [INFO] [stderr] | | | [INFO] [stderr] | | the lifetimes get resolved as `'_` [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 72 | pub fn read_unknown_record(input: &[u8], record_size: i32) -> IResult<&[u8], UnknownRecord<'_>> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/datfile/mod.rs:364:27 [INFO] [stderr] | [INFO] [stderr] 364 | fn read_first_field(line: &[u8]) -> Result { [INFO] [stderr] | ^^^^^ ---------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 364 | fn read_first_field(line: &[u8]) -> Result> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `nastran` (bin "nastran") generated 43 warnings (35 duplicates) (run `cargo fix --bin "nastran"` to apply 7 suggestions) [INFO] [stderr] warning: `nastran` (bin "nastran" test) generated 43 warnings (43 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nastran v0.0.1 (/opt/rustwide/workdir), nom v3.2.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/nastran-369876d78ccbd869) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test datfile::field::tests::bench_maybe_field_nastran_float ... ok [INFO] [stdout] test datfile::field::tests::test_maybe_field ... ok [INFO] [stdout] test datfile::field::tests::bench_maybe_field_float ... ok [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/nastran-e0aa79d045cabc5e) [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test datfile::field::tests::bench_maybe_field_float ... ok [INFO] [stdout] test datfile::field::tests::bench_maybe_field_nastran_float ... ok [INFO] [stdout] test datfile::field::tests::test_maybe_field ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/datfile.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/datfile-ff85dcb8b9d97363) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test comma_separated ... ok [INFO] [stdout] test header ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "094d376c19119df93383bc5dc8abf449d60f500b7b808001f3c012d10c7bae61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "094d376c19119df93383bc5dc8abf449d60f500b7b808001f3c012d10c7bae61", kill_on_drop: false }` [INFO] [stdout] 094d376c19119df93383bc5dc8abf449d60f500b7b808001f3c012d10c7bae61