Skip to content

fix: hover 1f64 use float instead of integer - #23279

Merged
ChayimFriedman2 merged 1 commit into
rust-lang:masterfrom
A4-Tacks:int-float-suf-hover
Sep 2, 2026
Merged

ChayimFriedman2 merged 1 commit into
rust-lang:masterfrom
A4-Tacks:int-float-suf-hover

Conversation

@A4-Tacks

@A4-Tacks A4-Tacks commented Sep 2, 2026

Copy link
Copy Markdown
Member

Fixes #23277

Example

fn main() {
    $01f64;
}

Before this PR

value of literal: ` 1 (0x1|0b1) `

After this PR

value of literal: ` 1 (bits: 0x3FF0000000000000) `

Example
---
```rust
fn main() {
    $01f64;
}
```

**Before this PR**

```rust
value of literal: ` 1 (0x1|0b1) `
```

**After this PR**

```rust
value of literal: ` 1 (bits: 0x3FF0000000000000) `
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 2, 2026
@ChayimFriedman2
ChayimFriedman2 added this pull request to the merge queue Sep 2, 2026
Merged via the queue into rust-lang:master with commit 01d22ea Sep 2, 2026
19 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 2, 2026
@A4-Tacks
A4-Tacks deleted the int-float-suf-hover branch September 3, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect bits in floating point "value of literal" popup: 123f64 is interpreted as an integer

3 participants