[INFO] crate dice-command-parser 0.5.1 is already in cache [INFO] documenting dice-command-parser-0.5.1 against try#66dfc4e010913fbed0c4ea91fc2c010004b0f441 for pr-73566 [INFO] extracting crate dice-command-parser 0.5.1 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate dice-command-parser 0.5.1 on toolchain 66dfc4e010913fbed0c4ea91fc2c010004b0f441 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+66dfc4e010913fbed0c4ea91fc2c010004b0f441" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate dice-command-parser 0.5.1 [INFO] finished tweaking crates.io crate dice-command-parser 0.5.1 [INFO] tweaked toml for crates.io crate dice-command-parser 0.5.1 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+66dfc4e010913fbed0c4ea91fc2c010004b0f441" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+66dfc4e010913fbed0c4ea91fc2c010004b0f441" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:819119df93c0f5eca3f29186f14981ef29945a311854d7222af07488600a2584" "/opt/rustwide/cargo-home/bin/cargo" "+66dfc4e010913fbed0c4ea91fc2c010004b0f441" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 90ec2d81d434fe9b1ab8804c1180d2ca048f799491837c84be024fa8649f50e0 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "90ec2d81d434fe9b1ab8804c1180d2ca048f799491837c84be024fa8649f50e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "90ec2d81d434fe9b1ab8804c1180d2ca048f799491837c84be024fa8649f50e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "90ec2d81d434fe9b1ab8804c1180d2ca048f799491837c84be024fa8649f50e0", kill_on_drop: false }` [INFO] [stdout] 90ec2d81d434fe9b1ab8804c1180d2ca048f799491837c84be024fa8649f50e0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-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" "--network" "none" "rustops/crates-build-env@sha256:819119df93c0f5eca3f29186f14981ef29945a311854d7222af07488600a2584" "/opt/rustwide/cargo-home/bin/cargo" "+66dfc4e010913fbed0c4ea91fc2c010004b0f441" "doc" "--frozen" "--no-deps" "--document-private-items" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b66d0611bea55b9e5ada5b11245945f49ff65509a3fbb6ce072508a505c157f3 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b66d0611bea55b9e5ada5b11245945f49ff65509a3fbb6ce072508a505c157f3", kill_on_drop: false }` [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling lexical-core v0.7.4 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking arrayvec v0.5.1 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Compiling syn v1.0.33 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling thiserror-impl v1.0.20 [INFO] [stderr] Checking thiserror v1.0.20 [INFO] [stderr] Documenting dice-command-parser v0.5.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / //! This crate provides functionality for the basic parsing of dice roll commands e.g. `d100`, `d6 + 5`, `2d20 - 1`. [INFO] [stdout] 7 | | //! Given some input it will produce a `DiceRoll` struct which can be used to then calculate a result. [INFO] [stdout] | |______________________________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | #![warn(missing_doc_code_examples)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | / enum Modifier { [INFO] [stdout] 21 | | Plus, [INFO] [stdout] 22 | | Minus, [INFO] [stdout] 23 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | Plus, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | Minus, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | / fn multi_dice_parser(i: &str) -> nom::IResult<&str, (Option<&str>, &str)> { [INFO] [stdout] 26 | | sequence::tuple((combinator::opt(character::complete::digit1), dice_parser))(i) [INFO] [stdout] 27 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | / fn dice_parser(i: &str) -> nom::IResult<&str, &str> { [INFO] [stdout] 30 | | sequence::preceded(character::complete::char('d'), character::complete::digit1)(i) [INFO] [stdout] 31 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | / fn modifier_sign_parser(i: &str) -> nom::IResult<&str, Modifier> { [INFO] [stdout] 34 | | branch::alt(( [INFO] [stdout] 35 | | combinator::value(Modifier::Plus, character::complete::char('+')), [INFO] [stdout] 36 | | combinator::value(Modifier::Minus, character::complete::char('-')), [INFO] [stdout] 37 | | ))(i) [INFO] [stdout] 38 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | / fn modifier_value_parser(i: &str) -> nom::IResult<&str, &str> { [INFO] [stdout] 41 | | character::complete::digit1(i) [INFO] [stdout] 42 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / fn dice_roll_type_parser(i: &str) -> nom::IResult<&str, RollType> { [INFO] [stdout] 45 | | let result = roll_type_parser(i); [INFO] [stdout] 46 | | match result { [INFO] [stdout] 47 | | Ok((i, None)) => Ok((i, RollType::Regular)), [INFO] [stdout] ... | [INFO] [stdout] 50 | | } [INFO] [stdout] 51 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | / fn roll_type_parser(i: &str) -> nom::IResult<&str, Option> { [INFO] [stdout] 54 | | combinator::opt(branch::alt(( [INFO] [stdout] 55 | | combinator::value( [INFO] [stdout] 56 | | RollType::WithAdvantage, [INFO] [stdout] ... | [INFO] [stdout] 82 | | )))(i) [INFO] [stdout] 83 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | /// Provides access to the `DiceRoll` struct. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice_roll.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / /// This struct represents the information required to calculate the result of a dice roll given the command string. [INFO] [stdout] 3 | | /// Validating the sanity of each of the parameters is left to the user. e.g. The number of dice to roll could be 0. [INFO] [stdout] | |____________________________________________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice_roll.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | /// How many dice should be rolled. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice_roll.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | /// How many faces each dice has. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice_roll.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | /// The optional fixed modifier that should be applied to each dice roll. Can be positive or negative. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice_roll.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | /// Whether the roll has advantage, disadvantage, or is a regular roll [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice_roll.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | /// Represents whether a roll has advantage, disadvantage, independence, or not. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice_roll.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | /// The roll has advantage and the highest of the two rolls for a set of dice is taken. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice_roll.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | /// The roll has disadvantage and the lowest of the two rolls for a set of dice is taken. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice_roll.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | /// A regular roll occurs - only one roll needs to occur. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice_roll.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | /// The each of the dice are independent of each other in the roll and the modifier should be applied to each. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice_roll.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | / impl DiceRoll { [INFO] [stdout] 16 | | /// A convinience method for creating a `DiceRoll`. [INFO] [stdout] 17 | | /// [INFO] [stdout] 18 | | /// # Examples [INFO] [stdout] ... | [INFO] [stdout] 77 | | } [INFO] [stdout] 78 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | /// Provides access to the `ParserError` struct. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/error.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | /// Errors that can occur parsing the command input. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/error.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | /// Implies that the string was not in the correct format. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/error.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | /// Occurs when the numbers provided in the input cannot be turned into `i32`. This is likely an overflow or underflow error. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/error.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | /// Reserved for errors that do not fit into other categories. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice_roll.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | / impl Default for RollType { [INFO] [stdout] 94 | | fn default() -> Self { [INFO] [stdout] 95 | | Self::Regular [INFO] [stdout] 96 | | } [INFO] [stdout] 97 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice_roll.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | / fn default() -> Self { [INFO] [stdout] 95 | | Self::Regular [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.75s [INFO] running `Command { std: "docker" "inspect" "b66d0611bea55b9e5ada5b11245945f49ff65509a3fbb6ce072508a505c157f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b66d0611bea55b9e5ada5b11245945f49ff65509a3fbb6ce072508a505c157f3", kill_on_drop: false }` [INFO] [stdout] b66d0611bea55b9e5ada5b11245945f49ff65509a3fbb6ce072508a505c157f3