[INFO] crate zkp-primefield 0.1.1 is already in cache [INFO] documenting zkp-primefield-0.1.1 against master#394e1b40d264aa6928811919c1124fa248e7d802 for pr-73566 [INFO] extracting crate zkp-primefield 0.1.1 into /workspace/builds/worker-9/source [INFO] validating manifest of crates.io crate zkp-primefield 0.1.1 on toolchain 394e1b40d264aa6928811919c1124fa248e7d802 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+394e1b40d264aa6928811919c1124fa248e7d802" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate zkp-primefield 0.1.1 [INFO] finished tweaking crates.io crate zkp-primefield 0.1.1 [INFO] tweaked toml for crates.io crate zkp-primefield 0.1.1 written to /workspace/builds/worker-9/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+394e1b40d264aa6928811919c1124fa248e7d802" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+394e1b40d264aa6928811919c1124fa248e7d802" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "+394e1b40d264aa6928811919c1124fa248e7d802" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 444dce458bfab5093654c9f3cec65f76b33e8309bed850bb259383c67e516824 [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" "444dce458bfab5093654c9f3cec65f76b33e8309bed850bb259383c67e516824", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "444dce458bfab5093654c9f3cec65f76b33e8309bed850bb259383c67e516824", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "444dce458bfab5093654c9f3cec65f76b33e8309bed850bb259383c67e516824", kill_on_drop: false }` [INFO] [stdout] 444dce458bfab5093654c9f3cec65f76b33e8309bed850bb259383c67e516824 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "+394e1b40d264aa6928811919c1124fa248e7d802" "doc" "--frozen" "--no-deps" "--document-private-items" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 333f69068a9216251c9824a5e2fc84f285f19f9810486c49d3db242acd128176 [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" "333f69068a9216251c9824a5e2fc84f285f19f9810486c49d3db242acd128176", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling syn v1.0.33 [INFO] [stderr] Compiling hex v0.4.2 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling proc-macro-hack v0.5.16 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Checking no-std-compat v0.1.1 [INFO] [stderr] Checking itertools v0.8.2 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling zkp-macros-lib v0.1.0 [INFO] [stderr] Compiling zkp-macros-impl v0.1.0 [INFO] [stderr] Checking zkp-macros-decl v0.1.0 [INFO] [stderr] Checking zkp-u256 v0.1.1 [INFO] [stderr] Documenting zkp-primefield v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / #![cfg_attr(not(feature = "std"), no_std)] [INFO] [stdout] 6 | | #![forbid(unsafe_code)] [INFO] [stdout] 7 | | #![warn( [INFO] [stdout] 8 | | // Enable sets of warnings [INFO] [stdout] ... | [INFO] [stdout] 55 | | #[cfg(not(feature = "std"))] [INFO] [stdout] 56 | | extern crate no_std_compat as std; [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | missing_doc_code_examples, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:52:1 [INFO] [stdout] | [INFO] [stdout] 52 | pub use zkp_u256 as u256; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct FieldElement(U256); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:15:25 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct FieldElement(U256); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:130:1 [INFO] [stdout] | [INFO] [stdout] 130 | / pub fn invert_batch(to_be_inverted: &[FieldElement]) -> Vec { [INFO] [stdout] 131 | | if to_be_inverted.is_empty() { [INFO] [stdout] 132 | | return Vec::new(); [INFO] [stdout] 133 | | } [INFO] [stdout] ... | [INFO] [stdout] 144 | | inverses [INFO] [stdout] 145 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:116:1 [INFO] [stdout] | [INFO] [stdout] 116 | / pub fn invert_batch_src_dst(source: &[FieldElement], destination: &mut [FieldElement]) { [INFO] [stdout] 117 | | assert_eq!(source.len(), destination.len()); [INFO] [stdout] 118 | | let mut accumulator = FieldElement::ONE; [INFO] [stdout] 119 | | for i in 0..source.len() { [INFO] [stdout] ... | [INFO] [stdout] 127 | | } [INFO] [stdout] 128 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/fft.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #![allow(clippy::module_name_repetitions)] [INFO] [stdout] 3 | | use crate::FieldElement; [INFO] [stdout] 4 | | use std::prelude::v1::*; [INFO] [stdout] 5 | | [INFO] [stdout] ... | [INFO] [stdout] 356 | | } [INFO] [stdout] 357 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/fft.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / /// Permute index for an FFT of `size` [INFO] [stdout] 9 | | /// [INFO] [stdout] 10 | | /// The permutation is it's own inverse. The permutation is currently [INFO] [stdout] 11 | | /// a 'bit-reversal' one, where each index has its binary representation [INFO] [stdout] 12 | | /// reversed. [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/fft.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 25 | /// Permute an array of FFT results. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/fft.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | /// Out-of-place FFT with non-permuted result. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/fft.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | /// Out-of-place inverse FFT with non-permuted result. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/fft.rs:53:1 [INFO] [stdout] | [INFO] [stdout] 53 | /// In-place permuted FFT. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/fft.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | /// Out-of-place permuted FFT with a cofactor. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/fft.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | /// In-place permuted FFT with a cofactor. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/fft.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 85 | /// In-place permuted inverse FFT with cofactor. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/fft.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | / fn fft_permuted_root(root: &FieldElement, coefficients: &mut [FieldElement]) { [INFO] [stdout] 113 | | let n_elements = coefficients.len(); [INFO] [stdout] 114 | | debug_assert!(n_elements.is_power_of_two()); [INFO] [stdout] 115 | | debug_assert!(root.pow(n_elements).is_one()); [INFO] [stdout] ... | [INFO] [stdout] 135 | | } [INFO] [stdout] 136 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / use crate::{montgomery::*, square_root::square_root}; [INFO] [stdout] 2 | | use std::{ [INFO] [stdout] 3 | | ops::{Add, AddAssign, Div, DivAssign, Mul, MulAssign, Neg, Sub, SubAssign}, [INFO] [stdout] 4 | | prelude::v1::*, [INFO] [stdout] ... | [INFO] [stdout] 548 | | } [INFO] [stdout] 549 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:147:1 [INFO] [stdout] | [INFO] [stdout] 147 | / fn cumulative_product(elements: &[FieldElement]) -> Vec { [INFO] [stdout] 148 | | elements [INFO] [stdout] 149 | | .iter() [INFO] [stdout] 150 | | .scan(FieldElement::ONE, |running_product, x| { [INFO] [stdout] ... | [INFO] [stdout] 154 | | .collect() [INFO] [stdout] 155 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / impl FieldElement { [INFO] [stdout] 18 | | pub const GENERATOR: Self = Self::from_montgomery(u256h!( [INFO] [stdout] 19 | | "07fffffffffff9b0ffffffffffffffffffffffffffffffffffffffffffffffa1" [INFO] [stdout] 20 | | )); [INFO] [stdout] ... | [INFO] [stdout] 113 | | } [INFO] [stdout] 114 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | / pub const GENERATOR: Self = Self::from_montgomery(u256h!( [INFO] [stdout] 19 | | "07fffffffffff9b0ffffffffffffffffffffffffffffffffffffffffffffffa1" [INFO] [stdout] 20 | | )); [INFO] [stdout] | |_______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | / /// Prime modulus of the field. [INFO] [stdout] 22 | | /// [INFO] [stdout] 23 | | /// Equal to (1 << 59) | (1 << 4) | 1. [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | / pub const NEGATIVE_ONE: Self = Self::from_montgomery(u256h!( [INFO] [stdout] 28 | | "0000000000000220000000000000000000000000000000000000000000000020" [INFO] [stdout] 29 | | )); [INFO] [stdout] | |_______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub const ONE: Self = Self::from_montgomery(R1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub const ZERO: Self = Self::from_montgomery(U256::ZERO); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | / pub const fn from_u256_const(n: &U256) -> Self { [INFO] [stdout] 34 | | Self(to_montgomery_const(n)) [INFO] [stdout] 35 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | / pub const fn from_montgomery(n: U256) -> Self { [INFO] [stdout] 38 | | // TODO: Uncomment assertion when support in `const fn` is enabled. [INFO] [stdout] 39 | | // See https://github.com/rust-lang/rust/issues/57563 [INFO] [stdout] 40 | | // debug_assert!(n < Self::MODULUS); [INFO] [stdout] 41 | | Self(n) [INFO] [stdout] 42 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | / pub fn from_hex_str(s: &str) -> Self { [INFO] [stdout] 46 | | Self::from(U256::from_hex_str(s)) [INFO] [stdout] 47 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | / pub fn as_montgomery(&self) -> &U256 { [INFO] [stdout] 50 | | &self.0 [INFO] [stdout] 51 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | / pub fn is_zero(&self) -> bool { [INFO] [stdout] 54 | | self.0 == U256::ZERO [INFO] [stdout] 55 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / pub fn is_one(&self) -> bool { [INFO] [stdout] 58 | | self.0 == R1 [INFO] [stdout] 59 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | / pub fn inv(&self) -> Option { [INFO] [stdout] 62 | | inv_redc(&self.0).map(Self) [INFO] [stdout] 63 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | / pub fn double(&self) -> Self { [INFO] [stdout] 66 | | // TODO: Optimize [INFO] [stdout] 67 | | self.clone() + self [INFO] [stdout] 68 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | / pub fn triple(&self) -> Self { [INFO] [stdout] 71 | | // TODO: Optimize [INFO] [stdout] 72 | | self.clone() + self + self [INFO] [stdout] 73 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | / pub fn square(&self) -> Self { [INFO] [stdout] 76 | | Self::from_montgomery(sqr_redc(&self.0)) [INFO] [stdout] 77 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | / pub fn square_root(&self) -> Option { [INFO] [stdout] 80 | | square_root(self) [INFO] [stdout] 81 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | / pub fn neg_assign(&mut self) { [INFO] [stdout] 84 | | *self = self.neg() [INFO] [stdout] 85 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | / pub fn pow>(&self, exponent: T) -> Self { [INFO] [stdout] 88 | | let exponent: U256 = exponent.into(); [INFO] [stdout] 89 | | let mut result = Self::ONE; [INFO] [stdout] 90 | | let mut square = self.clone(); [INFO] [stdout] ... | [INFO] [stdout] 99 | | result [INFO] [stdout] 100 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | / pub fn root>(n: T) -> Option { [INFO] [stdout] 104 | | let n: U256 = n.into(); [INFO] [stdout] 105 | | if n.is_zero() { [INFO] [stdout] 106 | | return Some(Self::ONE); [INFO] [stdout] ... | [INFO] [stdout] 112 | | Some(Self::GENERATOR.pow(q)) [INFO] [stdout] 113 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:234:1 [INFO] [stdout] | [INFO] [stdout] 234 | / impl FieldElement { [INFO] [stdout] 235 | | to_uint!(to_u8, as_u8, u8); [INFO] [stdout] 236 | | to_uint!(to_u16, as_u16, u16); [INFO] [stdout] 237 | | to_uint!(to_u32, as_u32, u32); [INFO] [stdout] ... | [INFO] [stdout] 246 | | to_int!(to_isize, as_isize, isize); [INFO] [stdout] 247 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | / pub fn $fname(&self) -> $type { [INFO] [stdout] 213 | | U256::from(self).$uname() [INFO] [stdout] 214 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 235 | to_uint!(to_u8, as_u8, 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/field.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | / pub fn $fname(&self) -> $type { [INFO] [stdout] 213 | | U256::from(self).$uname() [INFO] [stdout] 214 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 236 | to_uint!(to_u16, as_u16, 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/field.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | / pub fn $fname(&self) -> $type { [INFO] [stdout] 213 | | U256::from(self).$uname() [INFO] [stdout] 214 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 237 | to_uint!(to_u32, as_u32, 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/field.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | / pub fn $fname(&self) -> $type { [INFO] [stdout] 213 | | U256::from(self).$uname() [INFO] [stdout] 214 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 238 | to_uint!(to_u64, as_u64, u64); [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/field.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | / pub fn $fname(&self) -> $type { [INFO] [stdout] 213 | | U256::from(self).$uname() [INFO] [stdout] 214 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 239 | to_uint!(to_u128, as_u128, u128); [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/field.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | / pub fn $fname(&self) -> $type { [INFO] [stdout] 213 | | U256::from(self).$uname() [INFO] [stdout] 214 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 240 | to_uint!(to_usize, as_usize, 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/field.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | / pub fn $fname(&self) -> $type { [INFO] [stdout] 221 | | let n = U256::from(self); [INFO] [stdout] 222 | | let half = Self::MODULUS >> 1; [INFO] [stdout] 223 | | if n < half { [INFO] [stdout] ... | [INFO] [stdout] 227 | | } [INFO] [stdout] 228 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 241 | to_int!(to_i8, as_i8, i8); [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/field.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | / pub fn $fname(&self) -> $type { [INFO] [stdout] 221 | | let n = U256::from(self); [INFO] [stdout] 222 | | let half = Self::MODULUS >> 1; [INFO] [stdout] 223 | | if n < half { [INFO] [stdout] ... | [INFO] [stdout] 227 | | } [INFO] [stdout] 228 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 242 | to_int!(to_i16, as_i16, 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/field.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | / pub fn $fname(&self) -> $type { [INFO] [stdout] 221 | | let n = U256::from(self); [INFO] [stdout] 222 | | let half = Self::MODULUS >> 1; [INFO] [stdout] 223 | | if n < half { [INFO] [stdout] ... | [INFO] [stdout] 227 | | } [INFO] [stdout] 228 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 243 | to_int!(to_i32, as_i32, 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/field.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | / pub fn $fname(&self) -> $type { [INFO] [stdout] 221 | | let n = U256::from(self); [INFO] [stdout] 222 | | let half = Self::MODULUS >> 1; [INFO] [stdout] 223 | | if n < half { [INFO] [stdout] ... | [INFO] [stdout] 227 | | } [INFO] [stdout] 228 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 244 | to_int!(to_i64, as_i64, 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/field.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | / pub fn $fname(&self) -> $type { [INFO] [stdout] 221 | | let n = U256::from(self); [INFO] [stdout] 222 | | let half = Self::MODULUS >> 1; [INFO] [stdout] 223 | | if n < half { [INFO] [stdout] ... | [INFO] [stdout] 227 | | } [INFO] [stdout] 228 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 245 | to_int!(to_i128, as_i128, i128); [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/field.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | / pub fn $fname(&self) -> $type { [INFO] [stdout] 221 | | let n = U256::from(self); [INFO] [stdout] 222 | | let half = Self::MODULUS >> 1; [INFO] [stdout] 223 | | if n < half { [INFO] [stdout] ... | [INFO] [stdout] 227 | | } [INFO] [stdout] 228 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 246 | to_int!(to_isize, as_isize, isize); [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/geometric_series.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / use crate::FieldElement; [INFO] [stdout] 2 | | use std::prelude::v1::*; [INFO] [stdout] 3 | | [INFO] [stdout] 4 | | #[derive(Clone, PartialEq, Eq)] [INFO] [stdout] ... | [INFO] [stdout] 84 | | } [INFO] [stdout] 85 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/geometric_series.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / pub struct GeometricSeries { [INFO] [stdout] 7 | | current: FieldElement, [INFO] [stdout] 8 | | step: FieldElement, [INFO] [stdout] 9 | | length: usize, [INFO] [stdout] 10 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/geometric_series.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | current: FieldElement, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/geometric_series.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | step: FieldElement, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/geometric_series.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | length: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/geometric_series.rs:49:1 [INFO] [stdout] | [INFO] [stdout] 49 | / pub fn geometric_series(base: &FieldElement, step: &FieldElement) -> GeometricSeries { [INFO] [stdout] 50 | | GeometricSeries { [INFO] [stdout] 51 | | current: base.clone(), [INFO] [stdout] 52 | | step: step.clone(), [INFO] [stdout] 53 | | length: usize::max_value(), [INFO] [stdout] 54 | | } [INFO] [stdout] 55 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/geometric_series.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | / pub fn root_series(order: usize) -> GeometricSeries { [INFO] [stdout] 58 | | let root = FieldElement::root(order).expect("No root found of given order."); [INFO] [stdout] 59 | | GeometricSeries { [INFO] [stdout] 60 | | current: FieldElement::ONE, [INFO] [stdout] ... | [INFO] [stdout] 63 | | } [INFO] [stdout] 64 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/geometric_series.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / impl GeometricSeries { [INFO] [stdout] 13 | | pub fn at(&self, index: usize) -> FieldElement { [INFO] [stdout] 14 | | &self.current * self.step.pow(index) [INFO] [stdout] 15 | | } [INFO] [stdout] ... | [INFO] [stdout] 23 | | } [INFO] [stdout] 24 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/geometric_series.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / pub fn at(&self, index: usize) -> FieldElement { [INFO] [stdout] 14 | | &self.current * self.step.pow(index) [INFO] [stdout] 15 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/geometric_series.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | /// Transform the series [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/montgomery.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / #![allow(clippy::module_name_repetitions)] [INFO] [stdout] 3 | | use crate::field::FieldElement; [INFO] [stdout] 4 | | use zkp_macros_decl::u256h; [INFO] [stdout] 5 | | use zkp_u256::{ [INFO] [stdout] ... | [INFO] [stdout] 228 | | } [INFO] [stdout] 229 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/montgomery.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | / pub(crate) const fn to_montgomery_const(x: &U256) -> U256 { [INFO] [stdout] 25 | | let k = x.c0.wrapping_mul(R2.c0).wrapping_mul(M64); [INFO] [stdout] 26 | | let (a0, carry) = mac(0, x.c0, R2.c0, 0); [INFO] [stdout] 27 | | let (a1, carry) = mac(0, x.c0, R2.c1, carry); [INFO] [stdout] ... | [INFO] [stdout] 85 | | U256::from_limbs(a0, a1, a2, a3) [INFO] [stdout] 86 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/montgomery.rs:90:1 [INFO] [stdout] | [INFO] [stdout] 90 | / pub(crate) fn redc(lo: &U256, hi: &U256) -> U256 { [INFO] [stdout] 91 | | // Algorithm 14.32 from Handbook of Applied Cryptography. [INFO] [stdout] 92 | | // TODO: Optimize for the specific values of M64 and MODULUS. [INFO] [stdout] 93 | | let ui = lo.c0.wrapping_mul(M64); [INFO] [stdout] ... | [INFO] [stdout] 123 | | r [INFO] [stdout] 124 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/montgomery.rs:128:1 [INFO] [stdout] | [INFO] [stdout] 128 | / pub(crate) fn mul_redc(x: &U256, y: &U256) -> U256 { [INFO] [stdout] 129 | | // TODO: This might not be faster than: [INFO] [stdout] 130 | | // let (lo, hi) = x.mul_full(y); [INFO] [stdout] 131 | | // return redc(&lo, &hi); [INFO] [stdout] ... | [INFO] [stdout] 182 | | r [INFO] [stdout] 183 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/montgomery.rs:185:1 [INFO] [stdout] | [INFO] [stdout] 185 | / pub(crate) fn sqr_redc(a: &U256) -> U256 { [INFO] [stdout] 186 | | let (lo, hi) = a.sqr_full(); [INFO] [stdout] 187 | | redc(&lo, &hi) [INFO] [stdout] 188 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/montgomery.rs:190:1 [INFO] [stdout] | [INFO] [stdout] 190 | / pub(crate) fn inv_redc(n: &U256) -> Option { [INFO] [stdout] 191 | | n.invmod(&FieldElement::MODULUS) [INFO] [stdout] 192 | | .map(|ni| mul_redc(&ni, &R3)) [INFO] [stdout] 193 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/montgomery.rs:195:1 [INFO] [stdout] | [INFO] [stdout] 195 | / pub(crate) fn to_montgomery(n: &U256) -> U256 { [INFO] [stdout] 196 | | mul_redc(n, &R2) [INFO] [stdout] 197 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/montgomery.rs:199:1 [INFO] [stdout] | [INFO] [stdout] 199 | / pub(crate) fn from_montgomery(n: &U256) -> U256 { [INFO] [stdout] 200 | | redc(n, &U256::ZERO) [INFO] [stdout] 201 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/montgomery.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | const M64: u64 = 0xffff_ffff_ffff_ffff; // = -1 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/montgomery.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / pub(crate) const R1: U256 = [INFO] [stdout] 18 | | u256h!("07fffffffffffdf0ffffffffffffffffffffffffffffffffffffffffffffffe1"); [INFO] [stdout] | |_______________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/montgomery.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | const R2: U256 = u256h!("07ffd4ab5e008810ffffffffff6f800000000001330ffffffffffd737e000401"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/montgomery.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | const R3: U256 = u256h!("038e5f79873c0a6df47d84f8363000187545706677ffcc06cc7177d1406df18e"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/square_root.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / use crate::field::FieldElement; [INFO] [stdout] 2 | | use zkp_macros_decl::u256h; [INFO] [stdout] 3 | | use zkp_u256::U256; [INFO] [stdout] 4 | | [INFO] [stdout] ... | [INFO] [stdout] 108 | | } [INFO] [stdout] 109 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/square_root.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / pub(crate) fn square_root(a: &FieldElement) -> Option { [INFO] [stdout] 6 | | if is_quadratic_residue(a) { [INFO] [stdout] 7 | | Some(tonelli_shanks(a)) [INFO] [stdout] 8 | | } else { [INFO] [stdout] 9 | | None [INFO] [stdout] 10 | | } [INFO] [stdout] 11 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/square_root.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | / fn is_quadratic_residue(a: &FieldElement) -> bool { [INFO] [stdout] 15 | | a.pow(FieldElement::MODULUS >> 1) != FieldElement::NEGATIVE_ONE [INFO] [stdout] 16 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/square_root.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | / fn tonelli_shanks(a: &FieldElement) -> FieldElement { [INFO] [stdout] 30 | | // This algorithm is still correct when the following assertion fails. However, [INFO] [stdout] 31 | | // more efficient algorithms exist when MODULUS % 4 == 1 or MODULUS % 8 == 5 [INFO] [stdout] 32 | | // (3.36 and 3.37 in HAC). [INFO] [stdout] ... | [INFO] [stdout] 53 | | root [INFO] [stdout] 54 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/square_root.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | const BINARY_EXPONENT: usize = 3 * 4 * 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/square_root.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | const SIGNIFICAND: U256 = U256::from_limbs(0x0800_0000_0000_0011_u64, 0, 0, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/square_root.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 24 | / const INITIAL_C: FieldElement = FieldElement::from_montgomery(u256h!( [INFO] [stdout] 25 | | "07222e32c47afc260a35c5be60505574aaada25731fe3be94106bccd64a2bdd8" [INFO] [stdout] 26 | | )); [INFO] [stdout] | |___^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | / impl From<$t> for FieldElement { [INFO] [stdout] 172 | | fn from(n: $t) -> Self { [INFO] [stdout] 173 | | U256::from(n).into() [INFO] [stdout] 174 | | } [INFO] [stdout] 175 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 179 | impl_from_uint!(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/field.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | / fn from(n: $t) -> Self { [INFO] [stdout] 173 | | U256::from(n).into() [INFO] [stdout] 174 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 179 | impl_from_uint!(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/field.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | / impl From<$t> for FieldElement { [INFO] [stdout] 172 | | fn from(n: $t) -> Self { [INFO] [stdout] 173 | | U256::from(n).into() [INFO] [stdout] 174 | | } [INFO] [stdout] 175 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 180 | impl_from_uint!(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/field.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | / fn from(n: $t) -> Self { [INFO] [stdout] 173 | | U256::from(n).into() [INFO] [stdout] 174 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 180 | impl_from_uint!(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/field.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | / impl From<$t> for FieldElement { [INFO] [stdout] 172 | | fn from(n: $t) -> Self { [INFO] [stdout] 173 | | U256::from(n).into() [INFO] [stdout] 174 | | } [INFO] [stdout] 175 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 181 | impl_from_uint!(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/field.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | / fn from(n: $t) -> Self { [INFO] [stdout] 173 | | U256::from(n).into() [INFO] [stdout] 174 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 181 | impl_from_uint!(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/field.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | / impl From<$t> for FieldElement { [INFO] [stdout] 172 | | fn from(n: $t) -> Self { [INFO] [stdout] 173 | | U256::from(n).into() [INFO] [stdout] 174 | | } [INFO] [stdout] 175 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 182 | impl_from_uint!(u64); [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/field.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | / fn from(n: $t) -> Self { [INFO] [stdout] 173 | | U256::from(n).into() [INFO] [stdout] 174 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 182 | impl_from_uint!(u64); [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/field.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | / impl From<$t> for FieldElement { [INFO] [stdout] 172 | | fn from(n: $t) -> Self { [INFO] [stdout] 173 | | U256::from(n).into() [INFO] [stdout] 174 | | } [INFO] [stdout] 175 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 183 | impl_from_uint!(u128); [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/field.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | / fn from(n: $t) -> Self { [INFO] [stdout] 173 | | U256::from(n).into() [INFO] [stdout] 174 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 183 | impl_from_uint!(u128); [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/field.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | / impl From<$t> for FieldElement { [INFO] [stdout] 172 | | fn from(n: $t) -> Self { [INFO] [stdout] 173 | | U256::from(n).into() [INFO] [stdout] 174 | | } [INFO] [stdout] 175 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 184 | impl_from_uint!(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/field.rs:172:13 [INFO] [stdout] | [INFO] [stdout] 172 | / fn from(n: $t) -> Self { [INFO] [stdout] 173 | | U256::from(n).into() [INFO] [stdout] 174 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 184 | impl_from_uint!(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/field.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | / impl From<$t> for FieldElement { [INFO] [stdout] 189 | | fn from(n: $t) -> Self { [INFO] [stdout] 190 | | if n >= 0 { [INFO] [stdout] 191 | | U256::from(n).into() [INFO] [stdout] ... | [INFO] [stdout] 195 | | } [INFO] [stdout] 196 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 200 | impl_from_int!(i8); [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/field.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | / fn from(n: $t) -> Self { [INFO] [stdout] 190 | | if n >= 0 { [INFO] [stdout] 191 | | U256::from(n).into() [INFO] [stdout] 192 | | } else { [INFO] [stdout] 193 | | Self::from(U256::from(-n)).neg() [INFO] [stdout] 194 | | } [INFO] [stdout] 195 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 200 | impl_from_int!(i8); [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/field.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | / impl From<$t> for FieldElement { [INFO] [stdout] 189 | | fn from(n: $t) -> Self { [INFO] [stdout] 190 | | if n >= 0 { [INFO] [stdout] 191 | | U256::from(n).into() [INFO] [stdout] ... | [INFO] [stdout] 195 | | } [INFO] [stdout] 196 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 201 | impl_from_int!(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/field.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | / fn from(n: $t) -> Self { [INFO] [stdout] 190 | | if n >= 0 { [INFO] [stdout] 191 | | U256::from(n).into() [INFO] [stdout] 192 | | } else { [INFO] [stdout] 193 | | Self::from(U256::from(-n)).neg() [INFO] [stdout] 194 | | } [INFO] [stdout] 195 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 201 | impl_from_int!(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/field.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | / impl From<$t> for FieldElement { [INFO] [stdout] 189 | | fn from(n: $t) -> Self { [INFO] [stdout] 190 | | if n >= 0 { [INFO] [stdout] 191 | | U256::from(n).into() [INFO] [stdout] ... | [INFO] [stdout] 195 | | } [INFO] [stdout] 196 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 202 | impl_from_int!(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/field.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | / fn from(n: $t) -> Self { [INFO] [stdout] 190 | | if n >= 0 { [INFO] [stdout] 191 | | U256::from(n).into() [INFO] [stdout] 192 | | } else { [INFO] [stdout] 193 | | Self::from(U256::from(-n)).neg() [INFO] [stdout] 194 | | } [INFO] [stdout] 195 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 202 | impl_from_int!(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/field.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | / impl From<$t> for FieldElement { [INFO] [stdout] 189 | | fn from(n: $t) -> Self { [INFO] [stdout] 190 | | if n >= 0 { [INFO] [stdout] 191 | | U256::from(n).into() [INFO] [stdout] ... | [INFO] [stdout] 195 | | } [INFO] [stdout] 196 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 203 | impl_from_int!(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/field.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | / fn from(n: $t) -> Self { [INFO] [stdout] 190 | | if n >= 0 { [INFO] [stdout] 191 | | U256::from(n).into() [INFO] [stdout] 192 | | } else { [INFO] [stdout] 193 | | Self::from(U256::from(-n)).neg() [INFO] [stdout] 194 | | } [INFO] [stdout] 195 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 203 | impl_from_int!(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/field.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | / impl From<$t> for FieldElement { [INFO] [stdout] 189 | | fn from(n: $t) -> Self { [INFO] [stdout] 190 | | if n >= 0 { [INFO] [stdout] 191 | | U256::from(n).into() [INFO] [stdout] ... | [INFO] [stdout] 195 | | } [INFO] [stdout] 196 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 204 | impl_from_int!(i128); [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/field.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | / fn from(n: $t) -> Self { [INFO] [stdout] 190 | | if n >= 0 { [INFO] [stdout] 191 | | U256::from(n).into() [INFO] [stdout] 192 | | } else { [INFO] [stdout] 193 | | Self::from(U256::from(-n)).neg() [INFO] [stdout] 194 | | } [INFO] [stdout] 195 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 204 | impl_from_int!(i128); [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/field.rs:188:9 [INFO] [stdout] | [INFO] [stdout] 188 | / impl From<$t> for FieldElement { [INFO] [stdout] 189 | | fn from(n: $t) -> Self { [INFO] [stdout] 190 | | if n >= 0 { [INFO] [stdout] 191 | | U256::from(n).into() [INFO] [stdout] ... | [INFO] [stdout] 195 | | } [INFO] [stdout] 196 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 205 | impl_from_int!(isize); [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/field.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | / fn from(n: $t) -> Self { [INFO] [stdout] 190 | | if n >= 0 { [INFO] [stdout] 191 | | U256::from(n).into() [INFO] [stdout] 192 | | } else { [INFO] [stdout] 193 | | Self::from(U256::from(-n)).neg() [INFO] [stdout] 194 | | } [INFO] [stdout] 195 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 205 | impl_from_int!(isize); [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/field.rs:249:1 [INFO] [stdout] | [INFO] [stdout] 249 | / impl From for FieldElement { [INFO] [stdout] 250 | | fn from(n: U256) -> Self { [INFO] [stdout] 251 | | (&n).into() [INFO] [stdout] 252 | | } [INFO] [stdout] 253 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:250:5 [INFO] [stdout] | [INFO] [stdout] 250 | / fn from(n: U256) -> Self { [INFO] [stdout] 251 | | (&n).into() [INFO] [stdout] 252 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:255:1 [INFO] [stdout] | [INFO] [stdout] 255 | / impl From<&U256> for FieldElement { [INFO] [stdout] 256 | | fn from(n: &U256) -> Self { [INFO] [stdout] 257 | | Self::from_montgomery(to_montgomery(n)) [INFO] [stdout] 258 | | } [INFO] [stdout] 259 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:256:5 [INFO] [stdout] | [INFO] [stdout] 256 | / fn from(n: &U256) -> Self { [INFO] [stdout] 257 | | Self::from_montgomery(to_montgomery(n)) [INFO] [stdout] 258 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:261:1 [INFO] [stdout] | [INFO] [stdout] 261 | / impl From for U256 { [INFO] [stdout] 262 | | fn from(n: FieldElement) -> Self { [INFO] [stdout] 263 | | (&n).into() [INFO] [stdout] 264 | | } [INFO] [stdout] 265 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:262:5 [INFO] [stdout] | [INFO] [stdout] 262 | / fn from(n: FieldElement) -> Self { [INFO] [stdout] 263 | | (&n).into() [INFO] [stdout] 264 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:267:1 [INFO] [stdout] | [INFO] [stdout] 267 | / impl From<&FieldElement> for U256 { [INFO] [stdout] 268 | | fn from(n: &FieldElement) -> Self { [INFO] [stdout] 269 | | from_montgomery(n.as_montgomery()) [INFO] [stdout] 270 | | } [INFO] [stdout] 271 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:268:5 [INFO] [stdout] | [INFO] [stdout] 268 | / fn from(n: &FieldElement) -> Self { [INFO] [stdout] 269 | | from_montgomery(n.as_montgomery()) [INFO] [stdout] 270 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/geometric_series.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | / impl Iterator for GeometricSeries { [INFO] [stdout] 27 | | type Item = FieldElement; [INFO] [stdout] 28 | | [INFO] [stdout] 29 | | fn next(&mut self) -> Option { [INFO] [stdout] ... | [INFO] [stdout] 43 | | } [INFO] [stdout] 44 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/geometric_series.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | type Item = FieldElement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/geometric_series.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | / fn next(&mut self) -> Option { [INFO] [stdout] 30 | | if self.length == 0 { [INFO] [stdout] 31 | | None [INFO] [stdout] 32 | | } else { [INFO] [stdout] ... | [INFO] [stdout] 38 | | } [INFO] [stdout] 39 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/geometric_series.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | / fn size_hint(&self) -> (usize, Option) { [INFO] [stdout] 42 | | (self.length, Some(self.length)) [INFO] [stdout] 43 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:158:1 [INFO] [stdout] | [INFO] [stdout] 158 | / impl fmt::Debug for FieldElement { [INFO] [stdout] 159 | | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { [INFO] [stdout] 160 | | let n = U256::from(self); [INFO] [stdout] 161 | | write!( [INFO] [stdout] ... | [INFO] [stdout] 166 | | } [INFO] [stdout] 167 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | / fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { [INFO] [stdout] 160 | | let n = U256::from(self); [INFO] [stdout] 161 | | write!( [INFO] [stdout] 162 | | f, [INFO] [stdout] ... | [INFO] [stdout] 165 | | ) [INFO] [stdout] 166 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:273:1 [INFO] [stdout] | [INFO] [stdout] 273 | / impl Neg for &FieldElement { [INFO] [stdout] 274 | | type Output = FieldElement; [INFO] [stdout] 275 | | [INFO] [stdout] 276 | | fn neg(self) -> Self::Output { [INFO] [stdout] 277 | | FieldElement::ZERO - self [INFO] [stdout] 278 | | } [INFO] [stdout] 279 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:274:5 [INFO] [stdout] | [INFO] [stdout] 274 | type Output = FieldElement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:276:5 [INFO] [stdout] | [INFO] [stdout] 276 | / fn neg(self) -> Self::Output { [INFO] [stdout] 277 | | FieldElement::ZERO - self [INFO] [stdout] 278 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:281:1 [INFO] [stdout] | [INFO] [stdout] 281 | / impl AddAssign<&FieldElement> for FieldElement { [INFO] [stdout] 282 | | fn add_assign(&mut self, rhs: &Self) { [INFO] [stdout] 283 | | self.0 += &rhs.0; [INFO] [stdout] 284 | | if self.0 >= Self::MODULUS { [INFO] [stdout] ... | [INFO] [stdout] 287 | | } [INFO] [stdout] 288 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:282:5 [INFO] [stdout] | [INFO] [stdout] 282 | / fn add_assign(&mut self, rhs: &Self) { [INFO] [stdout] 283 | | self.0 += &rhs.0; [INFO] [stdout] 284 | | if self.0 >= Self::MODULUS { [INFO] [stdout] 285 | | self.0 -= &Self::MODULUS; [INFO] [stdout] 286 | | } [INFO] [stdout] 287 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:290:1 [INFO] [stdout] | [INFO] [stdout] 290 | / impl SubAssign<&FieldElement> for FieldElement { [INFO] [stdout] 291 | | fn sub_assign(&mut self, rhs: &Self) { [INFO] [stdout] 292 | | if self.0 < rhs.0 { [INFO] [stdout] 293 | | self.0 += &Self::MODULUS; [INFO] [stdout] ... | [INFO] [stdout] 296 | | } [INFO] [stdout] 297 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:291:5 [INFO] [stdout] | [INFO] [stdout] 291 | / fn sub_assign(&mut self, rhs: &Self) { [INFO] [stdout] 292 | | if self.0 < rhs.0 { [INFO] [stdout] 293 | | self.0 += &Self::MODULUS; [INFO] [stdout] 294 | | } [INFO] [stdout] 295 | | self.0 -= &rhs.0; [INFO] [stdout] 296 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:299:1 [INFO] [stdout] | [INFO] [stdout] 299 | / impl MulAssign<&FieldElement> for FieldElement { [INFO] [stdout] 300 | | fn mul_assign(&mut self, rhs: &Self) { [INFO] [stdout] 301 | | self.0 = mul_redc(&self.0, &rhs.0); [INFO] [stdout] 302 | | } [INFO] [stdout] 303 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:300:5 [INFO] [stdout] | [INFO] [stdout] 300 | / fn mul_assign(&mut self, rhs: &Self) { [INFO] [stdout] 301 | | self.0 = mul_redc(&self.0, &rhs.0); [INFO] [stdout] 302 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:305:1 [INFO] [stdout] | [INFO] [stdout] 305 | / impl DivAssign<&FieldElement> for FieldElement { [INFO] [stdout] 306 | | fn div_assign(&mut self, rhs: &Self) { [INFO] [stdout] 307 | | *self *= rhs.inv().unwrap(); [INFO] [stdout] 308 | | } [INFO] [stdout] 309 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:306:5 [INFO] [stdout] | [INFO] [stdout] 306 | / fn div_assign(&mut self, rhs: &Self) { [INFO] [stdout] 307 | | *self *= rhs.inv().unwrap(); [INFO] [stdout] 308 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:311:1 [INFO] [stdout] | [INFO] [stdout] 311 | / impl core::iter::Product for FieldElement { [INFO] [stdout] 312 | | fn product>(iter: I) -> Self { [INFO] [stdout] 313 | | iter.fold(Self::ONE, Mul::mul) [INFO] [stdout] 314 | | } [INFO] [stdout] 315 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/field.rs:312:5 [INFO] [stdout] | [INFO] [stdout] 312 | / fn product>(iter: I) -> Self { [INFO] [stdout] 313 | | iter.fold(Self::ONE, Mul::mul) [INFO] [stdout] 314 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 131 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 23.08s [INFO] running `Command { std: "docker" "inspect" "333f69068a9216251c9824a5e2fc84f285f19f9810486c49d3db242acd128176", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "333f69068a9216251c9824a5e2fc84f285f19f9810486c49d3db242acd128176", kill_on_drop: false }` [INFO] [stdout] 333f69068a9216251c9824a5e2fc84f285f19f9810486c49d3db242acd128176