[INFO] crate dnd_dice_roller 0.3.0 is already in cache [INFO] documenting dnd_dice_roller-0.3.0 against try#66dfc4e010913fbed0c4ea91fc2c010004b0f441 for pr-73566 [INFO] extracting crate dnd_dice_roller 0.3.0 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate dnd_dice_roller 0.3.0 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 dnd_dice_roller 0.3.0 [INFO] finished tweaking crates.io crate dnd_dice_roller 0.3.0 [INFO] tweaked toml for crates.io crate dnd_dice_roller 0.3.0 written to /workspace/builds/worker-0/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-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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] 24c5ae2aff86182f46bc87d11f9c014deb654482a96df47d9a5c3ba4bded57b7 [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" "24c5ae2aff86182f46bc87d11f9c014deb654482a96df47d9a5c3ba4bded57b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "24c5ae2aff86182f46bc87d11f9c014deb654482a96df47d9a5c3ba4bded57b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24c5ae2aff86182f46bc87d11f9c014deb654482a96df47d9a5c3ba4bded57b7", kill_on_drop: false }` [INFO] [stdout] 24c5ae2aff86182f46bc87d11f9c014deb654482a96df47d9a5c3ba4bded57b7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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] 1416f25d82799519c0a8f0f1c216907fde486638daff72a3994562b626d5b0fe [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" "1416f25d82799519c0a8f0f1c216907fde486638daff72a3994562b626d5b0fe", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling libc v0.2.71 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling lexical-core v0.7.4 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking arrayvec v0.5.1 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Compiling syn v1.0.33 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand_pcg v0.2.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling thiserror-impl v1.0.20 [INFO] [stderr] Checking thiserror v1.0.20 [INFO] [stderr] Checking dice-command-parser v0.5.1 [INFO] [stderr] Documenting dnd_dice_roller v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #![warn(clippy::all, clippy::pedantic)] [INFO] [stdout] 2 | | #![allow(clippy::module_name_repetitions)] [INFO] [stdout] 3 | | #![warn(missing_doc_code_examples)] [INFO] [stdout] 4 | | [INFO] [stdout] 5 | | pub mod dice; [INFO] [stdout] 6 | | pub mod error; [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | #![warn(missing_doc_code_examples)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / use crate::error::DiceError; [INFO] [stdout] 2 | | use dice_command_parser::{ [INFO] [stdout] 3 | | dice_roll::DiceRoll, dice_roll::RollType as CommandRollType, parse_line, [INFO] [stdout] 4 | | }; [INFO] [stdout] ... | [INFO] [stdout] 415 | | } [INFO] [stdout] 416 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | /// Represents a set of homogenous dice [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | /// The number of dice in the set. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | /// How many sides each dice in the set has. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | /// An optional positive or negative modifier to be added onto any roll using this set of dice. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | /// Whether the dice set should roll as a `RollType::Regular` (which rolls once), or as a `RollType::Advantage` or `RollType::Disadvantage` which rolls twice. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | /// Represents the result of rolling (a set of) `Dice`. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | /// The actual results of the dice that were cast [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | /// The (total) result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:56:1 [INFO] [stdout] | [INFO] [stdout] 56 | / pub struct RawResults { [INFO] [stdout] 57 | | /// Present on `RollType::Advantage`, `RollType::Disadvantage`, `RollType::Independent`, and `RollType::Regular` rolls. [INFO] [stdout] 58 | | pub first_roll: Vec, [INFO] [stdout] 59 | | /// Only present on `RollType::Advantage`, `RollType::Disadvantage` rolls. [INFO] [stdout] 60 | | pub second_roll: Option>, [INFO] [stdout] 61 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | /// Present on `RollType::Advantage`, `RollType::Disadvantage`, `RollType::Independent`, and `RollType::Regular` rolls. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | /// Only present on `RollType::Advantage`, `RollType::Disadvantage` rolls. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | /// Represents the advantage or disadvantage on a roll. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | /// The roll occurs twice, with the highest result being taken. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | /// The roll occurs twice, with the lowest result being taken. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | /// The roll occurs once and the result is taken. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | Independent, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | / impl DiceResult { [INFO] [stdout] 47 | | fn new(results: RawResults, final_result: Vec) -> Self { [INFO] [stdout] 48 | | DiceResult { [INFO] [stdout] 49 | | dice_results: results, [INFO] [stdout] ... | [INFO] [stdout] 52 | | } [INFO] [stdout] 53 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | / fn new(results: RawResults, final_result: Vec) -> Self { [INFO] [stdout] 48 | | DiceResult { [INFO] [stdout] 49 | | dice_results: results, [INFO] [stdout] 50 | | final_result, [INFO] [stdout] 51 | | } [INFO] [stdout] 52 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:63:1 [INFO] [stdout] | [INFO] [stdout] 63 | / impl RawResults { [INFO] [stdout] 64 | | fn new(first_roll: Vec, second_roll: Option>) -> Self { [INFO] [stdout] 65 | | RawResults { [INFO] [stdout] 66 | | first_roll, [INFO] [stdout] ... | [INFO] [stdout] 69 | | } [INFO] [stdout] 70 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | / fn new(first_roll: Vec, second_roll: Option>) -> Self { [INFO] [stdout] 65 | | RawResults { [INFO] [stdout] 66 | | first_roll, [INFO] [stdout] 67 | | second_roll, [INFO] [stdout] 68 | | } [INFO] [stdout] 69 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:114:1 [INFO] [stdout] | [INFO] [stdout] 114 | / impl Dice { [INFO] [stdout] 115 | | fn from_parsed_dice_roll(parsed_roll: &DiceRoll) -> Self { [INFO] [stdout] 116 | | let roll_type = match parsed_roll.roll_type { [INFO] [stdout] 117 | | CommandRollType::Regular => RollType::Regular, [INFO] [stdout] ... | [INFO] [stdout] 238 | | } [INFO] [stdout] 239 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | / fn from_parsed_dice_roll(parsed_roll: &DiceRoll) -> Self { [INFO] [stdout] 116 | | let roll_type = match parsed_roll.roll_type { [INFO] [stdout] 117 | | CommandRollType::Regular => RollType::Regular, [INFO] [stdout] 118 | | CommandRollType::WithAdvantage => RollType::Advantage, [INFO] [stdout] ... | [INFO] [stdout] 128 | | } [INFO] [stdout] 129 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/error.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / use dice_command_parser::error::ParserError; [INFO] [stdout] 2 | | use thiserror::Error; [INFO] [stdout] 3 | | [INFO] [stdout] 4 | | #[derive(Error, Debug)] [INFO] [stdout] ... | [INFO] [stdout] 9 | | Unknown, [INFO] [stdout] 10 | | } [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 | / pub enum DiceError { [INFO] [stdout] 6 | | #[error("Error parsing input: {0}")] [INFO] [stdout] 7 | | ParseError(#[from] ParserError), [INFO] [stdout] 8 | | #[error("An unknown error occurred")] [INFO] [stdout] 9 | | Unknown, [INFO] [stdout] 10 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/error.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | ParseError(#[from] ParserError), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/error.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:72:1 [INFO] [stdout] | [INFO] [stdout] 72 | / impl fmt::Display for RawResults { [INFO] [stdout] 73 | | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { [INFO] [stdout] 74 | | match &self.second_roll { [INFO] [stdout] 75 | | None => write!(f, "{:?}", self.first_roll), [INFO] [stdout] ... | [INFO] [stdout] 78 | | } [INFO] [stdout] 79 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | / fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { [INFO] [stdout] 74 | | match &self.second_roll { [INFO] [stdout] 75 | | None => write!(f, "{:?}", self.first_roll), [INFO] [stdout] 76 | | Some(second_roll) => write!(f, "[{:?}, {:?}]", self.first_roll, second_roll), [INFO] [stdout] 77 | | } [INFO] [stdout] 78 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:81:1 [INFO] [stdout] | [INFO] [stdout] 81 | / impl FromStr for Dice { [INFO] [stdout] 82 | | type Err = DiceError; [INFO] [stdout] 83 | | /// Creates dice from an input string [INFO] [stdout] 84 | | /// [INFO] [stdout] ... | [INFO] [stdout] 111 | | } [INFO] [stdout] 112 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/dice.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | type Err = DiceError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 22.94s [INFO] running `Command { std: "docker" "inspect" "1416f25d82799519c0a8f0f1c216907fde486638daff72a3994562b626d5b0fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1416f25d82799519c0a8f0f1c216907fde486638daff72a3994562b626d5b0fe", kill_on_drop: false }` [INFO] [stdout] 1416f25d82799519c0a8f0f1c216907fde486638daff72a3994562b626d5b0fe