Skip to content

Commit 4e136dd

Browse files
bors[bot]cuviper
andcommitted
Merge #68
68: Release 0.2.3 r=cuviper a=cuviper Closes #66. Co-authored-by: Josh Stone <[email protected]>
2 parents c3feb40 + 4a03db4 commit 4e136dd

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ categories = ["algorithms", "science", "no-std"]
88
license = "MIT/Apache-2.0"
99
repository = "https://github.com/rust-num/num-traits"
1010
name = "num-traits"
11-
version = "0.2.2"
11+
version = "0.2.3"
1212
readme = "README.md"
1313

1414
[package.metadata.docs.rs]

RELEASES.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
# Release 0.2.3
2+
3+
- [The new `CheckedNeg` and `CheckedRem` traits][63] perform checked `Neg` and
4+
`Rem`, returning `Some(output)` or `None` on overflow.
5+
- [The `no_std` implementation of `FloatCore::to_degrees` for `f32`][61] now
6+
uses a constant for greater accuracy, mirroring [rust#47919]. (With `std` it
7+
just calls the inherent `f32::to_degrees` in the standard library.)
8+
- [The new `MulAdd` and `MulAddAssign` traits][59] perform a fused multiply-
9+
add. For integer types this is just a convenience, but for floating point
10+
types this produces a more accurate result than the separate operations.
11+
- [All applicable traits are now implemented for 128-bit integers][60] starting
12+
with Rust 1.26, enabled by the new `i128` crate feature. The `FromPrimitive`
13+
and `ToPrimitive` traits now also have corresponding 128-bit methods, which
14+
default to converting via 64-bit integers for compatibility.
15+
16+
**Contributors**: @cuviper, @LEXUGE, @regexident, @vks
17+
18+
[59]: https://github.com/rust-num/num-traits/pull/59
19+
[60]: https://github.com/rust-num/num-traits/pull/60
20+
[61]: https://github.com/rust-num/num-traits/pull/61
21+
[63]: https://github.com/rust-num/num-traits/pull/63
22+
[rust#47919]: https://github.com/rust-lang/rust/pull/47919
23+
124
# Release 0.2.2
225

326
- [Casting from floating point to integers now returns `None` on overflow][52],

ci/test_full.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ cargo build --verbose --no-default-features
1313
cargo test --verbose --no-default-features
1414

1515
# test `i128`
16-
if [[ "$TRAVIS_RUST_VERSION" =~ ^(nightly|beta)$ ]]; then
16+
if [[ "$TRAVIS_RUST_VERSION" =~ ^(nightly|beta|stable)$ ]]; then
1717
cargo build --verbose --features=i128
1818
cargo test --verbose --features=i128
1919
fi

0 commit comments

Comments
 (0)