mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Auto merge of #12425 - feniljain:fix_bugs, r=lnicola
fix: float display impl should solve #12414
This commit is contained in:
@@ -52,7 +52,7 @@ pub fn new(value: f64) -> Self {
|
||||
|
||||
impl std::fmt::Display for FloatTypeWrapper {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "{}", f64::from_bits(self.0))
|
||||
write!(f, "{:?}", f64::from_bits(self.0))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3634,7 +3634,7 @@ fn hover_const_eval() {
|
||||
```
|
||||
|
||||
```rust
|
||||
const FOO: f32 = 1
|
||||
const FOO: f32 = 1.0
|
||||
```
|
||||
|
||||
---
|
||||
@@ -3656,7 +3656,7 @@ fn hover_const_eval() {
|
||||
```
|
||||
|
||||
```rust
|
||||
const FOO: f64 = 1
|
||||
const FOO: f64 = 1.0
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user