Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: panic when using float numbers without dots in chain calls #16770

Merged
merged 3 commits into from
Mar 6, 2024

Conversation

roife
Copy link
Member

@roife roife commented Mar 6, 2024

Fix #16278.

This PR fixes the panic caused by using floating-point numbers without a dot (such as 1e2) in chain calls.


Although this syntax is very odd 🤣, r-a should not panic.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 6, 2024
@roife roife changed the title fix: panic when splitting float numbers without dots fix: panic when using float numbers without dots in chain calls Mar 6, 2024
@Veykril
Copy link
Member

Veykril commented Mar 6, 2024

Thanks!
@bors r+

@bors
Copy link
Collaborator

bors commented Mar 6, 2024

📌 Commit e2daee6 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Mar 6, 2024

⌛ Testing commit e2daee6 with merge a535c76...

bors added a commit that referenced this pull request Mar 6, 2024
fix: panic when using float numbers without dots in chain calls

Fix #16278.

This PR fixes the panic caused by using floating-point numbers without a dot (such as `1e2`) in chain calls.

-------------

Although this syntax is very odd 🤣, r-a should not panic.
@bors
Copy link
Collaborator

bors commented Mar 6, 2024

💔 Test failed - checks-actions

@Veykril
Copy link
Member

Veykril commented Mar 6, 2024

Heh I think we had a fmt test in the rust-analyzer crate before but I lifted it into CI if I am not mistaken so that we get annotations in the PR code.

You could also look into setting up a git commit hook for yourself. (I don't like them as they slow down the commit command)

@Veykril
Copy link
Member

Veykril commented Mar 6, 2024

@bors r+

@bors
Copy link
Collaborator

bors commented Mar 6, 2024

📌 Commit 91d181f has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Mar 6, 2024

⌛ Testing commit 91d181f with merge e5889c9...

@bors
Copy link
Collaborator

bors commented Mar 6, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing e5889c9 to master...

@bors bors merged commit e5889c9 into rust-lang:master Mar 6, 2024
11 checks passed
@roife roife deleted the fix-issue-16278 branch April 1, 2024 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ice: entered unreachabe code
4 participants