about summary refs log tree commit diff
path: root/library/core/src/num/f16.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/core/src/num/f16.rs')
-rw-r--r--library/core/src/num/f16.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/library/core/src/num/f16.rs b/library/core/src/num/f16.rs
index 898caf835bf..91a9bb5cbbe 100644
--- a/library/core/src/num/f16.rs
+++ b/library/core/src/num/f16.rs
@@ -1243,8 +1243,9 @@ impl f16 {
             min <= max,
             "min > max, or either was NaN",
             "min > max, or either was NaN. min = {min:?}, max = {max:?}",
-            min: f16,
-            max: f16,
+            // FIXME(f16_f128): Passed by-ref to avoid codegen crashes
+            min: &f16 = &min,
+            max: &f16 = &max,
         );
 
         if self < min {