[INFO] cloning repository https://github.com/mrksu/newdoc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mrksu/newdoc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmrksu%2Fnewdoc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmrksu%2Fnewdoc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ae4c78f5bb70aefdcd3953427979809262604512 [INFO] checking mrksu/newdoc against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmrksu%2Fnewdoc" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mrksu/newdoc on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mrksu/newdoc [INFO] finished tweaking git repo https://github.com/mrksu/newdoc [INFO] tweaked toml for git repo https://github.com/mrksu/newdoc written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate git repo https://github.com/mrksu/newdoc already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8fc81de7bcaa0b7c355c314da31ab5827c1121b5bc7f3ae71ed5068d43d6f93c [INFO] running `Command { std: "docker" "start" "-a" "8fc81de7bcaa0b7c355c314da31ab5827c1121b5bc7f3ae71ed5068d43d6f93c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8fc81de7bcaa0b7c355c314da31ab5827c1121b5bc7f3ae71ed5068d43d6f93c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8fc81de7bcaa0b7c355c314da31ab5827c1121b5bc7f3ae71ed5068d43d6f93c", kill_on_drop: false }` [INFO] [stdout] 8fc81de7bcaa0b7c355c314da31ab5827c1121b5bc7f3ae71ed5068d43d6f93c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f05c0c1a0ed123ff4ec7a83fda9e38c5f6fd63b3b6006c0fcf23c65fb43980c0 [INFO] running `Command { std: "docker" "start" "-a" "f05c0c1a0ed123ff4ec7a83fda9e38c5f6fd63b3b6006c0fcf23c65fb43980c0", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] askama_shared v0.11.1 (as host dependency): config, humansize, num-traits, percent-encoding, serde, toml [INFO] [stderr] memchr v2.3.4 (as host dependency): default [INFO] [stderr] [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling radium v0.5.3 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling funty v1.1.0 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling wyz v0.2.0 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling humansize v1.1.1 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Compiling nom v6.2.1 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking proc-macro2 v1.0.27 [INFO] [stderr] Checking log v0.4.14 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling bitvec v0.19.5 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking simplelog v0.10.0 [INFO] [stderr] Checking regex v1.4.6 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking askama_shared v0.11.1 [INFO] [stderr] Compiling askama_derive v0.10.5 [INFO] [stderr] Checking askama v0.10.5 [INFO] [stderr] Checking newdoc v2.9.3 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 39.32s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Compiling nom v6.2.1 [INFO] [stderr] Compiling askama_shared v0.11.1 [INFO] [stderr] Compiling askama_derive v0.10.5 [INFO] [stderr] Checking askama v0.10.5 [INFO] [stderr] Checking newdoc v2.9.3 (/tmp/fixit) [INFO] [stdout] error: TOML support not available [INFO] [stdout] --> src/templating.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Template)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: TOML support not available [INFO] [stdout] --> src/templating.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Template)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: TOML support not available [INFO] [stdout] --> src/templating.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | #[derive(Template)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: TOML support not available [INFO] [stdout] --> src/templating.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 43 | #[derive(Template)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: TOML support not available [INFO] [stdout] --> src/templating.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Template)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: TOML support not available [INFO] [stdout] --> src/templating.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Template)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: TOML support not available [INFO] [stdout] --> src/templating.rs:35:10 [INFO] [stdout] | [INFO] [stdout] 35 | #[derive(Template)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: TOML support not available [INFO] [stdout] --> src/templating.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 43 | #[derive(Template)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `render` found for struct `AssemblyTemplate` in the current scope [INFO] [stdout] --> src/templating.rs:82:14 [INFO] [stdout] | [INFO] [stdout] 19 | struct AssemblyTemplate<'a> { [INFO] [stdout] | --------------------------- method `render` not found for this [INFO] [stdout] ... [INFO] [stdout] 82 | .render(), [INFO] [stdout] | ^^^^^^ method not found in `AssemblyTemplate<'_>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `render`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Template` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `render` found for struct `ConceptTemplate` in the current scope [INFO] [stdout] --> src/templating.rs:88:14 [INFO] [stdout] | [INFO] [stdout] 29 | struct ConceptTemplate<'a> { [INFO] [stdout] | -------------------------- method `render` not found for this [INFO] [stdout] ... [INFO] [stdout] 88 | .render(), [INFO] [stdout] | ^^^^^^ method not found in `ConceptTemplate<'_>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `render`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Template` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `render` found for struct `AssemblyTemplate` in the current scope [INFO] [stdout] --> src/templating.rs:82:14 [INFO] [stdout] | [INFO] [stdout] 19 | struct AssemblyTemplate<'a> { [INFO] [stdout] | --------------------------- method `render` not found for this [INFO] [stdout] ... [INFO] [stdout] 82 | .render(), [INFO] [stdout] | ^^^^^^ method not found in `AssemblyTemplate<'_>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `render`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Template` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `render` found for struct `ProcedureTemplate` in the current scope [INFO] [stdout] --> src/templating.rs:94:14 [INFO] [stdout] | [INFO] [stdout] 37 | struct ProcedureTemplate<'a> { [INFO] [stdout] | ---------------------------- method `render` not found for this [INFO] [stdout] ... [INFO] [stdout] 94 | .render(), [INFO] [stdout] | ^^^^^^ method not found in `ProcedureTemplate<'_>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `render`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Template` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `render` found for struct `ConceptTemplate` in the current scope [INFO] [stdout] --> src/templating.rs:88:14 [INFO] [stdout] | [INFO] [stdout] 29 | struct ConceptTemplate<'a> { [INFO] [stdout] | -------------------------- method `render` not found for this [INFO] [stdout] ... [INFO] [stdout] 88 | .render(), [INFO] [stdout] | ^^^^^^ method not found in `ConceptTemplate<'_>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `render`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Template` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `render` found for struct `ReferenceTemplate` in the current scope [INFO] [stdout] --> src/templating.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 45 | struct ReferenceTemplate<'a> { [INFO] [stdout] | ---------------------------- method `render` not found for this [INFO] [stdout] ... [INFO] [stdout] 100 | .render(), [INFO] [stdout] | ^^^^^^ method not found in `ReferenceTemplate<'_>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `render`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Template` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `render` found for struct `ProcedureTemplate` in the current scope [INFO] [stdout] --> src/templating.rs:94:14 [INFO] [stdout] | [INFO] [stdout] 37 | struct ProcedureTemplate<'a> { [INFO] [stdout] | ---------------------------- method `render` not found for this [INFO] [stdout] ... [INFO] [stdout] 94 | .render(), [INFO] [stdout] | ^^^^^^ method not found in `ProcedureTemplate<'_>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `render`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Template` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `render` found for struct `ReferenceTemplate` in the current scope [INFO] [stdout] --> src/templating.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 45 | struct ReferenceTemplate<'a> { [INFO] [stdout] | ---------------------------- method `render` not found for this [INFO] [stdout] ... [INFO] [stdout] 100 | .render(), [INFO] [stdout] | ^^^^^^ method not found in `ReferenceTemplate<'_>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `render`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Template` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/templating.rs:112:24 [INFO] [stdout] | [INFO] [stdout] 112 | document = multi_comments.replace_all(&document, "").to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `str`, found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/templating.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | document = multi_comments.replace_all(&document, "").to_string(); [INFO] [stdout] | ^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: the left-hand-side of an assignment must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/templating.rs:112:24 [INFO] [stdout] | [INFO] [stdout] 112 | document = multi_comments.replace_all(&document, "").to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `str`, found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/templating.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | document = multi_comments.replace_all(&document, "").to_string(); [INFO] [stdout] | ^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: the left-hand-side of an assignment must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/templating.rs:120:24 [INFO] [stdout] | [INFO] [stdout] 120 | document = single_comments.replace_all(&document, "").to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `str`, found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/templating.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 120 | document = single_comments.replace_all(&document, "").to_string(); [INFO] [stdout] | ^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: the left-hand-side of an assignment must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/templating.rs:120:24 [INFO] [stdout] | [INFO] [stdout] 120 | document = single_comments.replace_all(&document, "").to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `str`, found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/templating.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 120 | document = single_comments.replace_all(&document, "").to_string(); [INFO] [stdout] | ^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: the left-hand-side of an assignment must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/templating.rs:127:24 [INFO] [stdout] | [INFO] [stdout] 127 | document = leading_whitespace.replace(&document, "").to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `str`, found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/templating.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | document = leading_whitespace.replace(&document, "").to_string(); [INFO] [stdout] | ^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: the left-hand-side of an assignment must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/templating.rs:127:24 [INFO] [stdout] | [INFO] [stdout] 127 | document = leading_whitespace.replace(&document, "").to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `str`, found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/templating.rs:127:13 [INFO] [stdout] | [INFO] [stdout] 127 | document = leading_whitespace.replace(&document, "").to_string(); [INFO] [stdout] | ^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: the left-hand-side of an assignment must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/templating.rs:137:24 [INFO] [stdout] | [INFO] [stdout] 137 | document = document.replace(two_blanks, one_blank); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `str`, found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/templating.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | document = document.replace(two_blanks, one_blank); [INFO] [stdout] | ^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: the left-hand-side of an assignment must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot add `&str` to `str` [INFO] [stdout] --> src/templating.rs:142:18 [INFO] [stdout] | [INFO] [stdout] 142 | document + one_blank [INFO] [stdout] | -------- ^ --------- &str [INFO] [stdout] | | [INFO] [stdout] | str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/templating.rs:137:24 [INFO] [stdout] | [INFO] [stdout] 137 | document = document.replace(two_blanks, one_blank); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `str`, found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/templating.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | document = document.replace(two_blanks, one_blank); [INFO] [stdout] | ^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: the left-hand-side of an assignment must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot add `&str` to `str` [INFO] [stdout] --> src/templating.rs:142:18 [INFO] [stdout] | [INFO] [stdout] 142 | document + one_blank [INFO] [stdout] | -------- ^ --------- &str [INFO] [stdout] | | [INFO] [stdout] | str [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0369, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `newdoc` due to 18 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 17 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0369, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to check after updating to 2021 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "f05c0c1a0ed123ff4ec7a83fda9e38c5f6fd63b3b6006c0fcf23c65fb43980c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f05c0c1a0ed123ff4ec7a83fda9e38c5f6fd63b3b6006c0fcf23c65fb43980c0", kill_on_drop: false }` [INFO] [stdout] f05c0c1a0ed123ff4ec7a83fda9e38c5f6fd63b3b6006c0fcf23c65fb43980c0