[INFO] crate zkp-elliptic-curve 0.1.0 is already in cache [INFO] documenting zkp-elliptic-curve-0.1.0 against master#394e1b40d264aa6928811919c1124fa248e7d802 for pr-73566 [INFO] extracting crate zkp-elliptic-curve 0.1.0 into /workspace/builds/worker-5/source [INFO] validating manifest of crates.io crate zkp-elliptic-curve 0.1.0 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-elliptic-curve 0.1.0 [INFO] finished tweaking crates.io crate zkp-elliptic-curve 0.1.0 [INFO] tweaked toml for crates.io crate zkp-elliptic-curve 0.1.0 written to /workspace/builds/worker-5/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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+394e1b40d264aa6928811919c1124fa248e7d802" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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] 6bc231bb3e080233e4ab725484714812434819a12ced4fd08d013379a21cc13f [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" "6bc231bb3e080233e4ab725484714812434819a12ced4fd08d013379a21cc13f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6bc231bb3e080233e4ab725484714812434819a12ced4fd08d013379a21cc13f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6bc231bb3e080233e4ab725484714812434819a12ced4fd08d013379a21cc13f", kill_on_drop: false }` [INFO] [stdout] 6bc231bb3e080233e4ab725484714812434819a12ced4fd08d013379a21cc13f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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] bf425ef59277dead81086725e9fa97daadd3cd6cc461182f156a1f9f8064b42b [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" "bf425ef59277dead81086725e9fa97daadd3cd6cc461182f156a1f9f8064b42b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.33 [INFO] [stderr] Compiling proc-macro-hack v0.5.16 [INFO] [stderr] Checking hex v0.4.2 [INFO] [stderr] Checking no-std-compat v0.1.1 [INFO] [stderr] Checking itertools v0.8.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking tiny-keccak v1.5.0 [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] Checking zkp-primefield v0.1.1 [INFO] [stderr] Documenting zkp-elliptic-curve v0.1.0 (/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] 75 | | )), [INFO] [stdout] 76 | | }; [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/jacobian.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / pub struct Jacobian { [INFO] [stdout] 14 | | pub x: FieldElement, [INFO] [stdout] 15 | | pub y: FieldElement, [INFO] [stdout] 16 | | pub z: FieldElement, [INFO] [stdout] 17 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub x: FieldElement, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub y: FieldElement, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub z: FieldElement, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/curve.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | / pub enum Affine { [INFO] [stdout] 12 | | Zero, // Neutral element, point at infinity, additive identity, etc. [INFO] [stdout] 13 | | Point { x: FieldElement, y: FieldElement }, [INFO] [stdout] 14 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/curve.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | Zero, // Neutral element, point at infinity, additive identity, etc. [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/curve.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | Point { x: FieldElement, y: FieldElement }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/curve.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | Point { x: FieldElement, y: FieldElement }, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/curve.rs:13:30 [INFO] [stdout] | [INFO] [stdout] 13 | Point { x: FieldElement, y: FieldElement }, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/wnaf.rs:171:1 [INFO] [stdout] | [INFO] [stdout] 171 | / pub fn base_mul(naf_table: &[Affine], s: U256) -> Jacobian { [INFO] [stdout] 172 | | // Get SNAF [INFO] [stdout] 173 | | let snaf_expansion = non_adjacent_form(s, 7); [INFO] [stdout] 174 | | [INFO] [stdout] ... | [INFO] [stdout] 187 | | r [INFO] [stdout] 188 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/wnaf.rs:194:1 [INFO] [stdout] | [INFO] [stdout] 194 | / pub fn double_base_mul( [INFO] [stdout] 195 | | naf_table_a: &[Affine], [INFO] [stdout] 196 | | scalar_a: U256, [INFO] [stdout] 197 | | point_b: &Affine, [INFO] [stdout] ... | [INFO] [stdout] 233 | | r [INFO] [stdout] 234 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/wnaf.rs:137:1 [INFO] [stdout] | [INFO] [stdout] 137 | / pub fn double_mul(point_a: &Affine, scalar_a: U256, point_b: &Affine, scalar_b: U256) -> Jacobian { [INFO] [stdout] 138 | | // Precomputed odd multiples [INFO] [stdout] 139 | | let mut naf_table_a: [Jacobian; 8] = Default::default(); [INFO] [stdout] 140 | | let mut naf_table_b: [Jacobian; 8] = Default::default(); [INFO] [stdout] ... | [INFO] [stdout] 166 | | r [INFO] [stdout] 167 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/wnaf.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | / pub fn mul(p: &Affine, scalar: &U256) -> Jacobian { [INFO] [stdout] 113 | | // Precomputed odd multiples [INFO] [stdout] 114 | | let mut naf_table: [Jacobian; 8] = Default::default(); [INFO] [stdout] 115 | | window_table(p, &mut naf_table); [INFO] [stdout] ... | [INFO] [stdout] 132 | | r [INFO] [stdout] 133 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/wnaf.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | / pub fn window_table_affine(p: &Affine, naf: &mut [Affine]) { [INFO] [stdout] 19 | | // naf = P, 3P, 5P, ... 15P [INFO] [stdout] 20 | | // OPT: Optimal window size [INFO] [stdout] 21 | | naf[0] = p.clone(); [INFO] [stdout] ... | [INFO] [stdout] 25 | | } [INFO] [stdout] 26 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/curve.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / use crate::BETA; [INFO] [stdout] 2 | | use std::{ [INFO] [stdout] 3 | | ops::{Add, AddAssign, Mul, MulAssign, Neg, Sub, SubAssign}, [INFO] [stdout] 4 | | prelude::v1::*, [INFO] [stdout] ... | [INFO] [stdout] 293 | | } [INFO] [stdout] 294 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/curve.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | / impl Affine { [INFO] [stdout] 17 | | pub const ZERO: Self = Self::Zero; [INFO] [stdout] 18 | | [INFO] [stdout] 19 | | pub fn new(x: FieldElement, y: FieldElement) -> Self { [INFO] [stdout] ... | [INFO] [stdout] 55 | | } [INFO] [stdout] 56 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/curve.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub const ZERO: Self = Self::Zero; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/curve.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | / pub fn new(x: FieldElement, y: FieldElement) -> Self { [INFO] [stdout] 20 | | Self::Point { x, y } [INFO] [stdout] 21 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/curve.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / pub fn on_curve(&self) -> bool { [INFO] [stdout] 24 | | match self { [INFO] [stdout] 25 | | Self::Zero => true, [INFO] [stdout] 26 | | Self::Point { x, y } => y * y == x * x * x + x + BETA, [INFO] [stdout] 27 | | } [INFO] [stdout] 28 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/curve.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | / pub fn double_assign(&mut self) { [INFO] [stdout] 31 | | *self = self.double(); [INFO] [stdout] 32 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/curve.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | / pub fn double(&self) -> Self { [INFO] [stdout] 35 | | match self { [INFO] [stdout] 36 | | Self::Zero => Self::Zero, [INFO] [stdout] 37 | | Self::Point { x, y } => { [INFO] [stdout] ... | [INFO] [stdout] 47 | | } [INFO] [stdout] 48 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/curve.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | / pub fn neg_assign(&mut self) { [INFO] [stdout] 51 | | match self { [INFO] [stdout] 52 | | Self::Zero => {} [INFO] [stdout] 53 | | Self::Point { y, .. } => y.neg_assign(), [INFO] [stdout] 54 | | } [INFO] [stdout] 55 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / use crate::{curve::Affine, curve_operations}; [INFO] [stdout] 2 | | use std::{ [INFO] [stdout] 3 | | ops::{Add, AddAssign, Mul, MulAssign, Neg, Sub, SubAssign}, [INFO] [stdout] 4 | | prelude::v1::*, [INFO] [stdout] ... | [INFO] [stdout] 352 | | } [INFO] [stdout] 353 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | / impl Jacobian { [INFO] [stdout] 20 | | pub const ZERO: Self = Self { [INFO] [stdout] 21 | | x: FieldElement::ONE, [INFO] [stdout] 22 | | y: FieldElement::ONE, [INFO] [stdout] ... | [INFO] [stdout] 69 | | } [INFO] [stdout] 70 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | / pub const ZERO: Self = Self { [INFO] [stdout] 21 | | x: FieldElement::ONE, [INFO] [stdout] 22 | | y: FieldElement::ONE, [INFO] [stdout] 23 | | z: FieldElement::ZERO, [INFO] [stdout] 24 | | }; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | / pub fn on_curve(&self) -> bool { [INFO] [stdout] 27 | | // TODO: Compute without inverting Z [INFO] [stdout] 28 | | Affine::from(self).on_curve() [INFO] [stdout] 29 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | / pub fn double_assign(&mut self) { [INFO] [stdout] 32 | | if self.y == FieldElement::ZERO { [INFO] [stdout] 33 | | *self = Self::ZERO; [INFO] [stdout] 34 | | return; [INFO] [stdout] ... | [INFO] [stdout] 46 | | self.y = m * (s - &self.x) - yyyy.double().double().double(); // TODO: .octuple() [INFO] [stdout] 47 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | / pub fn neg_assign(&mut self) { [INFO] [stdout] 50 | | self.y.neg_assign(); [INFO] [stdout] 51 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | / pub fn double(&self) -> Self { [INFO] [stdout] 54 | | let mut r = self.clone(); [INFO] [stdout] 55 | | r.double_assign(); [INFO] [stdout] 56 | | r [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | / pub fn mul(p: &Affine, scalar: &U256) -> Self { [INFO] [stdout] 61 | | let mut r = Self::from(p); [INFO] [stdout] 62 | | for i in (0..scalar.msb()).rev() { [INFO] [stdout] 63 | | r.double_assign(); [INFO] [stdout] ... | [INFO] [stdout] 68 | | r [INFO] [stdout] 69 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/wnaf.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / use crate::{curve::Affine, jacobian::Jacobian}; [INFO] [stdout] 2 | | use itertools::izip; [INFO] [stdout] 3 | | use std::prelude::v1::*; [INFO] [stdout] 4 | | use zkp_primefield::FieldElement; [INFO] [stdout] ... | [INFO] [stdout] 267 | | } [INFO] [stdout] 268 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/wnaf.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | / pub(crate) fn window_table(p: &Affine, naf: &mut [Jacobian]) { [INFO] [stdout] 8 | | // naf = P, 3P, 5P, ... 15P [INFO] [stdout] 9 | | // OPT: Optimal window size [INFO] [stdout] 10 | | naf[0] = Jacobian::from(p); [INFO] [stdout] ... | [INFO] [stdout] 15 | | // OPT: Use batch inversion to convert to Affine [INFO] [stdout] 16 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/wnaf.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | / pub(crate) fn batch_convert(jacobians: &[Jacobian], affines: &mut [Affine]) { [INFO] [stdout] 30 | | debug_assert!(jacobians.len() == affines.len()); [INFO] [stdout] 31 | | [INFO] [stdout] 32 | | // Intermediate values [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/wnaf.rs:73:1 [INFO] [stdout] | [INFO] [stdout] 73 | / pub(crate) fn non_adjacent_form(mut scalar: U256, window: usize) -> [i16; 257] { [INFO] [stdout] 74 | | let mask = (1_u64 << window) - 1; [INFO] [stdout] 75 | | let half = 1_i16 << (window - 1); [INFO] [stdout] 76 | | let mut snaf = [0_i16; 257]; [INFO] [stdout] ... | [INFO] [stdout] 105 | | snaf [INFO] [stdout] 106 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:61:1 [INFO] [stdout] | [INFO] [stdout] 61 | / pub const BETA: FieldElement = FieldElement::from_montgomery(u256h!( [INFO] [stdout] 62 | | "013931651774247fab8a1e002a41f9476725f2237aab9006359ddd67b59a21ca" [INFO] [stdout] 63 | | )); [INFO] [stdout] | |___^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:65:1 [INFO] [stdout] | [INFO] [stdout] 65 | pub const ORDER: U256 = u256h!("0800000000000010ffffffffffffffffb781126dcae7b2321e66a241adc64d2f"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/lib.rs:69:1 [INFO] [stdout] | [INFO] [stdout] 69 | / pub const GENERATOR: Affine = Affine::Point { [INFO] [stdout] 70 | | x: FieldElement::from_montgomery(u256h!( [INFO] [stdout] 71 | | "033840300bf6cec10429bf5184041c7b51a9bf65d4403deac9019623cf0273dd" [INFO] [stdout] 72 | | )), [INFO] [stdout] ... | [INFO] [stdout] 75 | | )), [INFO] [stdout] 76 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/curve.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / macro_rules! curve_operations { [INFO] [stdout] 110 | | ($type:ident) => { [INFO] [stdout] 111 | | impl SubAssign<&$type> for $type { [INFO] [stdout] 112 | | fn sub_assign(&mut self, rhs: &Self) { [INFO] [stdout] ... | [INFO] [stdout] 170 | | }; [INFO] [stdout] 171 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 85 | / impl From<&Affine> for Jacobian { [INFO] [stdout] 86 | | fn from(other: &Affine) -> Self { [INFO] [stdout] 87 | | match other { [INFO] [stdout] 88 | | Affine::Zero => Self::ZERO, [INFO] [stdout] ... | [INFO] [stdout] 97 | | } [INFO] [stdout] 98 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | / fn from(other: &Affine) -> Self { [INFO] [stdout] 87 | | match other { [INFO] [stdout] 88 | | Affine::Zero => Self::ZERO, [INFO] [stdout] 89 | | Affine::Point { x, y } => { [INFO] [stdout] ... | [INFO] [stdout] 96 | | } [INFO] [stdout] 97 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:100:1 [INFO] [stdout] | [INFO] [stdout] 100 | / impl From for Jacobian { [INFO] [stdout] 101 | | fn from(other: Affine) -> Self { [INFO] [stdout] 102 | | match other { [INFO] [stdout] 103 | | Affine::Zero => Self::ZERO, [INFO] [stdout] ... | [INFO] [stdout] 112 | | } [INFO] [stdout] 113 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | / fn from(other: Affine) -> Self { [INFO] [stdout] 102 | | match other { [INFO] [stdout] 103 | | Affine::Zero => Self::ZERO, [INFO] [stdout] 104 | | Affine::Point { x, y } => { [INFO] [stdout] ... | [INFO] [stdout] 111 | | } [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | / impl From<&Jacobian> for Affine { [INFO] [stdout] 116 | | fn from(other: &Jacobian) -> Self { [INFO] [stdout] 117 | | match other.z.inv() { [INFO] [stdout] 118 | | None => Self::ZERO, [INFO] [stdout] ... | [INFO] [stdout] 128 | | } [INFO] [stdout] 129 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | / fn from(other: &Jacobian) -> Self { [INFO] [stdout] 117 | | match other.z.inv() { [INFO] [stdout] 118 | | None => Self::ZERO, [INFO] [stdout] 119 | | Some(zi) => { [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/curve.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | / impl Default for Affine { [INFO] [stdout] 59 | | fn default() -> Self { [INFO] [stdout] 60 | | Self::ZERO [INFO] [stdout] 61 | | } [INFO] [stdout] 62 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/curve.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / fn default() -> Self { [INFO] [stdout] 60 | | Self::ZERO [INFO] [stdout] 61 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:79:1 [INFO] [stdout] | [INFO] [stdout] 79 | / impl Default for Jacobian { [INFO] [stdout] 80 | | fn default() -> Self { [INFO] [stdout] 81 | | Self::ZERO [INFO] [stdout] 82 | | } [INFO] [stdout] 83 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | / fn default() -> Self { [INFO] [stdout] 81 | | Self::ZERO [INFO] [stdout] 82 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:72:1 [INFO] [stdout] | [INFO] [stdout] 72 | / impl PartialEq for Jacobian { [INFO] [stdout] 73 | | fn eq(&self, rhs: &Self) -> bool { [INFO] [stdout] 74 | | // TODO: without inverting Z [INFO] [stdout] 75 | | Affine::from(self) == Affine::from(rhs) [INFO] [stdout] 76 | | } [INFO] [stdout] 77 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | / fn eq(&self, rhs: &Self) -> bool { [INFO] [stdout] 74 | | // TODO: without inverting Z [INFO] [stdout] 75 | | Affine::from(self) == Affine::from(rhs) [INFO] [stdout] 76 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:223:1 [INFO] [stdout] | [INFO] [stdout] 223 | / impl Add<&Affine> for &Jacobian { [INFO] [stdout] 224 | | type Output = Jacobian; [INFO] [stdout] 225 | | [INFO] [stdout] 226 | | fn add(self, rhs: &Affine) -> Jacobian { [INFO] [stdout] ... | [INFO] [stdout] 230 | | } [INFO] [stdout] 231 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:224:5 [INFO] [stdout] | [INFO] [stdout] 224 | type Output = Jacobian; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:226:5 [INFO] [stdout] | [INFO] [stdout] 226 | / fn add(self, rhs: &Affine) -> Jacobian { [INFO] [stdout] 227 | | let mut r = self.clone(); [INFO] [stdout] 228 | | r += rhs; [INFO] [stdout] 229 | | r [INFO] [stdout] 230 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/curve.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | / impl Mul<&U256> for &$type { [INFO] [stdout] 118 | | type Output = $type; [INFO] [stdout] 119 | | [INFO] [stdout] 120 | | fn mul(self, scalar: &U256) -> $type { [INFO] [stdout] ... | [INFO] [stdout] 130 | | } [INFO] [stdout] 131 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 173 | curve_operations!(Affine); [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/curve.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | type Output = $type; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | curve_operations!(Affine); [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/curve.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 120 | / fn mul(self, scalar: &U256) -> $type { [INFO] [stdout] 121 | | // OPT: Use WNAF [INFO] [stdout] 122 | | let mut r = self.clone(); [INFO] [stdout] 123 | | for i in (0..scalar.msb()).rev() { [INFO] [stdout] ... | [INFO] [stdout] 129 | | r [INFO] [stdout] 130 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 173 | curve_operations!(Affine); [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/curve.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | / impl Mul for $type { [INFO] [stdout] 146 | | type Output = Self; [INFO] [stdout] 147 | | [INFO] [stdout] 148 | | fn mul(self, scalar: U256) -> Self { [INFO] [stdout] 149 | | &self * &scalar [INFO] [stdout] 150 | | } [INFO] [stdout] 151 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 173 | curve_operations!(Affine); [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/curve.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | type Output = Self; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | curve_operations!(Affine); [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/curve.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | / fn mul(self, scalar: U256) -> Self { [INFO] [stdout] 149 | | &self * &scalar [INFO] [stdout] 150 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 173 | curve_operations!(Affine); [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/curve.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | / impl Mul<&U256> for $type { [INFO] [stdout] 154 | | type Output = Self; [INFO] [stdout] 155 | | [INFO] [stdout] 156 | | fn mul(self, scalar: &U256) -> Self { [INFO] [stdout] 157 | | &self * scalar [INFO] [stdout] 158 | | } [INFO] [stdout] 159 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 173 | curve_operations!(Affine); [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/curve.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | type Output = Self; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | curve_operations!(Affine); [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/curve.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | / fn mul(self, scalar: &U256) -> Self { [INFO] [stdout] 157 | | &self * scalar [INFO] [stdout] 158 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 173 | curve_operations!(Affine); [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/curve.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 161 | / impl Mul for &$type { [INFO] [stdout] 162 | | type Output = $type; [INFO] [stdout] 163 | | [INFO] [stdout] 164 | | fn mul(self, scalar: U256) -> $type { [INFO] [stdout] 165 | | self * &scalar [INFO] [stdout] 166 | | } [INFO] [stdout] 167 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 173 | curve_operations!(Affine); [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/curve.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | type Output = $type; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | curve_operations!(Affine); [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/curve.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | / fn mul(self, scalar: U256) -> $type { [INFO] [stdout] 165 | | self * &scalar [INFO] [stdout] 166 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 173 | curve_operations!(Affine); [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/curve.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | / impl Mul<&U256> for &$type { [INFO] [stdout] 118 | | type Output = $type; [INFO] [stdout] 119 | | [INFO] [stdout] 120 | | fn mul(self, scalar: &U256) -> $type { [INFO] [stdout] ... | [INFO] [stdout] 130 | | } [INFO] [stdout] 131 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/jacobian.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 239 | curve_operations!(Jacobian); [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/curve.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | type Output = $type; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/jacobian.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 239 | curve_operations!(Jacobian); [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/curve.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 120 | / fn mul(self, scalar: &U256) -> $type { [INFO] [stdout] 121 | | // OPT: Use WNAF [INFO] [stdout] 122 | | let mut r = self.clone(); [INFO] [stdout] 123 | | for i in (0..scalar.msb()).rev() { [INFO] [stdout] ... | [INFO] [stdout] 129 | | r [INFO] [stdout] 130 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/jacobian.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 239 | curve_operations!(Jacobian); [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/curve.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | / impl Mul for $type { [INFO] [stdout] 146 | | type Output = Self; [INFO] [stdout] 147 | | [INFO] [stdout] 148 | | fn mul(self, scalar: U256) -> Self { [INFO] [stdout] 149 | | &self * &scalar [INFO] [stdout] 150 | | } [INFO] [stdout] 151 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/jacobian.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 239 | curve_operations!(Jacobian); [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/curve.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | type Output = Self; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/jacobian.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 239 | curve_operations!(Jacobian); [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/curve.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | / fn mul(self, scalar: U256) -> Self { [INFO] [stdout] 149 | | &self * &scalar [INFO] [stdout] 150 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/jacobian.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 239 | curve_operations!(Jacobian); [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/curve.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | / impl Mul<&U256> for $type { [INFO] [stdout] 154 | | type Output = Self; [INFO] [stdout] 155 | | [INFO] [stdout] 156 | | fn mul(self, scalar: &U256) -> Self { [INFO] [stdout] 157 | | &self * scalar [INFO] [stdout] 158 | | } [INFO] [stdout] 159 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/jacobian.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 239 | curve_operations!(Jacobian); [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/curve.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | type Output = Self; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/jacobian.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 239 | curve_operations!(Jacobian); [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/curve.rs:156:13 [INFO] [stdout] | [INFO] [stdout] 156 | / fn mul(self, scalar: &U256) -> Self { [INFO] [stdout] 157 | | &self * scalar [INFO] [stdout] 158 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/jacobian.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 239 | curve_operations!(Jacobian); [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/curve.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 161 | / impl Mul for &$type { [INFO] [stdout] 162 | | type Output = $type; [INFO] [stdout] 163 | | [INFO] [stdout] 164 | | fn mul(self, scalar: U256) -> $type { [INFO] [stdout] 165 | | self * &scalar [INFO] [stdout] 166 | | } [INFO] [stdout] 167 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/jacobian.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 239 | curve_operations!(Jacobian); [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/curve.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | type Output = $type; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/jacobian.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 239 | curve_operations!(Jacobian); [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/curve.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | / fn mul(self, scalar: U256) -> $type { [INFO] [stdout] 165 | | self * &scalar [INFO] [stdout] 166 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/jacobian.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 239 | curve_operations!(Jacobian); [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/curve.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / impl Neg for &Affine { [INFO] [stdout] 65 | | type Output = Affine; [INFO] [stdout] 66 | | [INFO] [stdout] 67 | | fn neg(self) -> Self::Output { [INFO] [stdout] ... | [INFO] [stdout] 77 | | } [INFO] [stdout] 78 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/curve.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | type Output = Affine; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/curve.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | / fn neg(self) -> Self::Output { [INFO] [stdout] 68 | | match self { [INFO] [stdout] 69 | | Affine::Zero => Affine::Zero, [INFO] [stdout] 70 | | Affine::Point { x, y } => { [INFO] [stdout] ... | [INFO] [stdout] 76 | | } [INFO] [stdout] 77 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:131:1 [INFO] [stdout] | [INFO] [stdout] 131 | / impl Neg for &Jacobian { [INFO] [stdout] 132 | | type Output = Jacobian; [INFO] [stdout] 133 | | [INFO] [stdout] 134 | | fn neg(self) -> Jacobian { [INFO] [stdout] ... | [INFO] [stdout] 138 | | } [INFO] [stdout] 139 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | type Output = Jacobian; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | / fn neg(self) -> Jacobian { [INFO] [stdout] 135 | | let mut r = self.clone(); [INFO] [stdout] 136 | | r.neg_assign(); [INFO] [stdout] 137 | | r [INFO] [stdout] 138 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/curve.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | / impl AddAssign<&Affine> for Affine { [INFO] [stdout] 81 | | fn add_assign(&mut self, rhs: &Self) { [INFO] [stdout] 82 | | match self { [INFO] [stdout] 83 | | Self::Zero => *self = rhs.clone(), [INFO] [stdout] ... | [INFO] [stdout] 104 | | } [INFO] [stdout] 105 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/curve.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | / fn add_assign(&mut self, rhs: &Self) { [INFO] [stdout] 82 | | match self { [INFO] [stdout] 83 | | Self::Zero => *self = rhs.clone(), [INFO] [stdout] 84 | | Self::Point { x: ax, y: ay } => { [INFO] [stdout] ... | [INFO] [stdout] 103 | | } [INFO] [stdout] 104 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 141 | / impl AddAssign<&Jacobian> for Jacobian { [INFO] [stdout] 142 | | // We want to use the variable naming convention from the source [INFO] [stdout] 143 | | #[allow(clippy::many_single_char_names)] [INFO] [stdout] 144 | | // We need multiplications to implement addition [INFO] [stdout] ... | [INFO] [stdout] 178 | | } [INFO] [stdout] 179 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:146:5 [INFO] [stdout] | [INFO] [stdout] 146 | / fn add_assign(&mut self, rhs: &Self) { [INFO] [stdout] 147 | | if rhs.z == FieldElement::ZERO { [INFO] [stdout] 148 | | return; [INFO] [stdout] 149 | | } [INFO] [stdout] ... | [INFO] [stdout] 177 | | self.z = ((&self.z + &rhs.z).square() - z1z1 - z2z2) * h; [INFO] [stdout] 178 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:181:1 [INFO] [stdout] | [INFO] [stdout] 181 | / impl AddAssign<&Affine> for Jacobian { [INFO] [stdout] 182 | | // We want to use the variable naming convention from the source [INFO] [stdout] 183 | | #[allow(clippy::many_single_char_names)] [INFO] [stdout] 184 | | // We need multiplications to implement addition [INFO] [stdout] ... | [INFO] [stdout] 219 | | } [INFO] [stdout] 220 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:186:5 [INFO] [stdout] | [INFO] [stdout] 186 | / fn add_assign(&mut self, rhs: &Affine) { [INFO] [stdout] 187 | | match rhs { [INFO] [stdout] 188 | | Affine::Zero => { /* Do nothing */ } [INFO] [stdout] 189 | | Affine::Point { x, y } => { [INFO] [stdout] ... | [INFO] [stdout] 218 | | } [INFO] [stdout] 219 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/curve.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | / impl SubAssign<&$type> for $type { [INFO] [stdout] 112 | | fn sub_assign(&mut self, rhs: &Self) { [INFO] [stdout] 113 | | *self += &rhs.neg() [INFO] [stdout] 114 | | } [INFO] [stdout] 115 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 173 | curve_operations!(Affine); [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/curve.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | / fn sub_assign(&mut self, rhs: &Self) { [INFO] [stdout] 113 | | *self += &rhs.neg() [INFO] [stdout] 114 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 173 | curve_operations!(Affine); [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/jacobian.rs:233:1 [INFO] [stdout] | [INFO] [stdout] 233 | / impl SubAssign<&Affine> for Jacobian { [INFO] [stdout] 234 | | fn sub_assign(&mut self, rhs: &Affine) { [INFO] [stdout] 235 | | self.add_assign(&rhs.neg()) [INFO] [stdout] 236 | | } [INFO] [stdout] 237 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/jacobian.rs:234:5 [INFO] [stdout] | [INFO] [stdout] 234 | / fn sub_assign(&mut self, rhs: &Affine) { [INFO] [stdout] 235 | | self.add_assign(&rhs.neg()) [INFO] [stdout] 236 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing code example in this documentation [INFO] [stdout] --> src/curve.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | / impl SubAssign<&$type> for $type { [INFO] [stdout] 112 | | fn sub_assign(&mut self, rhs: &Self) { [INFO] [stdout] 113 | | *self += &rhs.neg() [INFO] [stdout] 114 | | } [INFO] [stdout] 115 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/jacobian.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 239 | curve_operations!(Jacobian); [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/curve.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | / fn sub_assign(&mut self, rhs: &Self) { [INFO] [stdout] 113 | | *self += &rhs.neg() [INFO] [stdout] 114 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/jacobian.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 239 | curve_operations!(Jacobian); [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/curve.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | / impl MulAssign<&U256> for $type { [INFO] [stdout] 134 | | fn mul_assign(&mut self, scalar: &U256) { [INFO] [stdout] 135 | | *self = &*self * scalar; [INFO] [stdout] 136 | | } [INFO] [stdout] 137 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 173 | curve_operations!(Affine); [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/curve.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | / fn mul_assign(&mut self, scalar: &U256) { [INFO] [stdout] 135 | | *self = &*self * scalar; [INFO] [stdout] 136 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 173 | curve_operations!(Affine); [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/curve.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | / impl MulAssign for $type { [INFO] [stdout] 140 | | fn mul_assign(&mut self, scalar: U256) { [INFO] [stdout] 141 | | *self *= &scalar; [INFO] [stdout] 142 | | } [INFO] [stdout] 143 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 173 | curve_operations!(Affine); [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/curve.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | / fn mul_assign(&mut self, scalar: U256) { [INFO] [stdout] 141 | | *self *= &scalar; [INFO] [stdout] 142 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] ... [INFO] [stdout] 173 | curve_operations!(Affine); [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/curve.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | / impl MulAssign<&U256> for $type { [INFO] [stdout] 134 | | fn mul_assign(&mut self, scalar: &U256) { [INFO] [stdout] 135 | | *self = &*self * scalar; [INFO] [stdout] 136 | | } [INFO] [stdout] 137 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/jacobian.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 239 | curve_operations!(Jacobian); [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/curve.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | / fn mul_assign(&mut self, scalar: &U256) { [INFO] [stdout] 135 | | *self = &*self * scalar; [INFO] [stdout] 136 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/jacobian.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 239 | curve_operations!(Jacobian); [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/curve.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | / impl MulAssign for $type { [INFO] [stdout] 140 | | fn mul_assign(&mut self, scalar: U256) { [INFO] [stdout] 141 | | *self *= &scalar; [INFO] [stdout] 142 | | } [INFO] [stdout] 143 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/jacobian.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 239 | curve_operations!(Jacobian); [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/curve.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | / fn mul_assign(&mut self, scalar: U256) { [INFO] [stdout] 141 | | *self *= &scalar; [INFO] [stdout] 142 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/jacobian.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 239 | curve_operations!(Jacobian); [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: 104 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 21.90s [INFO] running `Command { std: "docker" "inspect" "bf425ef59277dead81086725e9fa97daadd3cd6cc461182f156a1f9f8064b42b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf425ef59277dead81086725e9fa97daadd3cd6cc461182f156a1f9f8064b42b", kill_on_drop: false }` [INFO] [stdout] bf425ef59277dead81086725e9fa97daadd3cd6cc461182f156a1f9f8064b42b