Build #189863 2019-10-07T15:01:41.839890+00:00
# rustc version
rustc 1.39.0-nightly (66bf391c3 2019-09-23)# docs.rs version
docsrs 0.6.0 (62819fc 2019-10-07)# build log
[INFO] running `"docker" "create" "-v" "/home/cratesfyi/workspace/builds/zkp-primefield-0.1.1/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/zkp-primefield-0.1.1/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1001" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=-Z unstable-options --resource-suffix -20190923-1.39.0-nightly-66bf391c3 --static-root-path / --disable-per-crate-search --extern-html-root-url zkp_macros_decl=https://docs.rs/zkp-macros-decl/0.1.0 --extern-html-root-url zkp_u256=https://docs.rs/zkp-u256/0.1.1 --extern-html-root-url crunchy=https://docs.rs/crunchy/0.2.2 --extern-html-root-url itertools=https://docs.rs/itertools/0.8.0 --extern-html-root-url no_std_compat=https://docs.rs/no-std-compat/0.1.1 --extern-html-root-url hex=https://docs.rs/hex/0.4.0 --html-in-header .cargo/katex-header.html" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "3221225472" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2019-09-24" "doc" "--lib" "--no-deps" "--target" "x86_64-unknown-linux-gnu"`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 888f52dfb0e05c93e1589ba6e8e636c13524c5d515bfd890bb63f1dbe7724812
[INFO] running `"docker" "start" "-a" "888f52dfb0e05c93e1589ba6e8e636c13524c5d515bfd890bb63f1dbe7724812"`
[INFO] [stderr] Compiling proc-macro2 v1.0.5
[INFO] [stderr] Compiling unicode-xid v0.2.0
[INFO] [stderr] Compiling syn v1.0.5
[INFO] [stderr] Compiling hex v0.4.0
[INFO] [stderr] Compiling crunchy v0.2.2
[INFO] [stderr] Checking either v1.5.3
[INFO] [stderr] Checking no-std-compat v0.1.1
[INFO] [stderr] Checking itertools v0.8.0
[INFO] [stderr] Compiling quote v1.0.2
[INFO] [stderr] Compiling zkp-macros-lib v0.1.0
[INFO] [stderr] Compiling proc-macro-hack v0.5.10
[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] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/lib.rs:5:1
[INFO] [stderr] |
[INFO] [stderr] 5 | / #![cfg_attr(not(feature = "std"), no_std)]
[INFO] [stderr] 6 | | #![forbid(unsafe_code)]
[INFO] [stderr] 7 | | #![warn(
[INFO] [stderr] 8 | | // Enable sets of warnings
[INFO] [stderr] ... |
[INFO] [stderr] 55 | | #[cfg(not(feature = "std"))]
[INFO] [stderr] 56 | | extern crate no_std_compat as std;
[INFO] [stderr] | |__________________________________^
[INFO] [stderr] |
[INFO] [stderr] note: lint level defined here
[INFO] [stderr] --> src/lib.rs:29:5
[INFO] [stderr] |
[INFO] [stderr] 29 | missing_doc_code_examples,
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/lib.rs:52:1
[INFO] [stderr] |
[INFO] [stderr] 52 | pub use zkp_u256 as u256;
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:15:1
[INFO] [stderr] |
[INFO] [stderr] 15 | pub struct FieldElement(U256);
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:15:25
[INFO] [stderr] |
[INFO] [stderr] 15 | pub struct FieldElement(U256);
[INFO] [stderr] | ^^^^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:130:1
[INFO] [stderr] |
[INFO] [stderr] 130 | / pub fn invert_batch(to_be_inverted: &[FieldElement]) -> Vec<FieldElement> {
[INFO] [stderr] 131 | | if to_be_inverted.is_empty() {
[INFO] [stderr] 132 | | return Vec::new();
[INFO] [stderr] 133 | | }
[INFO] [stderr] ... |
[INFO] [stderr] 144 | | inverses
[INFO] [stderr] 145 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:116:1
[INFO] [stderr] |
[INFO] [stderr] 116 | / pub fn invert_batch_src_dst(source: &[FieldElement], destination: &mut [FieldElement]) {
[INFO] [stderr] 117 | | assert_eq!(source.len(), destination.len());
[INFO] [stderr] 118 | | let mut accumulator = FieldElement::ONE;
[INFO] [stderr] 119 | | for i in 0..source.len() {
[INFO] [stderr] ... |
[INFO] [stderr] 127 | | }
[INFO] [stderr] 128 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/fft.rs:2:1
[INFO] [stderr] |
[INFO] [stderr] 2 | / #![allow(clippy::module_name_repetitions)]
[INFO] [stderr] 3 | | use crate::FieldElement;
[INFO] [stderr] 4 | | use std::prelude::v1::*;
[INFO] [stderr] 5 | |
[INFO] [stderr] ... |
[INFO] [stderr] 356 | | }
[INFO] [stderr] 357 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/fft.rs:8:1
[INFO] [stderr] |
[INFO] [stderr] 8 | / /// Permute index for an FFT of `size`
[INFO] [stderr] 9 | | ///
[INFO] [stderr] 10 | | /// The permutation is it's own inverse. The permutation is currently
[INFO] [stderr] 11 | | /// a 'bit-reversal' one, where each index has its binary representation
[INFO] [stderr] 12 | | /// reversed.
[INFO] [stderr] | |_____________^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/fft.rs:25:1
[INFO] [stderr] |
[INFO] [stderr] 25 | /// Permute an array of FFT results.
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/fft.rs:37:1
[INFO] [stderr] |
[INFO] [stderr] 37 | /// Out-of-place FFT with non-permuted result.
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/fft.rs:45:1
[INFO] [stderr] |
[INFO] [stderr] 45 | /// Out-of-place inverse FFT with non-permuted result.
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/fft.rs:53:1
[INFO] [stderr] |
[INFO] [stderr] 53 | /// In-place permuted FFT.
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/fft.rs:59:1
[INFO] [stderr] |
[INFO] [stderr] 59 | /// Out-of-place permuted FFT with a cofactor.
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/fft.rs:74:1
[INFO] [stderr] |
[INFO] [stderr] 74 | /// In-place permuted FFT with a cofactor.
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/fft.rs:85:1
[INFO] [stderr] |
[INFO] [stderr] 85 | /// In-place permuted inverse FFT with cofactor.
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:1:1
[INFO] [stderr] |
[INFO] [stderr] 1 | / use crate::{montgomery::*, square_root::square_root};
[INFO] [stderr] 2 | | use std::{
[INFO] [stderr] 3 | | ops::{Add, AddAssign, Div, DivAssign, Mul, MulAssign, Neg, Sub, SubAssign},
[INFO] [stderr] 4 | | prelude::v1::*,
[INFO] [stderr] ... |
[INFO] [stderr] 548 | | }
[INFO] [stderr] 549 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:17:1
[INFO] [stderr] |
[INFO] [stderr] 17 | / impl FieldElement {
[INFO] [stderr] 18 | | pub const GENERATOR: Self = Self::from_montgomery(u256h!(
[INFO] [stderr] 19 | | "07fffffffffff9b0ffffffffffffffffffffffffffffffffffffffffffffffa1"
[INFO] [stderr] 20 | | ));
[INFO] [stderr] ... |
[INFO] [stderr] 113 | | }
[INFO] [stderr] 114 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:18:5
[INFO] [stderr] |
[INFO] [stderr] 18 | / pub const GENERATOR: Self = Self::from_montgomery(u256h!(
[INFO] [stderr] 19 | | "07fffffffffff9b0ffffffffffffffffffffffffffffffffffffffffffffffa1"
[INFO] [stderr] 20 | | ));
[INFO] [stderr] | |_______^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:21:5
[INFO] [stderr] |
[INFO] [stderr] 21 | / /// Prime modulus of the field.
[INFO] [stderr] 22 | | ///
[INFO] [stderr] 23 | | /// Equal to (1 << 59) | (1 << 4) | 1.
[INFO] [stderr] | |__________________________________________^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:27:5
[INFO] [stderr] |
[INFO] [stderr] 27 | / pub const NEGATIVE_ONE: Self = Self::from_montgomery(u256h!(
[INFO] [stderr] 28 | | "0000000000000220000000000000000000000000000000000000000000000020"
[INFO] [stderr] 29 | | ));
[INFO] [stderr] | |_______^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:30:5
[INFO] [stderr] |
[INFO] [stderr] 30 | pub const ONE: Self = Self::from_montgomery(R1);
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:31:5
[INFO] [stderr] |
[INFO] [stderr] 31 | pub const ZERO: Self = Self::from_montgomery(U256::ZERO);
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:33:5
[INFO] [stderr] |
[INFO] [stderr] 33 | / pub const fn from_u256_const(n: &U256) -> Self {
[INFO] [stderr] 34 | | Self(to_montgomery_const(n))
[INFO] [stderr] 35 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:37:5
[INFO] [stderr] |
[INFO] [stderr] 37 | / pub const fn from_montgomery(n: U256) -> Self {
[INFO] [stderr] 38 | | // TODO: Uncomment assertion when support in `const fn` is enabled.
[INFO] [stderr] 39 | | // See https://github.com/rust-lang/rust/issues/57563
[INFO] [stderr] 40 | | // debug_assert!(n < Self::MODULUS);
[INFO] [stderr] 41 | | Self(n)
[INFO] [stderr] 42 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:45:5
[INFO] [stderr] |
[INFO] [stderr] 45 | / pub fn from_hex_str(s: &str) -> Self {
[INFO] [stderr] 46 | | Self::from(U256::from_hex_str(s))
[INFO] [stderr] 47 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:49:5
[INFO] [stderr] |
[INFO] [stderr] 49 | / pub fn as_montgomery(&self) -> &U256 {
[INFO] [stderr] 50 | | &self.0
[INFO] [stderr] 51 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:53:5
[INFO] [stderr] |
[INFO] [stderr] 53 | / pub fn is_zero(&self) -> bool {
[INFO] [stderr] 54 | | self.0 == U256::ZERO
[INFO] [stderr] 55 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:57:5
[INFO] [stderr] |
[INFO] [stderr] 57 | / pub fn is_one(&self) -> bool {
[INFO] [stderr] 58 | | self.0 == R1
[INFO] [stderr] 59 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:61:5
[INFO] [stderr] |
[INFO] [stderr] 61 | / pub fn inv(&self) -> Option<Self> {
[INFO] [stderr] 62 | | inv_redc(&self.0).map(Self)
[INFO] [stderr] 63 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:65:5
[INFO] [stderr] |
[INFO] [stderr] 65 | / pub fn double(&self) -> Self {
[INFO] [stderr] 66 | | // TODO: Optimize
[INFO] [stderr] 67 | | self.clone() + self
[INFO] [stderr] 68 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:70:5
[INFO] [stderr] |
[INFO] [stderr] 70 | / pub fn triple(&self) -> Self {
[INFO] [stderr] 71 | | // TODO: Optimize
[INFO] [stderr] 72 | | self.clone() + self + self
[INFO] [stderr] 73 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:75:5
[INFO] [stderr] |
[INFO] [stderr] 75 | / pub fn square(&self) -> Self {
[INFO] [stderr] 76 | | Self::from_montgomery(sqr_redc(&self.0))
[INFO] [stderr] 77 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:79:5
[INFO] [stderr] |
[INFO] [stderr] 79 | / pub fn square_root(&self) -> Option<Self> {
[INFO] [stderr] 80 | | square_root(self)
[INFO] [stderr] 81 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:83:5
[INFO] [stderr] |
[INFO] [stderr] 83 | / pub fn neg_assign(&mut self) {
[INFO] [stderr] 84 | | *self = self.neg()
[INFO] [stderr] 85 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:87:5
[INFO] [stderr] |
[INFO] [stderr] 87 | / pub fn pow<T: Into<U256>>(&self, exponent: T) -> Self {
[INFO] [stderr] 88 | | let exponent: U256 = exponent.into();
[INFO] [stderr] 89 | | let mut result = Self::ONE;
[INFO] [stderr] 90 | | let mut square = self.clone();
[INFO] [stderr] ... |
[INFO] [stderr] 99 | | result
[INFO] [stderr] 100 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:103:5
[INFO] [stderr] |
[INFO] [stderr] 103 | / pub fn root<T: Into<U256>>(n: T) -> Option<Self> {
[INFO] [stderr] 104 | | let n: U256 = n.into();
[INFO] [stderr] 105 | | if n.is_zero() {
[INFO] [stderr] 106 | | return Some(Self::ONE);
[INFO] [stderr] ... |
[INFO] [stderr] 112 | | Some(Self::GENERATOR.pow(q))
[INFO] [stderr] 113 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:234:1
[INFO] [stderr] |
[INFO] [stderr] 234 | / impl FieldElement {
[INFO] [stderr] 235 | | to_uint!(to_u8, as_u8, u8);
[INFO] [stderr] 236 | | to_uint!(to_u16, as_u16, u16);
[INFO] [stderr] 237 | | to_uint!(to_u32, as_u32, u32);
[INFO] [stderr] ... |
[INFO] [stderr] 246 | | to_int!(to_isize, as_isize, isize);
[INFO] [stderr] 247 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:212:9
[INFO] [stderr] |
[INFO] [stderr] 212 | / pub fn $fname(&self) -> $type {
[INFO] [stderr] 213 | | U256::from(self).$uname()
[INFO] [stderr] 214 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 235 | to_uint!(to_u8, as_u8, u8);
[INFO] [stderr] | --------------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:212:9
[INFO] [stderr] |
[INFO] [stderr] 212 | / pub fn $fname(&self) -> $type {
[INFO] [stderr] 213 | | U256::from(self).$uname()
[INFO] [stderr] 214 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 236 | to_uint!(to_u16, as_u16, u16);
[INFO] [stderr] | ------------------------------ in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:212:9
[INFO] [stderr] |
[INFO] [stderr] 212 | / pub fn $fname(&self) -> $type {
[INFO] [stderr] 213 | | U256::from(self).$uname()
[INFO] [stderr] 214 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 237 | to_uint!(to_u32, as_u32, u32);
[INFO] [stderr] | ------------------------------ in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:212:9
[INFO] [stderr] |
[INFO] [stderr] 212 | / pub fn $fname(&self) -> $type {
[INFO] [stderr] 213 | | U256::from(self).$uname()
[INFO] [stderr] 214 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 238 | to_uint!(to_u64, as_u64, u64);
[INFO] [stderr] | ------------------------------ in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:212:9
[INFO] [stderr] |
[INFO] [stderr] 212 | / pub fn $fname(&self) -> $type {
[INFO] [stderr] 213 | | U256::from(self).$uname()
[INFO] [stderr] 214 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 239 | to_uint!(to_u128, as_u128, u128);
[INFO] [stderr] | --------------------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:212:9
[INFO] [stderr] |
[INFO] [stderr] 212 | / pub fn $fname(&self) -> $type {
[INFO] [stderr] 213 | | U256::from(self).$uname()
[INFO] [stderr] 214 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 240 | to_uint!(to_usize, as_usize, usize);
[INFO] [stderr] | ------------------------------------ in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:220:9
[INFO] [stderr] |
[INFO] [stderr] 220 | / pub fn $fname(&self) -> $type {
[INFO] [stderr] 221 | | let n = U256::from(self);
[INFO] [stderr] 222 | | let half = Self::MODULUS >> 1;
[INFO] [stderr] 223 | | if n < half {
[INFO] [stderr] ... |
[INFO] [stderr] 227 | | }
[INFO] [stderr] 228 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 241 | to_int!(to_i8, as_i8, i8);
[INFO] [stderr] | -------------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:220:9
[INFO] [stderr] |
[INFO] [stderr] 220 | / pub fn $fname(&self) -> $type {
[INFO] [stderr] 221 | | let n = U256::from(self);
[INFO] [stderr] 222 | | let half = Self::MODULUS >> 1;
[INFO] [stderr] 223 | | if n < half {
[INFO] [stderr] ... |
[INFO] [stderr] 227 | | }
[INFO] [stderr] 228 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 242 | to_int!(to_i16, as_i16, i16);
[INFO] [stderr] | ----------------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:220:9
[INFO] [stderr] |
[INFO] [stderr] 220 | / pub fn $fname(&self) -> $type {
[INFO] [stderr] 221 | | let n = U256::from(self);
[INFO] [stderr] 222 | | let half = Self::MODULUS >> 1;
[INFO] [stderr] 223 | | if n < half {
[INFO] [stderr] ... |
[INFO] [stderr] 227 | | }
[INFO] [stderr] 228 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 243 | to_int!(to_i32, as_i32, i32);
[INFO] [stderr] | ----------------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:220:9
[INFO] [stderr] |
[INFO] [stderr] 220 | / pub fn $fname(&self) -> $type {
[INFO] [stderr] 221 | | let n = U256::from(self);
[INFO] [stderr] 222 | | let half = Self::MODULUS >> 1;
[INFO] [stderr] 223 | | if n < half {
[INFO] [stderr] ... |
[INFO] [stderr] 227 | | }
[INFO] [stderr] 228 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 244 | to_int!(to_i64, as_i64, i64);
[INFO] [stderr] | ----------------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:220:9
[INFO] [stderr] |
[INFO] [stderr] 220 | / pub fn $fname(&self) -> $type {
[INFO] [stderr] 221 | | let n = U256::from(self);
[INFO] [stderr] 222 | | let half = Self::MODULUS >> 1;
[INFO] [stderr] 223 | | if n < half {
[INFO] [stderr] ... |
[INFO] [stderr] 227 | | }
[INFO] [stderr] 228 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 245 | to_int!(to_i128, as_i128, i128);
[INFO] [stderr] | -------------------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:220:9
[INFO] [stderr] |
[INFO] [stderr] 220 | / pub fn $fname(&self) -> $type {
[INFO] [stderr] 221 | | let n = U256::from(self);
[INFO] [stderr] 222 | | let half = Self::MODULUS >> 1;
[INFO] [stderr] 223 | | if n < half {
[INFO] [stderr] ... |
[INFO] [stderr] 227 | | }
[INFO] [stderr] 228 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 246 | to_int!(to_isize, as_isize, isize);
[INFO] [stderr] | ----------------------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/geometric_series.rs:1:1
[INFO] [stderr] |
[INFO] [stderr] 1 | / use crate::FieldElement;
[INFO] [stderr] 2 | | use std::prelude::v1::*;
[INFO] [stderr] 3 | |
[INFO] [stderr] 4 | | #[derive(Clone, PartialEq, Eq)]
[INFO] [stderr] ... |
[INFO] [stderr] 84 | | }
[INFO] [stderr] 85 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/geometric_series.rs:6:1
[INFO] [stderr] |
[INFO] [stderr] 6 | / pub struct GeometricSeries {
[INFO] [stderr] 7 | | current: FieldElement,
[INFO] [stderr] 8 | | step: FieldElement,
[INFO] [stderr] 9 | | length: usize,
[INFO] [stderr] 10 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/geometric_series.rs:7:5
[INFO] [stderr] |
[INFO] [stderr] 7 | current: FieldElement,
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/geometric_series.rs:8:5
[INFO] [stderr] |
[INFO] [stderr] 8 | step: FieldElement,
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/geometric_series.rs:9:5
[INFO] [stderr] |
[INFO] [stderr] 9 | length: usize,
[INFO] [stderr] | ^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/geometric_series.rs:49:1
[INFO] [stderr] |
[INFO] [stderr] 49 | / pub fn geometric_series(base: &FieldElement, step: &FieldElement) -> GeometricSeries {
[INFO] [stderr] 50 | | GeometricSeries {
[INFO] [stderr] 51 | | current: base.clone(),
[INFO] [stderr] 52 | | step: step.clone(),
[INFO] [stderr] 53 | | length: usize::max_value(),
[INFO] [stderr] 54 | | }
[INFO] [stderr] 55 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/geometric_series.rs:57:1
[INFO] [stderr] |
[INFO] [stderr] 57 | / pub fn root_series(order: usize) -> GeometricSeries {
[INFO] [stderr] 58 | | let root = FieldElement::root(order).expect("No root found of given order.");
[INFO] [stderr] 59 | | GeometricSeries {
[INFO] [stderr] 60 | | current: FieldElement::ONE,
[INFO] [stderr] ... |
[INFO] [stderr] 63 | | }
[INFO] [stderr] 64 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/geometric_series.rs:12:1
[INFO] [stderr] |
[INFO] [stderr] 12 | / impl GeometricSeries {
[INFO] [stderr] 13 | | pub fn at(&self, index: usize) -> FieldElement {
[INFO] [stderr] 14 | | &self.current * self.step.pow(index)
[INFO] [stderr] 15 | | }
[INFO] [stderr] ... |
[INFO] [stderr] 23 | | }
[INFO] [stderr] 24 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/geometric_series.rs:13:5
[INFO] [stderr] |
[INFO] [stderr] 13 | / pub fn at(&self, index: usize) -> FieldElement {
[INFO] [stderr] 14 | | &self.current * self.step.pow(index)
[INFO] [stderr] 15 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/geometric_series.rs:17:5
[INFO] [stderr] |
[INFO] [stderr] 17 | /// Transform the series
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/montgomery.rs:2:1
[INFO] [stderr] |
[INFO] [stderr] 2 | / #![allow(clippy::module_name_repetitions)]
[INFO] [stderr] 3 | | use crate::field::FieldElement;
[INFO] [stderr] 4 | | use zkp_macros_decl::u256h;
[INFO] [stderr] 5 | | use zkp_u256::{
[INFO] [stderr] ... |
[INFO] [stderr] 228 | | }
[INFO] [stderr] 229 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/square_root.rs:1:1
[INFO] [stderr] |
[INFO] [stderr] 1 | / use crate::field::FieldElement;
[INFO] [stderr] 2 | | use zkp_macros_decl::u256h;
[INFO] [stderr] 3 | | use zkp_u256::U256;
[INFO] [stderr] 4 | |
[INFO] [stderr] ... |
[INFO] [stderr] 108 | | }
[INFO] [stderr] 109 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:171:9
[INFO] [stderr] |
[INFO] [stderr] 171 | / impl From<$t> for FieldElement {
[INFO] [stderr] 172 | | fn from(n: $t) -> Self {
[INFO] [stderr] 173 | | U256::from(n).into()
[INFO] [stderr] 174 | | }
[INFO] [stderr] 175 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 179 | impl_from_uint!(u8);
[INFO] [stderr] | -------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:172:13
[INFO] [stderr] |
[INFO] [stderr] 172 | / fn from(n: $t) -> Self {
[INFO] [stderr] 173 | | U256::from(n).into()
[INFO] [stderr] 174 | | }
[INFO] [stderr] | |_____________^
[INFO] [stderr] ...
[INFO] [stderr] 179 | impl_from_uint!(u8);
[INFO] [stderr] | -------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:171:9
[INFO] [stderr] |
[INFO] [stderr] 171 | / impl From<$t> for FieldElement {
[INFO] [stderr] 172 | | fn from(n: $t) -> Self {
[INFO] [stderr] 173 | | U256::from(n).into()
[INFO] [stderr] 174 | | }
[INFO] [stderr] 175 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 180 | impl_from_uint!(u16);
[INFO] [stderr] | --------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:172:13
[INFO] [stderr] |
[INFO] [stderr] 172 | / fn from(n: $t) -> Self {
[INFO] [stderr] 173 | | U256::from(n).into()
[INFO] [stderr] 174 | | }
[INFO] [stderr] | |_____________^
[INFO] [stderr] ...
[INFO] [stderr] 180 | impl_from_uint!(u16);
[INFO] [stderr] | --------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:171:9
[INFO] [stderr] |
[INFO] [stderr] 171 | / impl From<$t> for FieldElement {
[INFO] [stderr] 172 | | fn from(n: $t) -> Self {
[INFO] [stderr] 173 | | U256::from(n).into()
[INFO] [stderr] 174 | | }
[INFO] [stderr] 175 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 181 | impl_from_uint!(u32);
[INFO] [stderr] | --------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:172:13
[INFO] [stderr] |
[INFO] [stderr] 172 | / fn from(n: $t) -> Self {
[INFO] [stderr] 173 | | U256::from(n).into()
[INFO] [stderr] 174 | | }
[INFO] [stderr] | |_____________^
[INFO] [stderr] ...
[INFO] [stderr] 181 | impl_from_uint!(u32);
[INFO] [stderr] | --------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:171:9
[INFO] [stderr] |
[INFO] [stderr] 171 | / impl From<$t> for FieldElement {
[INFO] [stderr] 172 | | fn from(n: $t) -> Self {
[INFO] [stderr] 173 | | U256::from(n).into()
[INFO] [stderr] 174 | | }
[INFO] [stderr] 175 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 182 | impl_from_uint!(u64);
[INFO] [stderr] | --------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:172:13
[INFO] [stderr] |
[INFO] [stderr] 172 | / fn from(n: $t) -> Self {
[INFO] [stderr] 173 | | U256::from(n).into()
[INFO] [stderr] 174 | | }
[INFO] [stderr] | |_____________^
[INFO] [stderr] ...
[INFO] [stderr] 182 | impl_from_uint!(u64);
[INFO] [stderr] | --------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:171:9
[INFO] [stderr] |
[INFO] [stderr] 171 | / impl From<$t> for FieldElement {
[INFO] [stderr] 172 | | fn from(n: $t) -> Self {
[INFO] [stderr] 173 | | U256::from(n).into()
[INFO] [stderr] 174 | | }
[INFO] [stderr] 175 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 183 | impl_from_uint!(u128);
[INFO] [stderr] | ---------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:172:13
[INFO] [stderr] |
[INFO] [stderr] 172 | / fn from(n: $t) -> Self {
[INFO] [stderr] 173 | | U256::from(n).into()
[INFO] [stderr] 174 | | }
[INFO] [stderr] | |_____________^
[INFO] [stderr] ...
[INFO] [stderr] 183 | impl_from_uint!(u128);
[INFO] [stderr] | ---------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:171:9
[INFO] [stderr] |
[INFO] [stderr] 171 | / impl From<$t> for FieldElement {
[INFO] [stderr] 172 | | fn from(n: $t) -> Self {
[INFO] [stderr] 173 | | U256::from(n).into()
[INFO] [stderr] 174 | | }
[INFO] [stderr] 175 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 184 | impl_from_uint!(usize);
[INFO] [stderr] | ----------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:172:13
[INFO] [stderr] |
[INFO] [stderr] 172 | / fn from(n: $t) -> Self {
[INFO] [stderr] 173 | | U256::from(n).into()
[INFO] [stderr] 174 | | }
[INFO] [stderr] | |_____________^
[INFO] [stderr] ...
[INFO] [stderr] 184 | impl_from_uint!(usize);
[INFO] [stderr] | ----------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:188:9
[INFO] [stderr] |
[INFO] [stderr] 188 | / impl From<$t> for FieldElement {
[INFO] [stderr] 189 | | fn from(n: $t) -> Self {
[INFO] [stderr] 190 | | if n >= 0 {
[INFO] [stderr] 191 | | U256::from(n).into()
[INFO] [stderr] ... |
[INFO] [stderr] 195 | | }
[INFO] [stderr] 196 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 200 | impl_from_int!(i8);
[INFO] [stderr] | ------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:189:13
[INFO] [stderr] |
[INFO] [stderr] 189 | / fn from(n: $t) -> Self {
[INFO] [stderr] 190 | | if n >= 0 {
[INFO] [stderr] 191 | | U256::from(n).into()
[INFO] [stderr] 192 | | } else {
[INFO] [stderr] 193 | | Self::from(U256::from(-n)).neg()
[INFO] [stderr] 194 | | }
[INFO] [stderr] 195 | | }
[INFO] [stderr] | |_____________^
[INFO] [stderr] ...
[INFO] [stderr] 200 | impl_from_int!(i8);
[INFO] [stderr] | ------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:188:9
[INFO] [stderr] |
[INFO] [stderr] 188 | / impl From<$t> for FieldElement {
[INFO] [stderr] 189 | | fn from(n: $t) -> Self {
[INFO] [stderr] 190 | | if n >= 0 {
[INFO] [stderr] 191 | | U256::from(n).into()
[INFO] [stderr] ... |
[INFO] [stderr] 195 | | }
[INFO] [stderr] 196 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 201 | impl_from_int!(i16);
[INFO] [stderr] | -------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:189:13
[INFO] [stderr] |
[INFO] [stderr] 189 | / fn from(n: $t) -> Self {
[INFO] [stderr] 190 | | if n >= 0 {
[INFO] [stderr] 191 | | U256::from(n).into()
[INFO] [stderr] 192 | | } else {
[INFO] [stderr] 193 | | Self::from(U256::from(-n)).neg()
[INFO] [stderr] 194 | | }
[INFO] [stderr] 195 | | }
[INFO] [stderr] | |_____________^
[INFO] [stderr] ...
[INFO] [stderr] 201 | impl_from_int!(i16);
[INFO] [stderr] | -------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:188:9
[INFO] [stderr] |
[INFO] [stderr] 188 | / impl From<$t> for FieldElement {
[INFO] [stderr] 189 | | fn from(n: $t) -> Self {
[INFO] [stderr] 190 | | if n >= 0 {
[INFO] [stderr] 191 | | U256::from(n).into()
[INFO] [stderr] ... |
[INFO] [stderr] 195 | | }
[INFO] [stderr] 196 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 202 | impl_from_int!(i32);
[INFO] [stderr] | -------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:189:13
[INFO] [stderr] |
[INFO] [stderr] 189 | / fn from(n: $t) -> Self {
[INFO] [stderr] 190 | | if n >= 0 {
[INFO] [stderr] 191 | | U256::from(n).into()
[INFO] [stderr] 192 | | } else {
[INFO] [stderr] 193 | | Self::from(U256::from(-n)).neg()
[INFO] [stderr] 194 | | }
[INFO] [stderr] 195 | | }
[INFO] [stderr] | |_____________^
[INFO] [stderr] ...
[INFO] [stderr] 202 | impl_from_int!(i32);
[INFO] [stderr] | -------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:188:9
[INFO] [stderr] |
[INFO] [stderr] 188 | / impl From<$t> for FieldElement {
[INFO] [stderr] 189 | | fn from(n: $t) -> Self {
[INFO] [stderr] 190 | | if n >= 0 {
[INFO] [stderr] 191 | | U256::from(n).into()
[INFO] [stderr] ... |
[INFO] [stderr] 195 | | }
[INFO] [stderr] 196 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 203 | impl_from_int!(i64);
[INFO] [stderr] | -------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:189:13
[INFO] [stderr] |
[INFO] [stderr] 189 | / fn from(n: $t) -> Self {
[INFO] [stderr] 190 | | if n >= 0 {
[INFO] [stderr] 191 | | U256::from(n).into()
[INFO] [stderr] 192 | | } else {
[INFO] [stderr] 193 | | Self::from(U256::from(-n)).neg()
[INFO] [stderr] 194 | | }
[INFO] [stderr] 195 | | }
[INFO] [stderr] | |_____________^
[INFO] [stderr] ...
[INFO] [stderr] 203 | impl_from_int!(i64);
[INFO] [stderr] | -------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:188:9
[INFO] [stderr] |
[INFO] [stderr] 188 | / impl From<$t> for FieldElement {
[INFO] [stderr] 189 | | fn from(n: $t) -> Self {
[INFO] [stderr] 190 | | if n >= 0 {
[INFO] [stderr] 191 | | U256::from(n).into()
[INFO] [stderr] ... |
[INFO] [stderr] 195 | | }
[INFO] [stderr] 196 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 204 | impl_from_int!(i128);
[INFO] [stderr] | --------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:189:13
[INFO] [stderr] |
[INFO] [stderr] 189 | / fn from(n: $t) -> Self {
[INFO] [stderr] 190 | | if n >= 0 {
[INFO] [stderr] 191 | | U256::from(n).into()
[INFO] [stderr] 192 | | } else {
[INFO] [stderr] 193 | | Self::from(U256::from(-n)).neg()
[INFO] [stderr] 194 | | }
[INFO] [stderr] 195 | | }
[INFO] [stderr] | |_____________^
[INFO] [stderr] ...
[INFO] [stderr] 204 | impl_from_int!(i128);
[INFO] [stderr] | --------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:188:9
[INFO] [stderr] |
[INFO] [stderr] 188 | / impl From<$t> for FieldElement {
[INFO] [stderr] 189 | | fn from(n: $t) -> Self {
[INFO] [stderr] 190 | | if n >= 0 {
[INFO] [stderr] 191 | | U256::from(n).into()
[INFO] [stderr] ... |
[INFO] [stderr] 195 | | }
[INFO] [stderr] 196 | | }
[INFO] [stderr] | |_________^
[INFO] [stderr] ...
[INFO] [stderr] 205 | impl_from_int!(isize);
[INFO] [stderr] | ---------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:189:13
[INFO] [stderr] |
[INFO] [stderr] 189 | / fn from(n: $t) -> Self {
[INFO] [stderr] 190 | | if n >= 0 {
[INFO] [stderr] 191 | | U256::from(n).into()
[INFO] [stderr] 192 | | } else {
[INFO] [stderr] 193 | | Self::from(U256::from(-n)).neg()
[INFO] [stderr] 194 | | }
[INFO] [stderr] 195 | | }
[INFO] [stderr] | |_____________^
[INFO] [stderr] ...
[INFO] [stderr] 205 | impl_from_int!(isize);
[INFO] [stderr] | ---------------------- in this macro invocation
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:249:1
[INFO] [stderr] |
[INFO] [stderr] 249 | / impl From<U256> for FieldElement {
[INFO] [stderr] 250 | | fn from(n: U256) -> Self {
[INFO] [stderr] 251 | | (&n).into()
[INFO] [stderr] 252 | | }
[INFO] [stderr] 253 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:250:5
[INFO] [stderr] |
[INFO] [stderr] 250 | / fn from(n: U256) -> Self {
[INFO] [stderr] 251 | | (&n).into()
[INFO] [stderr] 252 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:255:1
[INFO] [stderr] |
[INFO] [stderr] 255 | / impl From<&U256> for FieldElement {
[INFO] [stderr] 256 | | fn from(n: &U256) -> Self {
[INFO] [stderr] 257 | | Self::from_montgomery(to_montgomery(n))
[INFO] [stderr] 258 | | }
[INFO] [stderr] 259 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:256:5
[INFO] [stderr] |
[INFO] [stderr] 256 | / fn from(n: &U256) -> Self {
[INFO] [stderr] 257 | | Self::from_montgomery(to_montgomery(n))
[INFO] [stderr] 258 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:261:1
[INFO] [stderr] |
[INFO] [stderr] 261 | / impl From<FieldElement> for U256 {
[INFO] [stderr] 262 | | fn from(n: FieldElement) -> Self {
[INFO] [stderr] 263 | | (&n).into()
[INFO] [stderr] 264 | | }
[INFO] [stderr] 265 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:262:5
[INFO] [stderr] |
[INFO] [stderr] 262 | / fn from(n: FieldElement) -> Self {
[INFO] [stderr] 263 | | (&n).into()
[INFO] [stderr] 264 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:267:1
[INFO] [stderr] |
[INFO] [stderr] 267 | / impl From<&FieldElement> for U256 {
[INFO] [stderr] 268 | | fn from(n: &FieldElement) -> Self {
[INFO] [stderr] 269 | | from_montgomery(n.as_montgomery())
[INFO] [stderr] 270 | | }
[INFO] [stderr] 271 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:268:5
[INFO] [stderr] |
[INFO] [stderr] 268 | / fn from(n: &FieldElement) -> Self {
[INFO] [stderr] 269 | | from_montgomery(n.as_montgomery())
[INFO] [stderr] 270 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/geometric_series.rs:26:1
[INFO] [stderr] |
[INFO] [stderr] 26 | / impl Iterator for GeometricSeries {
[INFO] [stderr] 27 | | type Item = FieldElement;
[INFO] [stderr] 28 | |
[INFO] [stderr] 29 | | fn next(&mut self) -> Option<Self::Item> {
[INFO] [stderr] ... |
[INFO] [stderr] 43 | | }
[INFO] [stderr] 44 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/geometric_series.rs:27:5
[INFO] [stderr] |
[INFO] [stderr] 27 | type Item = FieldElement;
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/geometric_series.rs:29:5
[INFO] [stderr] |
[INFO] [stderr] 29 | / fn next(&mut self) -> Option<Self::Item> {
[INFO] [stderr] 30 | | if self.length == 0 {
[INFO] [stderr] 31 | | None
[INFO] [stderr] 32 | | } else {
[INFO] [stderr] ... |
[INFO] [stderr] 38 | | }
[INFO] [stderr] 39 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/geometric_series.rs:41:5
[INFO] [stderr] |
[INFO] [stderr] 41 | / fn size_hint(&self) -> (usize, Option<usize>) {
[INFO] [stderr] 42 | | (self.length, Some(self.length))
[INFO] [stderr] 43 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:273:1
[INFO] [stderr] |
[INFO] [stderr] 273 | / impl Neg for &FieldElement {
[INFO] [stderr] 274 | | type Output = FieldElement;
[INFO] [stderr] 275 | |
[INFO] [stderr] 276 | | fn neg(self) -> Self::Output {
[INFO] [stderr] 277 | | FieldElement::ZERO - self
[INFO] [stderr] 278 | | }
[INFO] [stderr] 279 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:274:5
[INFO] [stderr] |
[INFO] [stderr] 274 | type Output = FieldElement;
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:276:5
[INFO] [stderr] |
[INFO] [stderr] 276 | / fn neg(self) -> Self::Output {
[INFO] [stderr] 277 | | FieldElement::ZERO - self
[INFO] [stderr] 278 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:281:1
[INFO] [stderr] |
[INFO] [stderr] 281 | / impl AddAssign<&FieldElement> for FieldElement {
[INFO] [stderr] 282 | | fn add_assign(&mut self, rhs: &Self) {
[INFO] [stderr] 283 | | self.0 += &rhs.0;
[INFO] [stderr] 284 | | if self.0 >= Self::MODULUS {
[INFO] [stderr] ... |
[INFO] [stderr] 287 | | }
[INFO] [stderr] 288 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:282:5
[INFO] [stderr] |
[INFO] [stderr] 282 | / fn add_assign(&mut self, rhs: &Self) {
[INFO] [stderr] 283 | | self.0 += &rhs.0;
[INFO] [stderr] 284 | | if self.0 >= Self::MODULUS {
[INFO] [stderr] 285 | | self.0 -= &Self::MODULUS;
[INFO] [stderr] 286 | | }
[INFO] [stderr] 287 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:290:1
[INFO] [stderr] |
[INFO] [stderr] 290 | / impl SubAssign<&FieldElement> for FieldElement {
[INFO] [stderr] 291 | | fn sub_assign(&mut self, rhs: &Self) {
[INFO] [stderr] 292 | | if self.0 < rhs.0 {
[INFO] [stderr] 293 | | self.0 += &Self::MODULUS;
[INFO] [stderr] ... |
[INFO] [stderr] 296 | | }
[INFO] [stderr] 297 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:291:5
[INFO] [stderr] |
[INFO] [stderr] 291 | / fn sub_assign(&mut self, rhs: &Self) {
[INFO] [stderr] 292 | | if self.0 < rhs.0 {
[INFO] [stderr] 293 | | self.0 += &Self::MODULUS;
[INFO] [stderr] 294 | | }
[INFO] [stderr] 295 | | self.0 -= &rhs.0;
[INFO] [stderr] 296 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:299:1
[INFO] [stderr] |
[INFO] [stderr] 299 | / impl MulAssign<&FieldElement> for FieldElement {
[INFO] [stderr] 300 | | fn mul_assign(&mut self, rhs: &Self) {
[INFO] [stderr] 301 | | self.0 = mul_redc(&self.0, &rhs.0);
[INFO] [stderr] 302 | | }
[INFO] [stderr] 303 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:300:5
[INFO] [stderr] |
[INFO] [stderr] 300 | / fn mul_assign(&mut self, rhs: &Self) {
[INFO] [stderr] 301 | | self.0 = mul_redc(&self.0, &rhs.0);
[INFO] [stderr] 302 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:305:1
[INFO] [stderr] |
[INFO] [stderr] 305 | / impl DivAssign<&FieldElement> for FieldElement {
[INFO] [stderr] 306 | | fn div_assign(&mut self, rhs: &Self) {
[INFO] [stderr] 307 | | *self *= rhs.inv().unwrap();
[INFO] [stderr] 308 | | }
[INFO] [stderr] 309 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:306:5
[INFO] [stderr] |
[INFO] [stderr] 306 | / fn div_assign(&mut self, rhs: &Self) {
[INFO] [stderr] 307 | | *self *= rhs.inv().unwrap();
[INFO] [stderr] 308 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:158:1
[INFO] [stderr] |
[INFO] [stderr] 158 | / impl fmt::Debug for FieldElement {
[INFO] [stderr] 159 | | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
[INFO] [stderr] 160 | | let n = U256::from(self);
[INFO] [stderr] 161 | | write!(
[INFO] [stderr] ... |
[INFO] [stderr] 166 | | }
[INFO] [stderr] 167 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:159:5
[INFO] [stderr] |
[INFO] [stderr] 159 | / fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
[INFO] [stderr] 160 | | let n = U256::from(self);
[INFO] [stderr] 161 | | write!(
[INFO] [stderr] 162 | | f,
[INFO] [stderr] ... |
[INFO] [stderr] 165 | | )
[INFO] [stderr] 166 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:311:1
[INFO] [stderr] |
[INFO] [stderr] 311 | / impl core::iter::Product for FieldElement {
[INFO] [stderr] 312 | | fn product<I: Iterator<Item = FieldElement>>(iter: I) -> Self {
[INFO] [stderr] 313 | | iter.fold(Self::ONE, Mul::mul)
[INFO] [stderr] 314 | | }
[INFO] [stderr] 315 | | }
[INFO] [stderr] | |_^
[INFO] [stderr]
[INFO] [stderr] warning: Missing code example in this documentation
[INFO] [stderr] --> src/field.rs:312:5
[INFO] [stderr] |
[INFO] [stderr] 312 | / fn product<I: Iterator<Item = FieldElement>>(iter: I) -> Self {
[INFO] [stderr] 313 | | iter.fold(Self::ONE, Mul::mul)
[INFO] [stderr] 314 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr]
[INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 18.72s
[INFO] running `"docker" "inspect" "888f52dfb0e05c93e1589ba6e8e636c13524c5d515bfd890bb63f1dbe7724812"`
[INFO] running `"docker" "rm" "-f" "888f52dfb0e05c93e1589ba6e8e636c13524c5d515bfd890bb63f1dbe7724812"`
[INFO] [stdout] 888f52dfb0e05c93e1589ba6e8e636c13524c5d515bfd890bb63f1dbe7724812