[INFO] fetching crate counting_sort 1.0.6... [INFO] documenting counting_sort-1.0.6 against try#66dfc4e010913fbed0c4ea91fc2c010004b0f441 for pr-73566 [INFO] extracting crate counting_sort 1.0.6 into /workspace/builds/worker-1/source [INFO] validating manifest of crates.io crate counting_sort 1.0.6 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 counting_sort 1.0.6 [INFO] finished tweaking crates.io crate counting_sort 1.0.6 [INFO] tweaked toml for crates.io crate counting_sort 1.0.6 written to /workspace/builds/worker-1/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-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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] c7745edd2c7f54e8f87ed351c22abff49dfda932f74795e00afca8ede3589bcb [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" "c7745edd2c7f54e8f87ed351c22abff49dfda932f74795e00afca8ede3589bcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c7745edd2c7f54e8f87ed351c22abff49dfda932f74795e00afca8ede3589bcb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7745edd2c7f54e8f87ed351c22abff49dfda932f74795e00afca8ede3589bcb", kill_on_drop: false }` [INFO] [stdout] c7745edd2c7f54e8f87ed351c22abff49dfda932f74795e00afca8ede3589bcb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 4980ecde4ed8efae0476cff98856e65398397e2c401f2d6f9940bfa94c7dd1f7 [INFO] running `Command { std: "docker" "start" "-a" "4980ecde4ed8efae0476cff98856e65398397e2c401f2d6f9940bfa94c7dd1f7", kill_on_drop: false }` [INFO] [stderr] Documenting counting_sort v1.0.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | / /// This enumeration is a list of all possible errors that can happen during [INFO] [stdout] 81 | | /// [`cnt_sort`](trait.CountingSort.html#method.cnt_sort) or [INFO] [stdout] 82 | | /// [`cnt_sort_min_max`](trait.CountingSort.html#method.cnt_sort_min_max). [INFO] [stdout] | |__________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | #![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:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | / /// The conversion from a value of the to-be-sorted type `T` into an [INFO] [stdout] 86 | | /// index ([`usize`](https://doc.rust-lang.org/std/primitive.usize.html)) failed. [INFO] [stdout] 87 | | /// Most likely due to an overflow happening. [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | /// The iterator is empty and therefore nothing can be sorted. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | /// The minimum value is equal to the maximum value, this means sorting is unnecessary. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | / /// The minimum value is larger than the maximum value, most likely due to calling [INFO] [stdout] 94 | | /// [`cnt_sort_min_max`](trait.CountingSort.html#method.cnt_sort_min_max) with the switched [INFO] [stdout] 95 | | /// parameters. [INFO] [stdout] | |___________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 97 | / /// The converted index is still larger than the length of the count value vector. This happens [INFO] [stdout] 98 | | /// when the given maximum value is smaller than the actual maximum value when [INFO] [stdout] 99 | | /// [`cnt_sort_min_max`](trait.CountingSort.html#method.cnt_sort_min_max) is used. [INFO] [stdout] | |______________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:443:1 [INFO] [stdout] | [INFO] [stdout] 443 | / fn counting_sort<'a, ITER, T>(iterator: ITER) -> Result, CountingSortError> [INFO] [stdout] 444 | | where [INFO] [stdout] 445 | | ITER: Iterator + Clone, [INFO] [stdout] 446 | | T: Ord + Copy + TryIntoIndex + 'a, [INFO] [stdout] ... | [INFO] [stdout] 453 | | } [INFO] [stdout] 454 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:457:1 [INFO] [stdout] | [INFO] [stdout] 457 | / fn counting_sort_min_max<'a, ITER, T>( [INFO] [stdout] 458 | | iterator: ITER, [INFO] [stdout] 459 | | min_value: &T, [INFO] [stdout] 460 | | max_value: &T, [INFO] [stdout] ... | [INFO] [stdout] 477 | | re_order(iterator, &mut count_vector, length, &min_value) [INFO] [stdout] 478 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:481:1 [INFO] [stdout] | [INFO] [stdout] 481 | / fn re_order<'a, T, ITER>( [INFO] [stdout] 482 | | iterator: ITER, [INFO] [stdout] 483 | | count_vector: &mut Vec, [INFO] [stdout] 484 | | length: usize, [INFO] [stdout] ... | [INFO] [stdout] 528 | | Ok(sorted_vector) [INFO] [stdout] 529 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:532:1 [INFO] [stdout] | [INFO] [stdout] 532 | / fn count_values<'a, ITER, T>( [INFO] [stdout] 533 | | iterator: &mut ITER, [INFO] [stdout] 534 | | min_value: &T, [INFO] [stdout] 535 | | max_value: &T, [INFO] [stdout] ... | [INFO] [stdout] 580 | | Err(CountingSortError::from_try_into_index_failed()) [INFO] [stdout] 581 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:584:1 [INFO] [stdout] | [INFO] [stdout] 584 | / fn calculate_prefix_sum(count_vector: &mut Vec) { [INFO] [stdout] 585 | | let mut iterator = count_vector.iter_mut(); [INFO] [stdout] 586 | | // skip first element [INFO] [stdout] 587 | | let optional_first_element = iterator.next(); [INFO] [stdout] ... | [INFO] [stdout] 594 | | } [INFO] [stdout] 595 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:598:1 [INFO] [stdout] | [INFO] [stdout] 598 | / fn get_min_max(iterator: &mut ITER) -> Option<(T, T)> [INFO] [stdout] 599 | | where [INFO] [stdout] 600 | | T: Ord + Copy, [INFO] [stdout] 601 | | ITER: Iterator, [INFO] [stdout] ... | [INFO] [stdout] 611 | | None [INFO] [stdout] 612 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:359:5 [INFO] [stdout] | [INFO] [stdout] 359 | /// The type returned whenever the conversion into an index failed. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:362:5 [INFO] [stdout] | [INFO] [stdout] 362 | / /// Tries to convert the value into an index. [INFO] [stdout] 363 | | /// [INFO] [stdout] 364 | | /// The `min_value` parameter is for calculating the offset between the actual value [INFO] [stdout] 365 | | /// and the minimum value. This concept is used in order to only allocate a [INFO] [stdout] 366 | | /// [`Vec`](https://doc.rust-lang.org/std/vec/struct.Vec.html) that only covers the [INFO] [stdout] 367 | | /// distance between the maximum value and the minimum value of the collection. [INFO] [stdout] | |___________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:117:1 [INFO] [stdout] | [INFO] [stdout] 117 | / impl CountingSortError { [INFO] [stdout] 118 | | /// Create IntoIndexFailed error when conversion to index failed. [INFO] [stdout] 119 | | fn from_try_into_index_failed() -> CountingSortError { [INFO] [stdout] 120 | | CountingSortError::IntoIndexFailed("Conversion into index failed") [INFO] [stdout] ... | [INFO] [stdout] 145 | | } [INFO] [stdout] 146 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | /// Create IntoIndexFailed error when conversion to index failed. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | /// Create IteratorEmpty error when the iterator is empty. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | /// Create SortingUnnecessary when minimum value equals maximum value. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | /// Create SortingUnnecessary when minimum value equals maximum value. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 140 | /// Create IndexOutOfBounds when minimum value equals maximum value. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:284:1 [INFO] [stdout] | [INFO] [stdout] 284 | / impl<'a, T, ITER> CountingSort<'a, T> for ITER [INFO] [stdout] 285 | | where [INFO] [stdout] 286 | | T: Ord + Copy + TryIntoIndex + 'a, [INFO] [stdout] 287 | | ITER: Sized + Iterator + Clone, [INFO] [stdout] 288 | | { [INFO] [stdout] 289 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:375:9 [INFO] [stdout] | [INFO] [stdout] 375 | / impl TryIntoIndex for $smaller_int { [INFO] [stdout] 376 | | type Error = <$larger_int as TryInto>::Error; [INFO] [stdout] 377 | | [INFO] [stdout] 378 | | fn try_into_index(value: &Self, min_value: &Self) -> Result { [INFO] [stdout] ... | [INFO] [stdout] 389 | | } [INFO] [stdout] 390 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 424 | try_into_index_impl_for_signed!(i8, i16); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:376:13 [INFO] [stdout] | [INFO] [stdout] 376 | type Error = <$larger_int as TryInto>::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 424 | try_into_index_impl_for_signed!(i8, i16); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:378:13 [INFO] [stdout] | [INFO] [stdout] 378 | / fn try_into_index(value: &Self, min_value: &Self) -> Result { [INFO] [stdout] 379 | | // This conversion can only fail, if the larger integer type has a larger maximum [INFO] [stdout] 380 | | // value then usize. To-be-converted value is always be >= 0 as long as min_value <= [INFO] [stdout] 381 | | // value. [INFO] [stdout] ... | [INFO] [stdout] 388 | | ) [INFO] [stdout] 389 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 424 | try_into_index_impl_for_signed!(i8, i16); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:375:9 [INFO] [stdout] | [INFO] [stdout] 375 | / impl TryIntoIndex for $smaller_int { [INFO] [stdout] 376 | | type Error = <$larger_int as TryInto>::Error; [INFO] [stdout] 377 | | [INFO] [stdout] 378 | | fn try_into_index(value: &Self, min_value: &Self) -> Result { [INFO] [stdout] ... | [INFO] [stdout] 389 | | } [INFO] [stdout] 390 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 425 | try_into_index_impl_for_signed!(i16, i32); [INFO] [stdout] | ------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:376:13 [INFO] [stdout] | [INFO] [stdout] 376 | type Error = <$larger_int as TryInto>::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 425 | try_into_index_impl_for_signed!(i16, i32); [INFO] [stdout] | ------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:378:13 [INFO] [stdout] | [INFO] [stdout] 378 | / fn try_into_index(value: &Self, min_value: &Self) -> Result { [INFO] [stdout] 379 | | // This conversion can only fail, if the larger integer type has a larger maximum [INFO] [stdout] 380 | | // value then usize. To-be-converted value is always be >= 0 as long as min_value <= [INFO] [stdout] 381 | | // value. [INFO] [stdout] ... | [INFO] [stdout] 388 | | ) [INFO] [stdout] 389 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 425 | try_into_index_impl_for_signed!(i16, i32); [INFO] [stdout] | ------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:375:9 [INFO] [stdout] | [INFO] [stdout] 375 | / impl TryIntoIndex for $smaller_int { [INFO] [stdout] 376 | | type Error = <$larger_int as TryInto>::Error; [INFO] [stdout] 377 | | [INFO] [stdout] 378 | | fn try_into_index(value: &Self, min_value: &Self) -> Result { [INFO] [stdout] ... | [INFO] [stdout] 389 | | } [INFO] [stdout] 390 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 426 | try_into_index_impl_for_signed!(i32, i64); [INFO] [stdout] | ------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:376:13 [INFO] [stdout] | [INFO] [stdout] 376 | type Error = <$larger_int as TryInto>::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 426 | try_into_index_impl_for_signed!(i32, i64); [INFO] [stdout] | ------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:378:13 [INFO] [stdout] | [INFO] [stdout] 378 | / fn try_into_index(value: &Self, min_value: &Self) -> Result { [INFO] [stdout] 379 | | // This conversion can only fail, if the larger integer type has a larger maximum [INFO] [stdout] 380 | | // value then usize. To-be-converted value is always be >= 0 as long as min_value <= [INFO] [stdout] 381 | | // value. [INFO] [stdout] ... | [INFO] [stdout] 388 | | ) [INFO] [stdout] 389 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 426 | try_into_index_impl_for_signed!(i32, i64); [INFO] [stdout] | ------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:412:9 [INFO] [stdout] | [INFO] [stdout] 412 | / impl TryIntoIndex for $unsigned { [INFO] [stdout] 413 | | type Error = CountingSortError; [INFO] [stdout] 414 | | #[inline] [INFO] [stdout] 415 | | fn try_into_index(value: &Self, min_value: &Self) -> Result { [INFO] [stdout] ... | [INFO] [stdout] 418 | | } [INFO] [stdout] 419 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 432 | try_into_index_impl_for_small_unsigned!(u8); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:413:13 [INFO] [stdout] | [INFO] [stdout] 413 | type Error = CountingSortError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 432 | try_into_index_impl_for_small_unsigned!(u8); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:415:13 [INFO] [stdout] | [INFO] [stdout] 415 | / fn try_into_index(value: &Self, min_value: &Self) -> Result { [INFO] [stdout] 416 | | // u8 and u16 should always fit into an usize. Therefore no TryInto is needed. [INFO] [stdout] 417 | | Ok(usize::from(*value - *min_value)) [INFO] [stdout] 418 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 432 | try_into_index_impl_for_small_unsigned!(u8); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:412:9 [INFO] [stdout] | [INFO] [stdout] 412 | / impl TryIntoIndex for $unsigned { [INFO] [stdout] 413 | | type Error = CountingSortError; [INFO] [stdout] 414 | | #[inline] [INFO] [stdout] 415 | | fn try_into_index(value: &Self, min_value: &Self) -> Result { [INFO] [stdout] ... | [INFO] [stdout] 418 | | } [INFO] [stdout] 419 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 433 | try_into_index_impl_for_small_unsigned!(u16); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:413:13 [INFO] [stdout] | [INFO] [stdout] 413 | type Error = CountingSortError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 433 | try_into_index_impl_for_small_unsigned!(u16); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:415:13 [INFO] [stdout] | [INFO] [stdout] 415 | / fn try_into_index(value: &Self, min_value: &Self) -> Result { [INFO] [stdout] 416 | | // u8 and u16 should always fit into an usize. Therefore no TryInto is needed. [INFO] [stdout] 417 | | Ok(usize::from(*value - *min_value)) [INFO] [stdout] 418 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 433 | try_into_index_impl_for_small_unsigned!(u16); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:397:9 [INFO] [stdout] | [INFO] [stdout] 397 | / impl TryIntoIndex for $unsigned { [INFO] [stdout] 398 | | type Error = <$unsigned as TryInto>::Error; [INFO] [stdout] 399 | | [INFO] [stdout] 400 | | #[inline] [INFO] [stdout] ... | [INFO] [stdout] 404 | | } [INFO] [stdout] 405 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 436 | try_into_index_impl_for_unsigned!(u32); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:398:13 [INFO] [stdout] | [INFO] [stdout] 398 | type Error = <$unsigned as TryInto>::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 436 | try_into_index_impl_for_unsigned!(u32); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:401:13 [INFO] [stdout] | [INFO] [stdout] 401 | / fn try_into_index(value: &Self, min_value: &Self) -> Result { [INFO] [stdout] 402 | | // Unsigned integer (e.g. u32) could be larger than usize on some HW. [INFO] [stdout] 403 | | <$unsigned>::try_into(*value - *min_value) [INFO] [stdout] 404 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 436 | try_into_index_impl_for_unsigned!(u32); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:397:9 [INFO] [stdout] | [INFO] [stdout] 397 | / impl TryIntoIndex for $unsigned { [INFO] [stdout] 398 | | type Error = <$unsigned as TryInto>::Error; [INFO] [stdout] 399 | | [INFO] [stdout] 400 | | #[inline] [INFO] [stdout] ... | [INFO] [stdout] 404 | | } [INFO] [stdout] 405 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 437 | try_into_index_impl_for_unsigned!(usize); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:398:13 [INFO] [stdout] | [INFO] [stdout] 398 | type Error = <$unsigned as TryInto>::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 437 | try_into_index_impl_for_unsigned!(usize); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:401:13 [INFO] [stdout] | [INFO] [stdout] 401 | / fn try_into_index(value: &Self, min_value: &Self) -> Result { [INFO] [stdout] 402 | | // Unsigned integer (e.g. u32) could be larger than usize on some HW. [INFO] [stdout] 403 | | <$unsigned>::try_into(*value - *min_value) [INFO] [stdout] 404 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 437 | try_into_index_impl_for_unsigned!(usize); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:103:1 [INFO] [stdout] | [INFO] [stdout] 103 | / impl Display for CountingSortError { [INFO] [stdout] 104 | | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> fmt::Result { [INFO] [stdout] 105 | | match self { [INFO] [stdout] 106 | | CountingSortError::IntoIndexFailed(description) => description.fmt(f), [INFO] [stdout] ... | [INFO] [stdout] 112 | | } [INFO] [stdout] 113 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 104 | / fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> fmt::Result { [INFO] [stdout] 105 | | match self { [INFO] [stdout] 106 | | CountingSortError::IntoIndexFailed(description) => description.fmt(f), [INFO] [stdout] 107 | | CountingSortError::IteratorEmpty(description) => description.fmt(f), [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/lib.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | impl Error for CountingSortError {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 45 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.08s [INFO] running `Command { std: "docker" "inspect" "4980ecde4ed8efae0476cff98856e65398397e2c401f2d6f9940bfa94c7dd1f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4980ecde4ed8efae0476cff98856e65398397e2c401f2d6f9940bfa94c7dd1f7", kill_on_drop: false }` [INFO] [stdout] 4980ecde4ed8efae0476cff98856e65398397e2c401f2d6f9940bfa94c7dd1f7