diff --git a/k256/src/arithmetic/tables.rs b/k256/src/arithmetic/tables.rs index 61738d4e6..193afaaa7 100644 --- a/k256/src/arithmetic/tables.rs +++ b/k256/src/arithmetic/tables.rs @@ -18,5 +18,7 @@ type BasepointTable = primeorder::BasepointTable; pub(super) static BASEPOINT_TABLE: BasepointTable = BasepointTable::new(); impl PrimeCurveWithBasepointTable for Secp256k1 { + /// Workaround for rust-lang/rust#140653: hide from rustdoc const-eval (E0080) until MSRV 1.90 + #[doc(hidden)] const BASEPOINT_TABLE: &'static BasepointTable = &BASEPOINT_TABLE; } diff --git a/p256/src/arithmetic/tables.rs b/p256/src/arithmetic/tables.rs index a8a663743..ce285b0f8 100644 --- a/p256/src/arithmetic/tables.rs +++ b/p256/src/arithmetic/tables.rs @@ -14,6 +14,8 @@ pub(super) type BasepointTable = primeorder::BasepointTable for NistP256 { + /// Workaround for rust-lang/rust#140653: hide from rustdoc const-eval (E0080) until MSRV 1.90 + #[doc(hidden)] const BASEPOINT_TABLE: &'static BasepointTable = &BASEPOINT_TABLE; } diff --git a/p384/src/arithmetic/tables.rs b/p384/src/arithmetic/tables.rs index 75c88313a..a51ad5541 100644 --- a/p384/src/arithmetic/tables.rs +++ b/p384/src/arithmetic/tables.rs @@ -14,6 +14,8 @@ pub(super) type BasepointTable = primeorder::BasepointTable for NistP384 { + /// Workaround for rust-lang/rust#140653: hide from rustdoc const-eval (E0080) until MSRV 1.90 + #[doc(hidden)] const BASEPOINT_TABLE: &'static BasepointTable = &BASEPOINT_TABLE; } diff --git a/p521/src/arithmetic/tables.rs b/p521/src/arithmetic/tables.rs index 41905235a..4d14b8ab3 100644 --- a/p521/src/arithmetic/tables.rs +++ b/p521/src/arithmetic/tables.rs @@ -14,6 +14,8 @@ pub(super) type BasepointTable = primeorder::BasepointTable for NistP521 { + /// Workaround for rust-lang/rust#140653: hide from rustdoc const-eval (E0080) until MSRV 1.90 + #[doc(hidden)] const BASEPOINT_TABLE: &'static BasepointTable = &BASEPOINT_TABLE; } diff --git a/sm2/src/arithmetic/tables.rs b/sm2/src/arithmetic/tables.rs index f9d20fbe3..1292f32b3 100644 --- a/sm2/src/arithmetic/tables.rs +++ b/sm2/src/arithmetic/tables.rs @@ -14,6 +14,8 @@ pub(super) type BasepointTable = primeorder::BasepointTable for Sm2 { + /// Workaround for rust-lang/rust#140653: hide from rustdoc const-eval (E0080) until MSRV 1.90 + #[doc(hidden)] const BASEPOINT_TABLE: &'static BasepointTable = &BASEPOINT_TABLE; }