[INFO] fetching crate mediawiki_parser 0.4.2... [INFO] testing mediawiki_parser-0.4.2 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate mediawiki_parser 0.4.2 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate mediawiki_parser 0.4.2 [INFO] finished tweaking crates.io crate mediawiki_parser 0.4.2 [INFO] tweaked toml for crates.io crate mediawiki_parser 0.4.2 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate mediawiki_parser 0.4.2 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "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" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 55 packages to latest compatible versions [INFO] [stderr] Adding colored v1.9.4 (available: v3.0.0) [INFO] [stderr] Adding peg v0.5.7 (available: v0.8.5) [INFO] [stderr] Adding serde_yaml v0.8.26 (available: v0.9.34+deprecated) [INFO] [stderr] Adding structopt v0.2.18 (available: v0.3.26) [INFO] [stderr] Adding time v0.1.45 (available: v0.3.42) [INFO] [stderr] Adding wasi v0.10.0+wasi-snapshot-preview1 (available: v0.10.2+wasi-snapshot-preview1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b138c72ef3cdf43ca3f61ff94c63814d73b28acfa75bcc8afe388a960287b472 [INFO] running `Command { std: "docker" "start" "-a" "b138c72ef3cdf43ca3f61ff94c63814d73b28acfa75bcc8afe388a960287b472", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b138c72ef3cdf43ca3f61ff94c63814d73b28acfa75bcc8afe388a960287b472", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b138c72ef3cdf43ca3f61ff94c63814d73b28acfa75bcc8afe388a960287b472", kill_on_drop: false }` [INFO] [stdout] b138c72ef3cdf43ca3f61ff94c63814d73b28acfa75bcc8afe388a960287b472 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c1728d88a0cb5a72f20ccf50e1218f713435469270b79a9c9f69afd8bf327bac [INFO] running `Command { std: "docker" "start" "-a" "c1728d88a0cb5a72f20ccf50e1218f713435469270b79a9c9f69afd8bf327bac", kill_on_drop: false }` [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling serde_yaml v0.8.26 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling colored v1.9.4 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling peg v0.5.7 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling mediawiki_parser v0.4.2 (/opt/rustwide/workdir) [INFO] [stderr] Compiling structopt-derive v0.2.18 [INFO] [stderr] Compiling structopt v0.2.18 [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/default_transformations.rs:56:6 [INFO] [stdout] | [INFO] [stdout] 56 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/default_transformations.rs:150:6 [INFO] [stdout] | [INFO] [stdout] 150 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/transformations.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | pub type TFunc = Fn(&Element, &[&Element], S) -> TResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 | pub type TFunc = dyn Fn(&Element, &[&Element], S) -> TResult; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/transformations.rs:13:28 [INFO] [stdout] | [INFO] [stdout] 13 | pub type TFuncInplace = Fn(Element, S) -> TResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 | pub type TFuncInplace = dyn Fn(Element, S) -> TResult; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/transformations.rs:55:20 [INFO] [stdout] | [INFO] [stdout] 55 | content_func: &Fn(&TFuncInplace, &mut Vec, S) -> TListResult, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 55 | content_func: &dyn Fn(&TFuncInplace, &mut Vec, S) -> TListResult, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/transformations.rs:154:20 [INFO] [stdout] | [INFO] [stdout] 154 | content_func: &Fn(&TFunc, &[Element], &[&Element], S) -> TListResult, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 154 | content_func: &dyn Fn(&TFunc, &[Element], &[&Element], S) -> TListResult, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/traversion.rs:21:69 [INFO] [stdout] | [INFO] [stdout] 21 | fn work(&mut self, _root: &'a Element, _settings: S, _out: &mut io::Write) -> io::Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 21 | fn work(&mut self, _root: &'a Element, _settings: S, _out: &mut dyn io::Write) -> io::Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/traversion.rs:33:20 [INFO] [stdout] | [INFO] [stdout] 33 | _out: &mut io::Write, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 33 | _out: &mut dyn io::Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/traversion.rs:43:19 [INFO] [stdout] | [INFO] [stdout] 43 | out: &mut io::Write, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 43 | out: &mut dyn io::Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/traversion.rs:54:65 [INFO] [stdout] | [INFO] [stdout] 54 | fn run(&mut self, root: &'a Element, settings: S, out: &mut io::Write) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 54 | fn run(&mut self, root: &'a Element, settings: S, out: &mut dyn io::Write) -> io::Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:158:45 [INFO] [stdout] | [INFO] [stdout] 158 | MWError::ParseError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:159:54 [INFO] [stdout] | [INFO] [stdout] 159 | MWError::TransformationError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/util.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn get_source_lines(source: &str) -> Vec { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 17 | pub fn get_source_lines(source: &str) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:35:34 [INFO] [stdout] | [INFO] [stdout] 35 | fn read_from_reader(reader: &mut io::Read) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 35 | fn read_from_reader(reader: &mut dyn io::Read) -> String { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.97s [INFO] running `Command { std: "docker" "inspect" "c1728d88a0cb5a72f20ccf50e1218f713435469270b79a9c9f69afd8bf327bac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1728d88a0cb5a72f20ccf50e1218f713435469270b79a9c9f69afd8bf327bac", kill_on_drop: false }` [INFO] [stdout] c1728d88a0cb5a72f20ccf50e1218f713435469270b79a9c9f69afd8bf327bac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9755fdf8817c6bec29943404314e45b6417a58b7b3302e9e034a5f9fc0cfd2bb [INFO] running `Command { std: "docker" "start" "-a" "9755fdf8817c6bec29943404314e45b6417a58b7b3302e9e034a5f9fc0cfd2bb", kill_on_drop: false }` [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/default_transformations.rs:56:6 [INFO] [stdout] | [INFO] [stdout] 56 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/default_transformations.rs:150:6 [INFO] [stdout] | [INFO] [stdout] 150 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/transformations.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | pub type TFunc = Fn(&Element, &[&Element], S) -> TResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 | pub type TFunc = dyn Fn(&Element, &[&Element], S) -> TResult; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/transformations.rs:13:28 [INFO] [stdout] | [INFO] [stdout] 13 | pub type TFuncInplace = Fn(Element, S) -> TResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 | pub type TFuncInplace = dyn Fn(Element, S) -> TResult; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/transformations.rs:55:20 [INFO] [stdout] | [INFO] [stdout] 55 | content_func: &Fn(&TFuncInplace, &mut Vec, S) -> TListResult, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 55 | content_func: &dyn Fn(&TFuncInplace, &mut Vec, S) -> TListResult, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/transformations.rs:154:20 [INFO] [stdout] | [INFO] [stdout] 154 | content_func: &Fn(&TFunc, &[Element], &[&Element], S) -> TListResult, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 154 | content_func: &dyn Fn(&TFunc, &[Element], &[&Element], S) -> TListResult, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling mediawiki_parser v0.4.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/traversion.rs:21:69 [INFO] [stdout] | [INFO] [stdout] 21 | fn work(&mut self, _root: &'a Element, _settings: S, _out: &mut io::Write) -> io::Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 21 | fn work(&mut self, _root: &'a Element, _settings: S, _out: &mut dyn io::Write) -> io::Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/traversion.rs:33:20 [INFO] [stdout] | [INFO] [stdout] 33 | _out: &mut io::Write, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 33 | _out: &mut dyn io::Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/traversion.rs:43:19 [INFO] [stdout] | [INFO] [stdout] 43 | out: &mut io::Write, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 43 | out: &mut dyn io::Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/traversion.rs:54:65 [INFO] [stdout] | [INFO] [stdout] 54 | fn run(&mut self, root: &'a Element, settings: S, out: &mut io::Write) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 54 | fn run(&mut self, root: &'a Element, settings: S, out: &mut dyn io::Write) -> io::Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:158:45 [INFO] [stdout] | [INFO] [stdout] 158 | MWError::ParseError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:159:54 [INFO] [stdout] | [INFO] [stdout] 159 | MWError::TransformationError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/util.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn get_source_lines(source: &str) -> Vec { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 17 | pub fn get_source_lines(source: &str) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:35:34 [INFO] [stdout] | [INFO] [stdout] 35 | fn read_from_reader(reader: &mut io::Read) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 35 | fn read_from_reader(reader: &mut dyn io::Read) -> String { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/default_transformations.rs:56:6 [INFO] [stdout] | [INFO] [stdout] 56 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/default_transformations.rs:150:6 [INFO] [stdout] | [INFO] [stdout] 150 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/transformations.rs:16:21 [INFO] [stdout] | [INFO] [stdout] 16 | pub type TFunc = Fn(&Element, &[&Element], S) -> TResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 | pub type TFunc = dyn Fn(&Element, &[&Element], S) -> TResult; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/transformations.rs:13:28 [INFO] [stdout] | [INFO] [stdout] 13 | pub type TFuncInplace = Fn(Element, S) -> TResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 | pub type TFuncInplace = dyn Fn(Element, S) -> TResult; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/transformations.rs:55:20 [INFO] [stdout] | [INFO] [stdout] 55 | content_func: &Fn(&TFuncInplace, &mut Vec, S) -> TListResult, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 55 | content_func: &dyn Fn(&TFuncInplace, &mut Vec, S) -> TListResult, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/transformations.rs:154:20 [INFO] [stdout] | [INFO] [stdout] 154 | content_func: &Fn(&TFunc, &[Element], &[&Element], S) -> TListResult, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 154 | content_func: &dyn Fn(&TFunc, &[Element], &[&Element], S) -> TListResult, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/traversion.rs:21:69 [INFO] [stdout] | [INFO] [stdout] 21 | fn work(&mut self, _root: &'a Element, _settings: S, _out: &mut io::Write) -> io::Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 21 | fn work(&mut self, _root: &'a Element, _settings: S, _out: &mut dyn io::Write) -> io::Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/traversion.rs:33:20 [INFO] [stdout] | [INFO] [stdout] 33 | _out: &mut io::Write, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 33 | _out: &mut dyn io::Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/traversion.rs:43:19 [INFO] [stdout] | [INFO] [stdout] 43 | out: &mut io::Write, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 43 | out: &mut dyn io::Write, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/traversion.rs:54:65 [INFO] [stdout] | [INFO] [stdout] 54 | fn run(&mut self, root: &'a Element, settings: S, out: &mut io::Write) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 54 | fn run(&mut self, root: &'a Element, settings: S, out: &mut dyn io::Write) -> io::Result<()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:158:45 [INFO] [stdout] | [INFO] [stdout] 158 | MWError::ParseError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/error.rs:159:54 [INFO] [stdout] | [INFO] [stdout] 159 | MWError::TransformationError(ref e) => e.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/util.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn get_source_lines(source: &str) -> Vec { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 17 | pub fn get_source_lines(source: &str) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.76s [INFO] running `Command { std: "docker" "inspect" "9755fdf8817c6bec29943404314e45b6417a58b7b3302e9e034a5f9fc0cfd2bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9755fdf8817c6bec29943404314e45b6417a58b7b3302e9e034a5f9fc0cfd2bb", kill_on_drop: false }` [INFO] [stdout] 9755fdf8817c6bec29943404314e45b6417a58b7b3302e9e034a5f9fc0cfd2bb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4f7247667a57f1fde1e2a08f79db229b1aafa36c9c42f0138afd7d89be80706c [INFO] running `Command { std: "docker" "start" "-a" "4f7247667a57f1fde1e2a08f79db229b1aafa36c9c42f0138afd7d89be80706c", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/default_transformations.rs:56:6 [INFO] [stderr] | [INFO] [stderr] 56 | }; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/default_transformations.rs:150:6 [INFO] [stderr] | [INFO] [stderr] 150 | }; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/transformations.rs:16:21 [INFO] [stderr] | [INFO] [stderr] 16 | pub type TFunc = Fn(&Element, &[&Element], S) -> TResult; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 16 | pub type TFunc = dyn Fn(&Element, &[&Element], S) -> TResult; [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/transformations.rs:13:28 [INFO] [stderr] | [INFO] [stderr] 13 | pub type TFuncInplace = Fn(Element, S) -> TResult; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 13 | pub type TFuncInplace = dyn Fn(Element, S) -> TResult; [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/transformations.rs:55:20 [INFO] [stderr] | [INFO] [stderr] 55 | content_func: &Fn(&TFuncInplace, &mut Vec, S) -> TListResult, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 55 | content_func: &dyn Fn(&TFuncInplace, &mut Vec, S) -> TListResult, [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/transformations.rs:154:20 [INFO] [stderr] | [INFO] [stderr] 154 | content_func: &Fn(&TFunc, &[Element], &[&Element], S) -> TListResult, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 154 | content_func: &dyn Fn(&TFunc, &[Element], &[&Element], S) -> TListResult, [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/traversion.rs:21:69 [INFO] [stderr] | [INFO] [stderr] 21 | fn work(&mut self, _root: &'a Element, _settings: S, _out: &mut io::Write) -> io::Result { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 21 | fn work(&mut self, _root: &'a Element, _settings: S, _out: &mut dyn io::Write) -> io::Result { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/traversion.rs:33:20 [INFO] [stderr] | [INFO] [stderr] 33 | _out: &mut io::Write, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 33 | _out: &mut dyn io::Write, [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/traversion.rs:43:19 [INFO] [stderr] | [INFO] [stderr] 43 | out: &mut io::Write, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 43 | out: &mut dyn io::Write, [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/traversion.rs:54:65 [INFO] [stderr] | [INFO] [stderr] 54 | fn run(&mut self, root: &'a Element, settings: S, out: &mut io::Write) -> io::Result<()> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 54 | fn run(&mut self, root: &'a Element, settings: S, out: &mut dyn io::Write) -> io::Result<()> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/error.rs:158:45 [INFO] [stderr] | [INFO] [stderr] 158 | MWError::ParseError(ref e) => e.description(), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/error.rs:159:54 [INFO] [stderr] | [INFO] [stderr] 159 | MWError::TransformationError(ref e) => e.description(), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/util.rs:17:33 [INFO] [stderr] | [INFO] [stderr] 17 | pub fn get_source_lines(source: &str) -> Vec { [INFO] [stderr] | ^^^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 17 | pub fn get_source_lines(source: &str) -> Vec> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `mediawiki_parser` (lib) generated 13 warnings (run `cargo fix --lib -p mediawiki_parser` to apply 9 suggestions) [INFO] [stderr] warning: `mediawiki_parser` (lib test) generated 13 warnings (13 duplicates) [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/main.rs:35:34 [INFO] [stderr] | [INFO] [stderr] 35 | fn read_from_reader(reader: &mut io::Read) -> String { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 35 | fn read_from_reader(reader: &mut dyn io::Read) -> String { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `mediawiki_parser` (bin "mwtoast" test) generated 1 warning (run `cargo fix --bin "mwtoast" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/mediawiki_parser-6e73ea2a430b6350) [INFO] [stdout] [INFO] [stdout] running 63 tests [INFO] [stdout] test tests::generated::block_template_sequence ... ok [INFO] [stdout] test tests::generated::empty_internal_ref ... ok [INFO] [stdout] test tests::generated::empty_math ... ok [INFO] [stdout] test tests::generated::blockquote_markup ... ok [INFO] [stdout] test tests::generated::empty_gallery ... ok [INFO] [stdout] test tests::generated::anonymous_attribute_sequence ... ok [INFO] [stdout] test tests::generated::empty_document ... ok [INFO] [stdout] test tests::generated::empty_nowiki ... ok [INFO] [stdout] test tests::generated::heading_with_equal_sign ... ok [INFO] [stdout] test tests::generated::fixed_width_markup ... ok [INFO] [stdout] test tests::generated::definition_markup ... ok [INFO] [stdout] test tests::generated::heading_with_ancor ... ok [INFO] [stdout] test tests::generated::caption_gallery ... ok [INFO] [stdout] test tests::generated::empty_whitespace_gallery ... ok [INFO] [stdout] test tests::generated::hyperlink_with_caption ... ok [INFO] [stdout] test tests::generated::html_comment ... ok [INFO] [stdout] test tests::generated::internal_ref_with_caption ... ok [INFO] [stdout] test tests::generated::hyperlink_with_formatted_caption ... ok [INFO] [stdout] test tests::generated::inline_template_sequence ... ok [INFO] [stdout] test tests::generated::internal_ref_with_options ... ok [INFO] [stdout] test tests::generated::list_symbols_inline_context ... ok [INFO] [stdout] test tests::generated::markup_and_apostrophe ... ok [INFO] [stdout] test tests::generated::mixed_template_arguments ... ok [INFO] [stdout] test tests::generated::nowiki ... ok [INFO] [stdout] test tests::generated::pre_formatted_text ... ok [INFO] [stdout] test tests::generated::multiple_named_template_arguments ... ok [INFO] [stdout] test tests::generated::multiline_paragraph ... ok [INFO] [stdout] test tests::generated::multiline_bold_markup ... ok [INFO] [stdout] test tests::generated::nested_templates ... ok [INFO] [stdout] test tests::generated::self_closing_tag ... ok [INFO] [stdout] test tests::generated::list_in_template ... ok [INFO] [stdout] test tests::generated::named_argument ... ok [INFO] [stdout] test tests::generated::list_diverse_items ... ok [INFO] [stdout] test tests::generated::list_one_item ... ok [INFO] [stdout] test tests::generated::hyperlink_without_caption ... ok [INFO] [stdout] test tests::generated::nested_html_tag ... ok [INFO] [stdout] test tests::generated::list_mod_line ... ok [INFO] [stdout] test tests::generated::simple_gallery ... ok [INFO] [stdout] test tests::generated::strikethrough ... ok [INFO] [stdout] test tests::generated::special_chars_in_inline_context ... ok [INFO] [stdout] test tests::generated::nested_markup_italic ... ok [INFO] [stdout] test tests::generated::multi_row_table ... ok [INFO] [stdout] test tests::generated::simple_template ... ok [INFO] [stdout] test tests::generated::single_bold_text ... ok [INFO] [stdout] test tests::generated::simple_internal_ref ... ok [INFO] [stdout] test tests::generated::template_listlike_name ... ok [INFO] [stdout] test tests::generated::simple_whitespace_gallery ... ok [INFO] [stdout] test tests::generated::single_unicode_paragraph ... ok [INFO] [stdout] test tests::generated::text_with_brackets ... ok [INFO] [stdout] test tests::generated::simple_inline_math ... ok [INFO] [stdout] test tests::generated::single_cell_table ... ok [INFO] [stdout] test tests::generated::single_italic_text ... ok [INFO] [stdout] test tests::generated::table_caption ... ok [INFO] [stdout] test tests::generated::table_in_template ... ok [INFO] [stdout] test util::tests::test_is_whitespace ... ok [INFO] [stdout] test tests::generated::table_inline_cells ... ok [INFO] [stdout] test tests::generated::table_in_template_mediawiki_hack ... ok [INFO] [stdout] test tests::generated::two_simple_lists ... ok [INFO] [stdout] test tests::generated::special_inline_math ... ok [INFO] [stdout] test tests::generated::underline_markup ... ok [INFO] [stdout] test tests::generated::table_header_cells ... ok [INFO] [stdout] test tests::generated::some_simple_headings ... ok [INFO] [stdout] test tests::generated::template_with_heading_content ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 63 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/mwtoast-1aa0ffe5bd0c3dee) [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.00s [INFO] [stdout] [INFO] [stderr] Doc-tests mediawiki_parser [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/default_transformations.rs:56:6 [INFO] [stderr] | [INFO] [stderr] 56 | }; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> src/default_transformations.rs:150:6 [INFO] [stderr] | [INFO] [stderr] 150 | }; [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [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.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4f7247667a57f1fde1e2a08f79db229b1aafa36c9c42f0138afd7d89be80706c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f7247667a57f1fde1e2a08f79db229b1aafa36c9c42f0138afd7d89be80706c", kill_on_drop: false }` [INFO] [stdout] 4f7247667a57f1fde1e2a08f79db229b1aafa36c9c42f0138afd7d89be80706c