Skip to content

Commit

Permalink
Comment out #[doc(hidden)] to allow impls to appear in internal docs.
Browse files Browse the repository at this point in the history
This is related to rust-lang/rust#46380 upstream.
  • Loading branch information
plotskogwq authored and hdevalence committed Nov 29, 2017
1 parent f8a0263 commit 1cb8795
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/curve_models/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,13 @@ impl ProjectivePoint {
// Addition and Subtraction
// ------------------------------------------------------------------------

// These are doc(hidden) so they don't appear in the public API docs.
#[doc(hidden)]
// XXX(hdevalence) These were doc(hidden) so they don't appear in the
// public API docs.
// However, that prevents them being used with --document-private-items,
// so comment out the doc(hidden) for now until this is resolved
//
// upstream rust issue: https://github.com/rust-lang/rust/issues/46380
//#[doc(hidden)]
impl<'a, 'b> Add<&'b ProjectiveNielsPoint> for &'a ExtendedPoint {
type Output = CompletedPoint;

Expand All @@ -370,7 +375,7 @@ impl<'a, 'b> Add<&'b ProjectiveNielsPoint> for &'a ExtendedPoint {
}
}

#[doc(hidden)]
//#[doc(hidden)]
impl<'a, 'b> Sub<&'b ProjectiveNielsPoint> for &'a ExtendedPoint {
type Output = CompletedPoint;

Expand All @@ -392,7 +397,7 @@ impl<'a, 'b> Sub<&'b ProjectiveNielsPoint> for &'a ExtendedPoint {
}
}

#[doc(hidden)]
//#[doc(hidden)]
impl<'a, 'b> Add<&'b AffineNielsPoint> for &'a ExtendedPoint {
type Output = CompletedPoint;

Expand All @@ -413,7 +418,7 @@ impl<'a, 'b> Add<&'b AffineNielsPoint> for &'a ExtendedPoint {
}
}

#[doc(hidden)]
//#[doc(hidden)]
impl<'a, 'b> Sub<&'b AffineNielsPoint> for &'a ExtendedPoint {
type Output = CompletedPoint;

Expand Down

0 comments on commit 1cb8795

Please sign in to comment.