Skip to content

Commit 4a5b65f

Browse files
committed
Merge branch 'feature/github-actions' into develop
2 parents d4f63b6 + 98525cb commit 4a5b65f

File tree

3 files changed

+63
-41
lines changed

3 files changed

+63
-41
lines changed

.github/workflows/test.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
on: [push, pull_request]
2+
3+
name: Test
4+
5+
jobs:
6+
test:
7+
name: cargo test
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
rust:
12+
- stable
13+
- beta
14+
- nightly
15+
- 1.41.0
16+
steps:
17+
- name: checkout
18+
uses: actions/checkout@v2
19+
- name: toolchain
20+
uses: actions-rs/toolchain@v1
21+
with:
22+
profile: minimal
23+
toolchain: ${{ matrix.rust }}
24+
target: thumbv7em-none-eabi
25+
override: true
26+
- name: test
27+
uses: actions-rs/cargo@v1
28+
with:
29+
command: test
30+
- name: nightly
31+
uses: actions-rs/cargo@v1
32+
with:
33+
command: test
34+
args: --features nightly
35+
- name: no-default-features
36+
uses: actions-rs/cargo@v1
37+
with:
38+
command: test
39+
args: --no-default-features
40+
- name: std
41+
uses: actions-rs/cargo@v1
42+
with:
43+
command: test
44+
args: --no-default-features --features std
45+
- name: std i128
46+
uses: actions-rs/cargo@v1
47+
with:
48+
command: test
49+
args: --no-default-features --features "std i128"
50+
- name: no std build
51+
uses: actions-rs/cargo@v1
52+
with:
53+
command: build
54+
args: --no-default-features --target thumbv7em-none-eabi

.travis.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@ impl From<u8> for Choice {
270270
/// assert_eq!(x.ct_eq(&y).unwrap_u8(), 0);
271271
/// assert_eq!(x.ct_eq(&x).unwrap_u8(), 1);
272272
/// ```
273+
//
274+
// #[inline] is specified on these function prototypes to signify that they
275+
#[allow(unused_attributes)] // should be in the actual implementation
273276
pub trait ConstantTimeEq {
274277
/// Determine if two items are equal.
275278
///
@@ -397,6 +400,9 @@ impl ConstantTimeEq for cmp::Ordering {
397400
///
398401
/// This trait also provides generic implementations of conditional
399402
/// 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
400406
pub trait ConditionallySelectable: Copy {
401407
/// Select `a` or `b` according to `choice`.
402408
///
@@ -604,6 +610,9 @@ where
604610
/// A generic implementation of `ConditionallyNegatable` is provided
605611
/// for types `T` which are `ConditionallySelectable` and have `Neg`
606612
/// 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
607616
pub trait ConditionallyNegatable {
608617
/// Negate `self` if `choice == Choice(1)`; otherwise, leave it
609618
/// unchanged.

0 commit comments

Comments
 (0)