Skip to content

Commit bb56268

Browse files
authored
Rollup merge of #141874 - usamoi:eps, r=tgross35
add f16_epsilon and f128_epsilon diagnostic items cc #116909 r? `@tgross35`
2 parents d8eaf17 + d948907 commit bb56268

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

compiler/rustc_span/src/symbol.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,8 +937,10 @@ symbols! {
937937
external_doc,
938938
f,
939939
f128,
940+
f128_epsilon,
940941
f128_nan,
941942
f16,
943+
f16_epsilon,
942944
f16_nan,
943945
f16c_target_feature,
944946
f32,

library/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.

library/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)