[INFO] fetching crate cargo-doc2readme 0.0.5... [INFO] checking cargo-doc2readme-0.0.5 against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] extracting crate cargo-doc2readme 0.0.5 into /workspace/builds/worker-92/source [INFO] validating manifest of crates.io crate cargo-doc2readme 0.0.5 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 crates.io crate cargo-doc2readme 0.0.5 [INFO] finished tweaking crates.io crate cargo-doc2readme 0.0.5 [INFO] tweaked toml for crates.io crate cargo-doc2readme 0.0.5 written to /workspace/builds/worker-92/source/Cargo.toml [INFO] crate crates.io crate cargo-doc2readme 0.0.5 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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tera v1.11.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-92/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-92/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] 824911cf8bce1cecdf2cbb4548adca453c29d142cb3c7e24677ead6294e0eae5 [INFO] running `Command { std: "docker" "start" "-a" "824911cf8bce1cecdf2cbb4548adca453c29d142cb3c7e24677ead6294e0eae5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "824911cf8bce1cecdf2cbb4548adca453c29d142cb3c7e24677ead6294e0eae5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "824911cf8bce1cecdf2cbb4548adca453c29d142cb3c7e24677ead6294e0eae5", kill_on_drop: false }` [INFO] [stdout] 824911cf8bce1cecdf2cbb4548adca453c29d142cb3c7e24677ead6294e0eae5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-92/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-92/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] fd76d9b5ae16ceb0f0a9d9d3a5ae1d483e3cd5954a051693b643fd0bd963080c [INFO] running `Command { std: "docker" "start" "-a" "fd76d9b5ae16ceb0f0a9d9d3a5ae1d483e3cd5954a051693b643fd0bd963080c", 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] libz-sys v1.1.3 (as host dependency): libc [INFO] [stderr] proc-macro2 v1.0.27: default, proc-macro [INFO] [stderr] regex v1.5.4 (as host dependency): aho-corasick, default, memchr, perf, perf-cache, perf-dfa, perf-inline, perf-literal, unicode, unicode-age, unicode-bool, unicode-case, unicode-gencat, unicode-script, unicode-segment [INFO] [stderr] regex-syntax v0.6.25 (as host dependency): default, unicode, unicode-age, unicode-bool, unicode-case, unicode-gencat, unicode-script, unicode-segment [INFO] [stderr] syn v1.0.73: clone-impls, default, derive, full, parsing, printing, proc-macro, quote [INFO] [stderr] [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling curl v0.4.38 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Compiling openssl v0.10.34 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking unic-common v0.9.0 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Checking unic-char-range v0.9.0 [INFO] [stderr] Checking unicode-xid v0.2.2 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Checking utf8parse v0.1.1 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking hex v0.3.2 [INFO] [stderr] Checking shell-escape v0.1.5 [INFO] [stderr] Checking deunicode v0.4.3 [INFO] [stderr] Compiling pulldown-cmark v0.8.0 [INFO] [stderr] Checking semver-parser v0.7.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking lazycell v1.3.0 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking home v0.5.3 [INFO] [stderr] Checking glob v0.3.0 [INFO] [stderr] Checking humansize v1.1.1 [INFO] [stderr] Checking os_str_bytes v2.4.0 [INFO] [stderr] Checking rustc-workspace-hack v1.0.0 [INFO] [stderr] Checking opener v0.4.1 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking diff v0.1.12 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking unindent v0.1.7 [INFO] [stderr] Compiling libc v0.2.97 [INFO] [stderr] Checking unicode-bidi v0.3.5 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking thread_local v1.1.3 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Checking socket2 v0.4.0 [INFO] [stderr] Checking anyhow v1.0.41 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking time v0.1.43 [INFO] [stderr] Checking filetime v0.2.14 [INFO] [stderr] Checking jobserver v0.1.22 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking tinyvec v1.2.0 [INFO] [stderr] Checking bstr v0.2.16 [INFO] [stderr] Checking unic-char-property v0.9.0 [INFO] [stderr] Checking itertools v0.10.1 [INFO] [stderr] Checking num-integer v0.1.44 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking vte v0.3.3 [INFO] [stderr] Checking proc-macro2 v1.0.27 [INFO] [stderr] Checking textwrap v0.12.1 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling im-rc v15.0.0 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Checking rand_xoshiro v0.4.0 [INFO] [stderr] Checking unic-ucd-version v0.9.0 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking tar v0.4.35 [INFO] [stderr] Checking unic-ucd-segment v0.9.0 [INFO] [stderr] Checking slug v0.1.4 [INFO] [stderr] Compiling indoc v1.0.3 [INFO] [stderr] Checking pretty_assertions v0.7.2 [INFO] [stderr] Checking strip-ansi-escapes v0.1.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking unic-segment v0.9.0 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Compiling pest_meta v2.1.3 [INFO] [stderr] Compiling cc v1.0.68 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking bitmaps v2.1.0 [INFO] [stderr] Checking globset v0.4.7 [INFO] [stderr] Checking env_logger v0.8.4 [INFO] [stderr] Compiling pest_generator v2.1.3 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking tempfile v3.2.0 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking ignore v0.4.18 [INFO] [stderr] Compiling parse-zoneinfo v0.3.0 [INFO] [stderr] Checking globwalk v0.8.1 [INFO] [stderr] Compiling openssl-sys v0.9.63 [INFO] [stderr] Compiling libz-sys v1.1.3 [INFO] [stderr] Compiling libnghttp2-sys v0.1.6+1.43.0 [INFO] [stderr] Compiling curl-sys v0.4.44+curl-7.77.0 [INFO] [stderr] Compiling libssh2-sys v0.2.21 [INFO] [stderr] Compiling libgit2-sys v0.12.21+1.1.0 [INFO] [stderr] Checking sized-chunks v0.6.5 [INFO] [stderr] Compiling chrono-tz v0.5.3 [INFO] [stderr] Compiling flate2 v1.0.20 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling clap_derive v3.0.0-beta.2 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Compiling cargo v0.54.0 [INFO] [stderr] Checking crypto-hash v0.3.4 [INFO] [stderr] Checking cargo-util v0.1.0 [INFO] [stderr] Checking clap v3.0.0-beta.2 [INFO] [stderr] Checking git2 v0.13.20 [INFO] [stderr] Checking serde v1.0.126 [INFO] [stderr] Checking git2-curl v0.14.1 [INFO] [stderr] Checking semver v0.10.0 [INFO] [stderr] Checking serde_ignored v0.1.2 [INFO] [stderr] Checking cargo-platform v0.1.1 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking crates-io v0.33.0 [INFO] [stderr] Checking rustfix v0.5.1 [INFO] [stderr] Checking tera v1.11.0 [INFO] [stderr] Checking cargo-doc2readme v0.0.5 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 16s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling libz-sys v1.1.3 [INFO] [stderr] Compiling flate2 v1.0.20 [INFO] [stderr] Compiling cargo v0.54.0 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling parse-zoneinfo v0.3.0 [INFO] [stderr] Compiling chrono-tz v0.5.3 [INFO] [stderr] Checking tera v1.11.0 [INFO] [stderr] Checking cargo-doc2readme v0.0.5 (/tmp/fixit) [INFO] [stdout] error[E0432]: unresolved imports `syn::Attribute`, `syn::Item`, `syn::Meta`, `syn::UseTree` [INFO] [stdout] --> src/input.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use syn::{Attribute, Item, Lit, LitStr, Meta, UseTree}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ ^^^^ ^^^^^^^ no `UseTree` in the root [INFO] [stdout] | | | | [INFO] [stdout] | | | no `Meta` in the root [INFO] [stdout] | | no `Item` in the root [INFO] [stdout] | no `Attribute` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `syn::Path` [INFO] [stdout] --> src/output.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use syn::Path; [INFO] [stdout] | ^^^^^^^^^ no `Path` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `syn::Attribute`, `syn::Item`, `syn::Meta`, `syn::UseTree` [INFO] [stdout] --> src/input.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use syn::{Attribute, Item, Lit, LitStr, Meta, UseTree}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ ^^^^ ^^^^^^^ no `UseTree` in the root [INFO] [stdout] | | | | [INFO] [stdout] | | | no `Meta` in the root [INFO] [stdout] | | no `Item` in the root [INFO] [stdout] | no `Attribute` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `syn::Path` [INFO] [stdout] --> src/output.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use syn::Path; [INFO] [stdout] | ^^^^^^^^^ no `Path` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_file` in crate `syn` [INFO] [stdout] --> src/input.rs:102:18 [INFO] [stdout] | [INFO] [stdout] 102 | let file = syn::parse_file(&buf)?; [INFO] [stdout] | ^^^^^^^^^^ not found in `syn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `File` in crate `syn` [INFO] [stdout] --> src/input.rs:118:39 [INFO] [stdout] | [INFO] [stdout] 118 | fn read_rustdoc_from_file(file: &syn::File) -> anyhow::Result { [INFO] [stdout] | ^^^^ not found in `syn` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::File; [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `File` in crate `syn` [INFO] [stdout] --> src/input.rs:186:58 [INFO] [stdout] | [INFO] [stdout] 186 | fn read_scope_from_file(manifest: &Manifest, file: &syn::File) -> anyhow::Result { [INFO] [stdout] | ^^^^ not found in `syn` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::File; [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_str` in crate `syn` [INFO] [stdout] --> src/output.rs:226:26 [INFO] [stdout] | [INFO] [stdout] 226 | if let Ok(path) = syn::parse_str::(&href) { [INFO] [stdout] | ^^^^^^^^^ not found in `syn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_file` in crate `syn` [INFO] [stdout] --> src/input.rs:102:18 [INFO] [stdout] | [INFO] [stdout] 102 | let file = syn::parse_file(&buf)?; [INFO] [stdout] | ^^^^^^^^^^ not found in `syn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `File` in crate `syn` [INFO] [stdout] --> src/input.rs:118:39 [INFO] [stdout] | [INFO] [stdout] 118 | fn read_rustdoc_from_file(file: &syn::File) -> anyhow::Result { [INFO] [stdout] | ^^^^ not found in `syn` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::File; [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `File` in crate `syn` [INFO] [stdout] --> src/input.rs:186:58 [INFO] [stdout] | [INFO] [stdout] 186 | fn read_scope_from_file(manifest: &Manifest, file: &syn::File) -> anyhow::Result { [INFO] [stdout] | ^^^^ not found in `syn` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::File; [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_str` in crate `syn` [INFO] [stdout] --> src/output.rs:226:26 [INFO] [stdout] | [INFO] [stdout] 226 | if let Ok(path) = syn::parse_str::(&href) { [INFO] [stdout] | ^^^^^^^^^ not found in `syn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `str` with `&str` [INFO] [stdout] --> src/output.rs:236:13 [INFO] [stdout] | [INFO] [stdout] 236 | if first == "std" || first == "alloc" || first == "core" { [INFO] [stdout] | ^^ no implementation for `str == &str` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&str>` is not implemented for `str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `str` with `&str` [INFO] [stdout] --> src/output.rs:236:31 [INFO] [stdout] | [INFO] [stdout] 236 | if first == "std" || first == "alloc" || first == "core" { [INFO] [stdout] | ^^ no implementation for `str == &str` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&str>` is not implemented for `str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `str` with `&str` [INFO] [stdout] --> src/output.rs:236:51 [INFO] [stdout] | [INFO] [stdout] 236 | if first == "std" || first == "alloc" || first == "core" { [INFO] [stdout] | ^^ no implementation for `str == &str` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&str>` is not implemented for `str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_str` found for type `str` in the current scope [INFO] [stdout] --> src/output.rs:254:46 [INFO] [stdout] | [INFO] [stdout] 254 | } else if RUST_PRIMITIVES.contains(&first.as_str()) { [INFO] [stdout] | -^^^^^^-- help: remove this method call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/output.rs:255:24 [INFO] [stdout] | [INFO] [stdout] 255 | links.insert(link, format!("https://doc.rust-lang.org/stable/std/primitive.{}.html", first)); [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: required by a bound in `ArgumentV1::<'a>::new` [INFO] [stdout] = note: this error originates in the macro `$crate::__export::format_args` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `str` with `&str` [INFO] [stdout] --> src/output.rs:236:13 [INFO] [stdout] | [INFO] [stdout] 236 | if first == "std" || first == "alloc" || first == "core" { [INFO] [stdout] | ^^ no implementation for `str == &str` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&str>` is not implemented for `str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/output.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `str` with `&str` [INFO] [stdout] --> src/output.rs:236:31 [INFO] [stdout] | [INFO] [stdout] 236 | if first == "std" || first == "alloc" || first == "core" { [INFO] [stdout] | ^^ no implementation for `str == &str` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&str>` is not implemented for `str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `str` with `&str` [INFO] [stdout] --> src/output.rs:236:51 [INFO] [stdout] | [INFO] [stdout] 236 | if first == "std" || first == "alloc" || first == "core" { [INFO] [stdout] | ^^ no implementation for `str == &str` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&str>` is not implemented for `str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_str` found for type `str` in the current scope [INFO] [stdout] --> src/output.rs:254:46 [INFO] [stdout] | [INFO] [stdout] 254 | } else if RUST_PRIMITIVES.contains(&first.as_str()) { [INFO] [stdout] | -^^^^^^-- help: remove this method call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/output.rs:255:24 [INFO] [stdout] | [INFO] [stdout] 255 | links.insert(link, format!("https://doc.rust-lang.org/stable/std/primitive.{}.html", first)); [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: required by a bound in `ArgumentV1::<'a>::new` [INFO] [stdout] = note: this error originates in the macro `$crate::__export::format_args` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0425, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cargo-doc2readme` due to 12 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/output.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0425, E0432, 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" "fd76d9b5ae16ceb0f0a9d9d3a5ae1d483e3cd5954a051693b643fd0bd963080c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd76d9b5ae16ceb0f0a9d9d3a5ae1d483e3cd5954a051693b643fd0bd963080c", kill_on_drop: false }` [INFO] [stdout] fd76d9b5ae16ceb0f0a9d9d3a5ae1d483e3cd5954a051693b643fd0bd963080c