@@ -270,6 +270,9 @@ impl From<u8> for Choice {
270
270
/// assert_eq!(x.ct_eq(&y).unwrap_u8(), 0);
271
271
/// assert_eq!(x.ct_eq(&x).unwrap_u8(), 1);
272
272
/// ```
273
+ //
274
+ // #[inline] is specified on these function prototypes to signify that they
275
+ #[ allow( unused_attributes) ] // should be in the actual implementation
273
276
pub trait ConstantTimeEq {
274
277
/// Determine if two items are equal.
275
278
///
@@ -397,6 +400,9 @@ impl ConstantTimeEq for cmp::Ordering {
397
400
///
398
401
/// This trait also provides generic implementations of conditional
399
402
/// assignment and conditional swaps.
403
+ //
404
+ // #[inline] is specified on these function prototypes to signify that they
405
+ #[ allow( unused_attributes) ] // should be in the actual implementation
400
406
pub trait ConditionallySelectable : Copy {
401
407
/// Select `a` or `b` according to `choice`.
402
408
///
@@ -604,6 +610,9 @@ where
604
610
/// A generic implementation of `ConditionallyNegatable` is provided
605
611
/// for types `T` which are `ConditionallySelectable` and have `Neg`
606
612
/// implemented on `&T`.
613
+ //
614
+ // #[inline] is specified on these function prototypes to signify that they
615
+ #[ allow( unused_attributes) ] // should be in the actual implementation
607
616
pub trait ConditionallyNegatable {
608
617
/// Negate `self` if `choice == Choice(1)`; otherwise, leave it
609
618
/// unchanged.
0 commit comments