File tree 3 files changed +14
-2
lines changed
3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 3
3
# version like 1.70. Note that we only specify MAJOR.MINOR and not PATCH so that bugfixes still
4
4
# come automatically. If the version specified here is no longer the latest stable version,
5
5
# then please feel free to submit a PR that adjusts it along with the potential clippy fixes.
6
- RUST_STABLE_VER : " 1.83 " # In quotes because otherwise (e.g.) 1.70 would be interpreted as 1.7
6
+ RUST_STABLE_VER : " 1.84 " # In quotes because otherwise (e.g.) 1.70 would be interpreted as 1.7
7
7
# The purpose of checking with the minimum supported Rust toolchain is to detect its staleness.
8
8
# If the compilation fails, then the version specified here needs to be bumped up to reality.
9
9
# Be sure to also update the rust-version property in the workspace Cargo.toml file,
@@ -324,4 +324,4 @@ jobs:
324
324
- uses : actions/checkout@v4
325
325
326
326
- name : check typos
327
- uses : crate-ci/typos@v1.28 .4
327
+ uses : crate-ci/typos@v1.29 .4
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ version = "0.2.2"
13
13
edition = " 2021"
14
14
# Keep in sync with RUST_MIN_VER in .github/workflows/ci.yml, with the relevant README.md files
15
15
# and with the MSRV in the `Unreleased` section of CHANGELOG.md.
16
+ # When updating to 1.83 or later, update `color/src/flags.rs` and remove this note.
17
+ # When updating to 1.84 or later, update `color/src/floatfuncs.rs` and remove this note.
16
18
rust-version = " 1.82"
17
19
license = " Apache-2.0 OR MIT"
18
20
repository = " https://github.com/linebender/color"
Original file line number Diff line number Diff line change 1
1
// Copyright 2024 the Color Authors
2
2
// SPDX-License-Identifier: Apache-2.0 OR MIT
3
3
4
+ // In Rust 1.84 (https://github.com/rust-lang/rust/pull/131304), `abs` and
5
+ // `copysign` were added to `core`, so we no longer need these forwarded to
6
+ // libm.
7
+ #![ cfg_attr(
8
+ not( feature = "std" ) ,
9
+ allow( dead_code, reason = "abs and copysign were added to core in 1.84" )
10
+ ) ]
11
+
4
12
//! Shims for math functions that ordinarily come from std.
5
13
6
14
/// Defines a trait that chooses between libstd or libm implementations of float methods.
@@ -35,10 +43,12 @@ macro_rules! define_float_funcs {
35
43
}
36
44
37
45
define_float_funcs ! {
46
+ // This is not needed once the MSRV is 1.84 or later.
38
47
fn abs( self ) -> Self => fabsf;
39
48
fn atan2( self , other: Self ) -> Self => atan2f;
40
49
fn cbrt( self ) -> Self => cbrtf;
41
50
fn ceil( self ) -> Self => ceilf;
51
+ // This is not needed once the MSRV is 1.84 or later.
42
52
fn copysign( self , sign: Self ) -> Self => copysignf;
43
53
fn floor( self ) -> Self => floorf;
44
54
fn hypot( self , other: Self ) -> Self => hypotf;
You can’t perform that action at this time.
0 commit comments