rustc-serialize 0.3.7

Generic serialization/deserialization support corresponding to the `derive(RustcEncodable, RustcDecodable)` mode in the compiler. Also includes support for hex, base64, and json encoding and decoding.

Build #855272 2023-07-06 09:44:22

Build failed. If you want to re-trigger a documentation build, you can do it here. You can find more information on docs.rs builds documentation on the builds page.

# rustc version rustc 1.72.0-nightly (d9c13cd45 2023-07-05)

# docs.rs version docsrs 0.6.0 (eb803472 2023-06-29)

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/rustc-serialize-0.3.7/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/rustc-serialize-0.3.7/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "3221225472" "--cpus" "3" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a420fdec406141845121210faa381f8029b0be6d4170deff7c4445a424f67918" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "-Z" "unstable-options" "--config" "build.rustdocflags=[\"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20230705-1.72.0-nightly-d9c13cd45\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--disable-per-crate-search\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j3" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 2e8d56d3ea37618343ae77cfd2ad1b606cc76c6470c868dfe3a08bf277ce24cd [INFO] running `Command { std: "docker" "start" "-a" "2e8d56d3ea37618343ae77cfd2ad1b606cc76c6470c868dfe3a08bf277ce24cd", kill_on_drop: false }` [INFO] [stderr] warning: Target filter specified, but no targets matched. This is a no-op [INFO] [stderr] Documenting rustc-serialize v0.3.7 (/opt/rustwide/workdir) [INFO] [stderr] error[E0642]: patterns aren't allowed in functions without bodies [INFO] [stderr] --> src/serialize.rs:144:45 [INFO] [stderr] | [INFO] [stderr] 144 | ... &f_name: &str, [INFO] [stderr] | ^^^^^^^ pattern not allowed in function without body [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::ffi::AsOsStr` [INFO] [stderr] --> src/serialize.rs:18:16 [INFO] [stderr] | [INFO] [stderr] 18 | use std::ffi::{AsOsStr, OsString}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | no `AsOsStr` in `ffi` [INFO] [stderr] | help: a similar name exists in the module: `OsStr` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `std::num::Float`, `std::num::Int` [INFO] [stderr] --> src/json.rs:244:16 [INFO] [stderr] | [INFO] [stderr] 244 | use std::num::{Float, Int}; [INFO] [stderr] | ^^^^^ ^^^ no `Int` in `num` [INFO] [stderr] | | [INFO] [stderr] | no `Float` in `num` [INFO] [stderr] [INFO] [stderr] error[E0405]: cannot find trait `FromError` in module `std::error` [INFO] [stderr] --> src/json.rs:414:18 [INFO] [stderr] | [INFO] [stderr] 414 | impl std::error::FromError<fmt::Error> for EncoderError { [INFO] [stderr] | ^^^^^^^^^ not found in `std::error` [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/base64.rs:257:21 [INFO] [stderr] | [INFO] [stderr] 257 | b'A'...b'Z' => buf |= val - 0x41, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> [INFO] [stderr] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/base64.rs:258:21 [INFO] [stderr] | [INFO] [stderr] 258 | b'a'...b'z' => buf |= val - 0x47, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/base64.rs:259:21 [INFO] [stderr] | [INFO] [stderr] 259 | b'0'...b'9' => buf |= val + 0x04, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/hex.rs:131:21 [INFO] [stderr] | [INFO] [stderr] 131 | b'A'...b'F' => buf |= byte - b'A' + 10, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/hex.rs:132:21 [INFO] [stderr] | [INFO] [stderr] 132 | b'a'...b'f' => buf |= byte - b'a' + 10, [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/hex.rs:133:21 [INFO] [stderr] | [INFO] [stderr] 133 | b'0'...b'9' => buf |= byte - b'0', [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/json.rs:1489:25 [INFO] [stderr] | [INFO] [stderr] 1489 | '0' ... '9' => return self.error(InvalidNumber), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/json.rs:1493:17 [INFO] [stderr] | [INFO] [stderr] 1493 | '1' ... '9' => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/json.rs:1496:33 [INFO] [stderr] | [INFO] [stderr] 1496 | c @ '0' ... '9' => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/json.rs:1525:17 [INFO] [stderr] | [INFO] [stderr] 1525 | '0' ... '9' => (), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/json.rs:1532:25 [INFO] [stderr] | [INFO] [stderr] 1532 | c @ '0' ... '9' => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/json.rs:1559:17 [INFO] [stderr] | [INFO] [stderr] 1559 | '0' ... '9' => (), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/json.rs:1564:25 [INFO] [stderr] | [INFO] [stderr] 1564 | c @ '0' ... '9' => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/json.rs:1590:25 [INFO] [stderr] | [INFO] [stderr] 1590 | c @ '0' ... '9' => n * 16 + ((c as u16) - ('0' as u16)), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/json.rs:1591:25 [INFO] [stderr] | [INFO] [stderr] 1591 | c @ 'a' ... 'f' => n * 16 + (10 + (c as u16) - ('a' as u16)), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/json.rs:1592:25 [INFO] [stderr] | [INFO] [stderr] 1592 | c @ 'A' ... 'F' => n * 16 + (10 + (c as u16) - ('A' as u16)), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/json.rs:1623:32 [INFO] [stderr] | [INFO] [stderr] 1623 | 0xDC00 ... 0xDFFF => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/json.rs:1629:37 [INFO] [stderr] | [INFO] [stderr] 1629 | n1 @ 0xD800 ... 0xDBFF => { [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/json.rs:1859:17 [INFO] [stderr] | [INFO] [stderr] 1859 | '0' ... '9' | '-' => self.parse_number(), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0405, E0432, E0642. [INFO] [stderr] For more information about an error, try `rustc --explain E0405`. [INFO] [stderr] warning: `rustc-serialize` (lib doc) generated 19 warnings [INFO] [stderr] error: could not document `rustc-serialize` [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/rustup-home/toolchains/nightly-x86_64-unknown-linux-gnu/bin/rustdoc --crate-type lib --crate-name rustc_serialize src/lib.rs --target x86_64-unknown-linux-gnu -o /opt/rustwide/target/x86_64-unknown-linux-gnu/doc --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat -C metadata=9ebdaf66b2292764 -L dependency=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/opt/rustwide/target/debug/deps -Z unstable-options --emit=invocation-specific --resource-suffix -20230705-1.72.0-nightly-d9c13cd45 --static-root-path /-/rustdoc.static/ --cap-lints warn --disable-per-crate-search --extern-html-root-takes-precedence --crate-version 0.3.7` (exit status: 1) [INFO] running `Command { std: "docker" "inspect" "2e8d56d3ea37618343ae77cfd2ad1b606cc76c6470c868dfe3a08bf277ce24cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e8d56d3ea37618343ae77cfd2ad1b606cc76c6470c868dfe3a08bf277ce24cd", kill_on_drop: false }` [INFO] [stdout] 2e8d56d3ea37618343ae77cfd2ad1b606cc76c6470c868dfe3a08bf277ce24cd