[INFO] fetching crate pascal_string 0.4.0... [INFO] testing pascal_string-0.4.0 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate pascal_string 0.4.0 into /workspace/builds/worker-112/source [INFO] validating manifest of crates.io crate pascal_string 0.4.0 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate pascal_string 0.4.0 [INFO] finished tweaking crates.io crate pascal_string 0.4.0 [INFO] tweaked toml for crates.io crate pascal_string 0.4.0 written to /workspace/builds/worker-112/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-112/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-112/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dae7f8d2f23bd8074afd70e0da9a1d0916c643b3ac7a6d6b8f94b03048bb2498 [INFO] running `Command { std: "docker" "start" "-a" "dae7f8d2f23bd8074afd70e0da9a1d0916c643b3ac7a6d6b8f94b03048bb2498", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dae7f8d2f23bd8074afd70e0da9a1d0916c643b3ac7a6d6b8f94b03048bb2498", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dae7f8d2f23bd8074afd70e0da9a1d0916c643b3ac7a6d6b8f94b03048bb2498", kill_on_drop: false }` [INFO] [stdout] dae7f8d2f23bd8074afd70e0da9a1d0916c643b3ac7a6d6b8f94b03048bb2498 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-112/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-112/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1ab9f7b573c0dd0747db708503b7d9a9265b78bf41c5163c6af51968770d6261 [INFO] running `Command { std: "docker" "start" "-a" "1ab9f7b573c0dd0747db708503b7d9a9265b78bf41c5163c6af51968770d6261", kill_on_drop: false }` [INFO] [stderr] Compiling ascii v0.7.1 [INFO] [stderr] Compiling pascal_string v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/pascal_string.rs:43:26 [INFO] [stdout] | [INFO] [stdout] 43 | pstring[i] = try!(AsciiChar::from(char_array[i].clone())); [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/pascal_string.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | let ascii = try!(AsciiStr::from_ascii(bytes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/pascal_string.rs:89:24 [INFO] [stdout] | [INFO] [stdout] 89 | self._try_push(try!(AsciiChar::from(character))) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/pascal_string.rs:122:35 [INFO] [stdout] | [INFO] [stdout] 122 | let ascii: &[AsciiChar] = try!(AsciiStr::from_ascii(s)).as_ref(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:131:6 [INFO] [stdout] | [INFO] [stdout] 131 | impl AsciiExt for PascalStr { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:282:6 [INFO] [stdout] | [INFO] [stdout] 282 | impl AsciiExt for PascalString { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated type `std::ascii::AsciiExt::Owned`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:138:37 [INFO] [stdout] | [INFO] [stdout] 138 | fn to_ascii_uppercase(&self) -> Self::Owned { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated type `std::ascii::AsciiExt::Owned`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:145:37 [INFO] [stdout] | [INFO] [stdout] 145 | fn to_ascii_lowercase(&self) -> Self::Owned { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated type `std::ascii::AsciiExt::Owned`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:289:37 [INFO] [stdout] | [INFO] [stdout] 289 | fn to_ascii_uppercase(&self) -> Self::Owned { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated type `std::ascii::AsciiExt::Owned`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:295:37 [INFO] [stdout] | [INFO] [stdout] 295 | fn to_ascii_lowercase(&self) -> Self::Owned { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/pascal_string.rs:561:32 [INFO] [stdout] | [INFO] [stdout] 561 | fn cause(&self) -> Option<&Error> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 561 - fn cause(&self) -> Option<&Error> { [INFO] [stdout] 561 + fn cause(&self) -> Option<&dyn Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/pascal_string.rs:603:32 [INFO] [stdout] | [INFO] [stdout] 603 | fn cause(&self) -> Option<&Error> { [INFO] [stdout] | ^^^^^ [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 603 - fn cause(&self) -> Option<&Error> { [INFO] [stdout] 603 + fn cause(&self) -> Option<&dyn Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/pascal_string.rs:645:32 [INFO] [stdout] | [INFO] [stdout] 645 | fn cause(&self) -> Option<&Error> { [INFO] [stdout] | ^^^^^ [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 645 - fn cause(&self) -> Option<&Error> { [INFO] [stdout] 645 + fn cause(&self) -> Option<&dyn Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_uppercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:141:15 [INFO] [stdout] | [INFO] [stdout] 141 | upper.make_ascii_uppercase(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_lowercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:148:15 [INFO] [stdout] | [INFO] [stdout] 148 | lower.make_ascii_lowercase(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::eq_ignore_ascii_case`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:153:21 [INFO] [stdout] | [INFO] [stdout] 153 | self.string.eq_ignore_ascii_case(&other.string) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_uppercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:157:21 [INFO] [stdout] | [INFO] [stdout] 157 | self.string.make_ascii_uppercase() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_lowercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:161:21 [INFO] [stdout] | [INFO] [stdout] 161 | self.string.make_ascii_lowercase() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_uppercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:291:15 [INFO] [stdout] | [INFO] [stdout] 291 | upper.make_ascii_uppercase(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_lowercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:297:15 [INFO] [stdout] | [INFO] [stdout] 297 | lower.make_ascii_lowercase(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::eq_ignore_ascii_case`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:302:59 [INFO] [stdout] | [INFO] [stdout] 302 | self.chars().zip(other.chars()).all(|(c0, c1)| c0.eq_ignore_ascii_case(&c1)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_uppercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:308:15 [INFO] [stdout] | [INFO] [stdout] 308 | c.make_ascii_uppercase(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_lowercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:315:15 [INFO] [stdout] | [INFO] [stdout] 315 | c.make_ascii_lowercase(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type annotations needed [INFO] [stdout] --> src/pascal_string.rs:450:52 [INFO] [stdout] | [INFO] [stdout] 450 | let array_ptr = (&mut array as *mut _).offset(1) as *mut [u8; PASCAL_STRING_BUF_SIZE]; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(tyvar_behind_raw_pointer)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #46906 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pascal_string.rs:547:68 [INFO] [stdout] | [INFO] [stdout] 547 | PascalStringCreateError::InputTooLong => fmtr.pad(self.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pascal_string.rs:548:90 [INFO] [stdout] | [INFO] [stdout] 548 | PascalStringCreateError::NotValidAscii(ref e) => write!(fmtr, "{}: {}", self.description(), e) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pascal_string.rs:589:62 [INFO] [stdout] | [INFO] [stdout] 589 | PascalStringAppendError::NoRoom => fmtr.pad(self.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pascal_string.rs:590:90 [INFO] [stdout] | [INFO] [stdout] 590 | PascalStringAppendError::NotValidAscii(ref e) => write!(fmtr, "{}: {}", self.description(), e) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pascal_string.rs:631:68 [INFO] [stdout] | [INFO] [stdout] 631 | AsciiError::Char(ref e) => write!(fmtr, "{}: {}", self.description(), e), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pascal_string.rs:632:67 [INFO] [stdout] | [INFO] [stdout] 632 | AsciiError::Str(ref e) => write!(fmtr, "{}: {}", self.description(), e) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `AsciiChar` [INFO] [stdout] --> src/pascal_str.rs:46:39 [INFO] [stdout] | [INFO] [stdout] 46 | match self.chars().position(|&c| c == AsciiChar::Null) { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `AsciiChar` [INFO] [stdout] --> src/pascal_str.rs:547:64 [INFO] [stdout] | [INFO] [stdout] 547 | self.string.chars().skip(self.current_index).filter(|&&c| c == AsciiChar::LineFeed).count() [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `AsciiChar` [INFO] [stdout] --> src/pascal_string.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let c = self.chars[self.len as usize]; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `AsciiChar` [INFO] [stdout] --> src/pascal_string.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | let c = self[index]; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `AsciiChar` [INFO] [stdout] --> src/pascal_string.rs:307:13 [INFO] [stdout] | [INFO] [stdout] 307 | for c in self.chars_mut() { [INFO] [stdout] | ^ help: to match on the variant, qualify the path: `AsciiChar::c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `AsciiChar` [INFO] [stdout] --> src/pascal_string.rs:314:13 [INFO] [stdout] | [INFO] [stdout] 314 | for c in self.chars_mut() { [INFO] [stdout] | ^ help: to match on the variant, qualify the path: `AsciiChar::c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.62s [INFO] running `Command { std: "docker" "inspect" "1ab9f7b573c0dd0747db708503b7d9a9265b78bf41c5163c6af51968770d6261", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ab9f7b573c0dd0747db708503b7d9a9265b78bf41c5163c6af51968770d6261", kill_on_drop: false }` [INFO] [stdout] 1ab9f7b573c0dd0747db708503b7d9a9265b78bf41c5163c6af51968770d6261 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-112/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-112/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6cbefb09b35549f1a9fbb1d9ea8f09974833739fa9aa8b1e34406ce0c583bc8b [INFO] running `Command { std: "docker" "start" "-a" "6cbefb09b35549f1a9fbb1d9ea8f09974833739fa9aa8b1e34406ce0c583bc8b", kill_on_drop: false }` [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/pascal_string.rs:43:26 [INFO] [stdout] | [INFO] [stdout] 43 | pstring[i] = try!(AsciiChar::from(char_array[i].clone())); [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/pascal_string.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | let ascii = try!(AsciiStr::from_ascii(bytes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/pascal_string.rs:89:24 [INFO] [stdout] | [INFO] [stdout] 89 | self._try_push(try!(AsciiChar::from(character))) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/pascal_string.rs:122:35 [INFO] [stdout] | [INFO] [stdout] 122 | let ascii: &[AsciiChar] = try!(AsciiStr::from_ascii(s)).as_ref(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:131:6 [INFO] [stdout] | [INFO] [stdout] 131 | impl AsciiExt for PascalStr { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:282:6 [INFO] [stdout] | [INFO] [stdout] 282 | impl AsciiExt for PascalString { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated type `std::ascii::AsciiExt::Owned`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:138:37 [INFO] [stdout] | [INFO] [stdout] 138 | fn to_ascii_uppercase(&self) -> Self::Owned { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated type `std::ascii::AsciiExt::Owned`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:145:37 [INFO] [stdout] | [INFO] [stdout] 145 | fn to_ascii_lowercase(&self) -> Self::Owned { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated type `std::ascii::AsciiExt::Owned`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:289:37 [INFO] [stdout] | [INFO] [stdout] 289 | fn to_ascii_uppercase(&self) -> Self::Owned { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated type `std::ascii::AsciiExt::Owned`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:295:37 [INFO] [stdout] | [INFO] [stdout] 295 | fn to_ascii_lowercase(&self) -> Self::Owned { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/pascal_string.rs:561:32 [INFO] [stdout] | [INFO] [stdout] 561 | fn cause(&self) -> Option<&Error> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 561 - fn cause(&self) -> Option<&Error> { [INFO] [stdout] 561 + fn cause(&self) -> Option<&dyn Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/pascal_string.rs:603:32 [INFO] [stdout] | [INFO] [stdout] 603 | fn cause(&self) -> Option<&Error> { [INFO] [stdout] | ^^^^^ [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 603 - fn cause(&self) -> Option<&Error> { [INFO] [stdout] 603 + fn cause(&self) -> Option<&dyn Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/pascal_string.rs:645:32 [INFO] [stdout] | [INFO] [stdout] 645 | fn cause(&self) -> Option<&Error> { [INFO] [stdout] | ^^^^^ [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 645 - fn cause(&self) -> Option<&Error> { [INFO] [stdout] 645 + fn cause(&self) -> Option<&dyn Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_uppercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:141:15 [INFO] [stdout] | [INFO] [stdout] 141 | upper.make_ascii_uppercase(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_lowercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:148:15 [INFO] [stdout] | [INFO] [stdout] 148 | lower.make_ascii_lowercase(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::eq_ignore_ascii_case`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:153:21 [INFO] [stdout] | [INFO] [stdout] 153 | self.string.eq_ignore_ascii_case(&other.string) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_uppercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:157:21 [INFO] [stdout] | [INFO] [stdout] 157 | self.string.make_ascii_uppercase() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_lowercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:161:21 [INFO] [stdout] | [INFO] [stdout] 161 | self.string.make_ascii_lowercase() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_uppercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:291:15 [INFO] [stdout] | [INFO] [stdout] 291 | upper.make_ascii_uppercase(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_lowercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:297:15 [INFO] [stdout] | [INFO] [stdout] 297 | lower.make_ascii_lowercase(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::eq_ignore_ascii_case`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:302:59 [INFO] [stdout] | [INFO] [stdout] 302 | self.chars().zip(other.chars()).all(|(c0, c1)| c0.eq_ignore_ascii_case(&c1)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_uppercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:308:15 [INFO] [stdout] | [INFO] [stdout] 308 | c.make_ascii_uppercase(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_lowercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:315:15 [INFO] [stdout] | [INFO] [stdout] 315 | c.make_ascii_lowercase(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type annotations needed [INFO] [stdout] --> src/pascal_string.rs:450:52 [INFO] [stdout] | [INFO] [stdout] 450 | let array_ptr = (&mut array as *mut _).offset(1) as *mut [u8; PASCAL_STRING_BUF_SIZE]; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(tyvar_behind_raw_pointer)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #46906 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pascal_string.rs:547:68 [INFO] [stdout] | [INFO] [stdout] 547 | PascalStringCreateError::InputTooLong => fmtr.pad(self.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pascal_string.rs:548:90 [INFO] [stdout] | [INFO] [stdout] 548 | PascalStringCreateError::NotValidAscii(ref e) => write!(fmtr, "{}: {}", self.description(), e) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pascal_string.rs:589:62 [INFO] [stdout] | [INFO] [stdout] 589 | PascalStringAppendError::NoRoom => fmtr.pad(self.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pascal_string.rs:590:90 [INFO] [stdout] | [INFO] [stdout] 590 | PascalStringAppendError::NotValidAscii(ref e) => write!(fmtr, "{}: {}", self.description(), e) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pascal_string.rs:631:68 [INFO] [stdout] | [INFO] [stdout] 631 | AsciiError::Char(ref e) => write!(fmtr, "{}: {}", self.description(), e), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pascal_string.rs:632:67 [INFO] [stdout] | [INFO] [stdout] 632 | AsciiError::Str(ref e) => write!(fmtr, "{}: {}", self.description(), e) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `AsciiChar` [INFO] [stdout] --> src/pascal_str.rs:46:39 [INFO] [stdout] | [INFO] [stdout] 46 | match self.chars().position(|&c| c == AsciiChar::Null) { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `AsciiChar` [INFO] [stdout] --> src/pascal_str.rs:547:64 [INFO] [stdout] | [INFO] [stdout] 547 | self.string.chars().skip(self.current_index).filter(|&&c| c == AsciiChar::LineFeed).count() [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `AsciiChar` [INFO] [stdout] --> src/pascal_string.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let c = self.chars[self.len as usize]; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `AsciiChar` [INFO] [stdout] --> src/pascal_string.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | let c = self[index]; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `AsciiChar` [INFO] [stdout] --> src/pascal_string.rs:307:13 [INFO] [stdout] | [INFO] [stdout] 307 | for c in self.chars_mut() { [INFO] [stdout] | ^ help: to match on the variant, qualify the path: `AsciiChar::c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `AsciiChar` [INFO] [stdout] --> src/pascal_string.rs:314:13 [INFO] [stdout] | [INFO] [stdout] 314 | for c in self.chars_mut() { [INFO] [stdout] | ^ help: to match on the variant, qualify the path: `AsciiChar::c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stderr] Compiling pascal_string v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/pascal_string.rs:43:26 [INFO] [stdout] | [INFO] [stdout] 43 | pstring[i] = try!(AsciiChar::from(char_array[i].clone())); [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/pascal_string.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | let ascii = try!(AsciiStr::from_ascii(bytes)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/pascal_string.rs:89:24 [INFO] [stdout] | [INFO] [stdout] 89 | self._try_push(try!(AsciiChar::from(character))) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/pascal_string.rs:122:35 [INFO] [stdout] | [INFO] [stdout] 122 | let ascii: &[AsciiChar] = try!(AsciiStr::from_ascii(s)).as_ref(); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:131:6 [INFO] [stdout] | [INFO] [stdout] 131 | impl AsciiExt for PascalStr { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ascii::AsciiExt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:282:6 [INFO] [stdout] | [INFO] [stdout] 282 | impl AsciiExt for PascalString { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated type `std::ascii::AsciiExt::Owned`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:138:37 [INFO] [stdout] | [INFO] [stdout] 138 | fn to_ascii_uppercase(&self) -> Self::Owned { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated type `std::ascii::AsciiExt::Owned`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:145:37 [INFO] [stdout] | [INFO] [stdout] 145 | fn to_ascii_lowercase(&self) -> Self::Owned { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated type `std::ascii::AsciiExt::Owned`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:289:37 [INFO] [stdout] | [INFO] [stdout] 289 | fn to_ascii_uppercase(&self) -> Self::Owned { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated type `std::ascii::AsciiExt::Owned`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:295:37 [INFO] [stdout] | [INFO] [stdout] 295 | fn to_ascii_lowercase(&self) -> Self::Owned { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/pascal_string.rs:561:32 [INFO] [stdout] | [INFO] [stdout] 561 | fn cause(&self) -> Option<&Error> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 561 - fn cause(&self) -> Option<&Error> { [INFO] [stdout] 561 + fn cause(&self) -> Option<&dyn Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/pascal_string.rs:603:32 [INFO] [stdout] | [INFO] [stdout] 603 | fn cause(&self) -> Option<&Error> { [INFO] [stdout] | ^^^^^ [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 603 - fn cause(&self) -> Option<&Error> { [INFO] [stdout] 603 + fn cause(&self) -> Option<&dyn Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/pascal_string.rs:645:32 [INFO] [stdout] | [INFO] [stdout] 645 | fn cause(&self) -> Option<&Error> { [INFO] [stdout] | ^^^^^ [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 645 - fn cause(&self) -> Option<&Error> { [INFO] [stdout] 645 + fn cause(&self) -> Option<&dyn Error> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_uppercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:141:15 [INFO] [stdout] | [INFO] [stdout] 141 | upper.make_ascii_uppercase(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_lowercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:148:15 [INFO] [stdout] | [INFO] [stdout] 148 | lower.make_ascii_lowercase(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::eq_ignore_ascii_case`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:153:21 [INFO] [stdout] | [INFO] [stdout] 153 | self.string.eq_ignore_ascii_case(&other.string) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_uppercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:157:21 [INFO] [stdout] | [INFO] [stdout] 157 | self.string.make_ascii_uppercase() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_lowercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_str.rs:161:21 [INFO] [stdout] | [INFO] [stdout] 161 | self.string.make_ascii_lowercase() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_uppercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:291:15 [INFO] [stdout] | [INFO] [stdout] 291 | upper.make_ascii_uppercase(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_lowercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:297:15 [INFO] [stdout] | [INFO] [stdout] 297 | lower.make_ascii_lowercase(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::eq_ignore_ascii_case`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:302:59 [INFO] [stdout] | [INFO] [stdout] 302 | self.chars().zip(other.chars()).all(|(c0, c1)| c0.eq_ignore_ascii_case(&c1)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_uppercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:308:15 [INFO] [stdout] | [INFO] [stdout] 308 | c.make_ascii_uppercase(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_lowercase`: use inherent methods instead [INFO] [stdout] --> src/pascal_string.rs:315:15 [INFO] [stdout] | [INFO] [stdout] 315 | c.make_ascii_lowercase(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type annotations needed [INFO] [stdout] --> src/pascal_string.rs:450:52 [INFO] [stdout] | [INFO] [stdout] 450 | let array_ptr = (&mut array as *mut _).offset(1) as *mut [u8; PASCAL_STRING_BUF_SIZE]; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(tyvar_behind_raw_pointer)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #46906 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pascal_string.rs:547:68 [INFO] [stdout] | [INFO] [stdout] 547 | PascalStringCreateError::InputTooLong => fmtr.pad(self.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pascal_string.rs:548:90 [INFO] [stdout] | [INFO] [stdout] 548 | PascalStringCreateError::NotValidAscii(ref e) => write!(fmtr, "{}: {}", self.description(), e) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pascal_string.rs:589:62 [INFO] [stdout] | [INFO] [stdout] 589 | PascalStringAppendError::NoRoom => fmtr.pad(self.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pascal_string.rs:590:90 [INFO] [stdout] | [INFO] [stdout] 590 | PascalStringAppendError::NotValidAscii(ref e) => write!(fmtr, "{}: {}", self.description(), e) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pascal_string.rs:631:68 [INFO] [stdout] | [INFO] [stdout] 631 | AsciiError::Char(ref e) => write!(fmtr, "{}: {}", self.description(), e), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/pascal_string.rs:632:67 [INFO] [stdout] | [INFO] [stdout] 632 | AsciiError::Str(ref e) => write!(fmtr, "{}: {}", self.description(), e) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `ascii::AsciiChar` [INFO] [stdout] --> src/pascal_str.rs:46:39 [INFO] [stdout] | [INFO] [stdout] 46 | match self.chars().position(|&c| c == AsciiChar::Null) { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `ascii::AsciiChar` [INFO] [stdout] --> src/pascal_str.rs:547:64 [INFO] [stdout] | [INFO] [stdout] 547 | self.string.chars().skip(self.current_index).filter(|&&c| c == AsciiChar::LineFeed).count() [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `ascii::AsciiChar` [INFO] [stdout] --> src/pascal_string.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let c = self.chars[self.len as usize]; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `ascii::AsciiChar` [INFO] [stdout] --> src/pascal_string.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | let c = self[index]; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `ascii::AsciiChar` [INFO] [stdout] --> src/pascal_string.rs:307:13 [INFO] [stdout] | [INFO] [stdout] 307 | for c in self.chars_mut() { [INFO] [stdout] | ^ help: to match on the variant, qualify the path: `ascii::AsciiChar::c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `ascii::AsciiChar` [INFO] [stdout] --> src/pascal_string.rs:314:13 [INFO] [stdout] | [INFO] [stdout] 314 | for c in self.chars_mut() { [INFO] [stdout] | ^ help: to match on the variant, qualify the path: `ascii::AsciiChar::c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.65s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/pascal_string-c1014dcc21d30623) [INFO] running `Command { std: "docker" "inspect" "6cbefb09b35549f1a9fbb1d9ea8f09974833739fa9aa8b1e34406ce0c583bc8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cbefb09b35549f1a9fbb1d9ea8f09974833739fa9aa8b1e34406ce0c583bc8b", kill_on_drop: false }` [INFO] [stdout] 6cbefb09b35549f1a9fbb1d9ea8f09974833739fa9aa8b1e34406ce0c583bc8b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-112/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-112/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 898e0cbd90da34f86e3787cb96700522de4579af519dd8bcc3a4be32d3ea558b [INFO] running `Command { std: "docker" "start" "-a" "898e0cbd90da34f86e3787cb96700522de4579af519dd8bcc3a4be32d3ea558b", kill_on_drop: false }` [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/pascal_string.rs:43:26 [INFO] [stderr] | [INFO] [stderr] 43 | pstring[i] = try!(AsciiChar::from(char_array[i].clone())); [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/pascal_string.rs:63:21 [INFO] [stderr] | [INFO] [stderr] 63 | let ascii = try!(AsciiStr::from_ascii(bytes)); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/pascal_string.rs:89:24 [INFO] [stderr] | [INFO] [stderr] 89 | self._try_push(try!(AsciiChar::from(character))) [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> src/pascal_string.rs:122:35 [INFO] [stderr] | [INFO] [stderr] 122 | let ascii: &[AsciiChar] = try!(AsciiStr::from_ascii(s)).as_ref(); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stderr] --> src/pascal_str.rs:2:17 [INFO] [stderr] | [INFO] [stderr] 2 | use std::ascii::AsciiExt; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stderr] --> src/pascal_str.rs:131:6 [INFO] [stderr] | [INFO] [stderr] 131 | impl AsciiExt for PascalStr { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stderr] --> src/pascal_string.rs:2:17 [INFO] [stderr] | [INFO] [stderr] 2 | use std::ascii::AsciiExt; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated trait `std::ascii::AsciiExt`: use inherent methods instead [INFO] [stderr] --> src/pascal_string.rs:282:6 [INFO] [stderr] | [INFO] [stderr] 282 | impl AsciiExt for PascalString { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated type `std::ascii::AsciiExt::Owned`: use inherent methods instead [INFO] [stderr] --> src/pascal_str.rs:138:37 [INFO] [stderr] | [INFO] [stderr] 138 | fn to_ascii_uppercase(&self) -> Self::Owned { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated type `std::ascii::AsciiExt::Owned`: use inherent methods instead [INFO] [stderr] --> src/pascal_str.rs:145:37 [INFO] [stderr] | [INFO] [stderr] 145 | fn to_ascii_lowercase(&self) -> Self::Owned { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated type `std::ascii::AsciiExt::Owned`: use inherent methods instead [INFO] [stderr] --> src/pascal_string.rs:289:37 [INFO] [stderr] | [INFO] [stderr] 289 | fn to_ascii_uppercase(&self) -> Self::Owned { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated type `std::ascii::AsciiExt::Owned`: use inherent methods instead [INFO] [stderr] --> src/pascal_string.rs:295:37 [INFO] [stderr] | [INFO] [stderr] 295 | fn to_ascii_lowercase(&self) -> Self::Owned { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/pascal_string.rs:561:32 [INFO] [stderr] | [INFO] [stderr] 561 | fn cause(&self) -> Option<&Error> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [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] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 561 - fn cause(&self) -> Option<&Error> { [INFO] [stderr] 561 + fn cause(&self) -> Option<&dyn Error> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/pascal_string.rs:603:32 [INFO] [stderr] | [INFO] [stderr] 603 | fn cause(&self) -> Option<&Error> { [INFO] [stderr] | ^^^^^ [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] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 603 - fn cause(&self) -> Option<&Error> { [INFO] [stderr] 603 + fn cause(&self) -> Option<&dyn Error> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/pascal_string.rs:645:32 [INFO] [stderr] | [INFO] [stderr] 645 | fn cause(&self) -> Option<&Error> { [INFO] [stderr] | ^^^^^ [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] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 645 - fn cause(&self) -> Option<&Error> { [INFO] [stderr] 645 + fn cause(&self) -> Option<&dyn Error> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_uppercase`: use inherent methods instead [INFO] [stderr] --> src/pascal_str.rs:141:15 [INFO] [stderr] | [INFO] [stderr] 141 | upper.make_ascii_uppercase(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_lowercase`: use inherent methods instead [INFO] [stderr] --> src/pascal_str.rs:148:15 [INFO] [stderr] | [INFO] [stderr] 148 | lower.make_ascii_lowercase(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::ascii::AsciiExt::eq_ignore_ascii_case`: use inherent methods instead [INFO] [stderr] --> src/pascal_str.rs:153:21 [INFO] [stderr] | [INFO] [stderr] 153 | self.string.eq_ignore_ascii_case(&other.string) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_uppercase`: use inherent methods instead [INFO] [stderr] --> src/pascal_str.rs:157:21 [INFO] [stderr] | [INFO] [stderr] 157 | self.string.make_ascii_uppercase() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_lowercase`: use inherent methods instead [INFO] [stderr] --> src/pascal_str.rs:161:21 [INFO] [stderr] | [INFO] [stderr] 161 | self.string.make_ascii_lowercase() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_uppercase`: use inherent methods instead [INFO] [stderr] --> src/pascal_string.rs:291:15 [INFO] [stderr] | [INFO] [stderr] 291 | upper.make_ascii_uppercase(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_lowercase`: use inherent methods instead [INFO] [stderr] --> src/pascal_string.rs:297:15 [INFO] [stderr] | [INFO] [stderr] 297 | lower.make_ascii_lowercase(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::ascii::AsciiExt::eq_ignore_ascii_case`: use inherent methods instead [INFO] [stderr] --> src/pascal_string.rs:302:59 [INFO] [stderr] | [INFO] [stderr] 302 | self.chars().zip(other.chars()).all(|(c0, c1)| c0.eq_ignore_ascii_case(&c1)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_uppercase`: use inherent methods instead [INFO] [stderr] --> src/pascal_string.rs:308:15 [INFO] [stderr] | [INFO] [stderr] 308 | c.make_ascii_uppercase(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::ascii::AsciiExt::make_ascii_lowercase`: use inherent methods instead [INFO] [stderr] --> src/pascal_string.rs:315:15 [INFO] [stderr] | [INFO] [stderr] 315 | c.make_ascii_lowercase(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type annotations needed [INFO] [stderr] --> src/pascal_string.rs:450:52 [INFO] [stderr] | [INFO] [stderr] 450 | let array_ptr = (&mut array as *mut _).offset(1) as *mut [u8; PASCAL_STRING_BUF_SIZE]; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(tyvar_behind_raw_pointer)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #46906 [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/pascal_string.rs:547:68 [INFO] [stderr] | [INFO] [stderr] 547 | PascalStringCreateError::InputTooLong => fmtr.pad(self.description()), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/pascal_string.rs:548:90 [INFO] [stderr] | [INFO] [stderr] 548 | PascalStringCreateError::NotValidAscii(ref e) => write!(fmtr, "{}: {}", self.description(), e) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/pascal_string.rs:589:62 [INFO] [stderr] | [INFO] [stderr] 589 | PascalStringAppendError::NoRoom => fmtr.pad(self.description()), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/pascal_string.rs:590:90 [INFO] [stderr] | [INFO] [stderr] 590 | PascalStringAppendError::NotValidAscii(ref e) => write!(fmtr, "{}: {}", self.description(), e) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/pascal_string.rs:631:68 [INFO] [stderr] | [INFO] [stderr] 631 | AsciiError::Char(ref e) => write!(fmtr, "{}: {}", self.description(), e), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/pascal_string.rs:632:67 [INFO] [stderr] | [INFO] [stderr] 632 | AsciiError::Str(ref e) => write!(fmtr, "{}: {}", self.description(), e) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `AsciiChar` [INFO] [stderr] --> src/pascal_str.rs:46:39 [INFO] [stderr] | [INFO] [stderr] 46 | match self.chars().position(|&c| c == AsciiChar::Null) { [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bindings_with_variant_name)]` on by default [INFO] [stderr] [INFO] [stderr] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `AsciiChar` [INFO] [stderr] --> src/pascal_str.rs:547:64 [INFO] [stderr] | [INFO] [stderr] 547 | self.string.chars().skip(self.current_index).filter(|&&c| c == AsciiChar::LineFeed).count() [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `AsciiChar` [INFO] [stderr] --> src/pascal_string.rs:142:13 [INFO] [stderr] | [INFO] [stderr] 142 | let c = self.chars[self.len as usize]; [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `AsciiChar` [INFO] [stderr] --> src/pascal_string.rs:158:13 [INFO] [stderr] | [INFO] [stderr] 158 | let c = self[index]; [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `AsciiChar` [INFO] [stderr] --> src/pascal_string.rs:307:13 [INFO] [stderr] | [INFO] [stderr] 307 | for c in self.chars_mut() { [INFO] [stderr] | ^ help: to match on the variant, qualify the path: `AsciiChar::c` [INFO] [stderr] [INFO] [stderr] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `AsciiChar` [INFO] [stderr] --> src/pascal_string.rs:314:13 [INFO] [stderr] | [INFO] [stderr] 314 | for c in self.chars_mut() { [INFO] [stderr] | ^ help: to match on the variant, qualify the path: `AsciiChar::c` [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0170`. [INFO] [stderr] warning: `pascal_string` (lib) generated 38 warnings [INFO] [stderr] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `ascii::AsciiChar` [INFO] [stderr] --> src/pascal_str.rs:46:39 [INFO] [stderr] | [INFO] [stderr] 46 | match self.chars().position(|&c| c == AsciiChar::Null) { [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bindings_with_variant_name)]` on by default [INFO] [stderr] [INFO] [stderr] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `ascii::AsciiChar` [INFO] [stderr] --> src/pascal_str.rs:547:64 [INFO] [stderr] | [INFO] [stderr] 547 | self.string.chars().skip(self.current_index).filter(|&&c| c == AsciiChar::LineFeed).count() [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `ascii::AsciiChar` [INFO] [stderr] --> src/pascal_string.rs:142:13 [INFO] [stderr] | [INFO] [stderr] 142 | let c = self.chars[self.len as usize]; [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `ascii::AsciiChar` [INFO] [stderr] --> src/pascal_string.rs:158:13 [INFO] [stderr] | [INFO] [stderr] 158 | let c = self[index]; [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `ascii::AsciiChar` [INFO] [stderr] --> src/pascal_string.rs:307:13 [INFO] [stderr] | [INFO] [stderr] 307 | for c in self.chars_mut() { [INFO] [stderr] | ^ help: to match on the variant, qualify the path: `ascii::AsciiChar::c` [INFO] [stderr] [INFO] [stderr] warning[E0170]: pattern binding `c` is named the same as one of the variants of the type `ascii::AsciiChar` [INFO] [stderr] --> src/pascal_string.rs:314:13 [INFO] [stderr] | [INFO] [stderr] 314 | for c in self.chars_mut() { [INFO] [stderr] | ^ help: to match on the variant, qualify the path: `ascii::AsciiChar::c` [INFO] [stderr] [INFO] [stderr] warning: `pascal_string` (lib test) generated 38 warnings (32 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.17s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/pascal_string-c1014dcc21d30623) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stderr] Doc-tests pascal_string [INFO] [stdout] test tests::test_character_append ... ok [INFO] [stdout] test tests::test_as_cstr ... ok [INFO] [stdout] test tests::test_lines_iteration ... ok [INFO] [stdout] test tests::test_string_append ... ok [INFO] [stdout] test tests::test_string_creation ... ok [INFO] [stdout] test tests::test_string_indexing_and_char_iteration ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "898e0cbd90da34f86e3787cb96700522de4579af519dd8bcc3a4be32d3ea558b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "898e0cbd90da34f86e3787cb96700522de4579af519dd8bcc3a4be32d3ea558b", kill_on_drop: false }` [INFO] [stdout] 898e0cbd90da34f86e3787cb96700522de4579af519dd8bcc3a4be32d3ea558b