Skip to content

Commit 018adbd

Browse files
authored
Rollup merge of rust-lang#141874 - usamoi:eps, r=tgross35
add f16_epsilon and f128_epsilon diagnostic items cc rust-lang#116909 r? ``@tgross35``
2 parents 9e7b1ee + c61f171 commit 018adbd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

core/src/num/f128.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ impl f128 {
171171
/// [Machine epsilon]: https://en.wikipedia.org/wiki/Machine_epsilon
172172
/// [`MANTISSA_DIGITS`]: f128::MANTISSA_DIGITS
173173
#[unstable(feature = "f128", issue = "116909")]
174+
#[rustc_diagnostic_item = "f128_epsilon"]
174175
pub const EPSILON: f128 = 1.92592994438723585305597794258492732e-34_f128;
175176

176177
/// Smallest finite `f128` value.

core/src/num/f16.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ impl f16 {
168168
/// [Machine epsilon]: https://en.wikipedia.org/wiki/Machine_epsilon
169169
/// [`MANTISSA_DIGITS`]: f16::MANTISSA_DIGITS
170170
#[unstable(feature = "f16", issue = "116909")]
171+
#[rustc_diagnostic_item = "f16_epsilon"]
171172
pub const EPSILON: f16 = 9.7656e-4_f16;
172173

173174
/// Smallest finite `f16` value.

0 commit comments

Comments
 (0)