-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Update error to reflect that integer literals can have float suffixes #79329
Conversation
r? @davidtwco (rust_highfive has picked a reviewer for you, use r? to override) |
5d55937
to
b11d0f2
Compare
@bors r+ |
📌 Commit b11d0f2 has been approved by |
⌛ Testing commit b11d0f2 with merge b02208a1d22fdfc560acda765e50c9ee5b90cac5... |
💔 Test failed - checks-actions |
@bors retry |
Why have there been so many spurious bors failures? |
Looks like I need to update clippy tests :/ |
For example, `1` is parsed as an integer literal, but it can be turned into a float with the suffix `f32`. Now the error calls them "numeric literals" and notes that you can add a float suffix since they can be either integers or floats.
b11d0f2
to
a3cde63
Compare
Okay, should be ready for another |
@bors r+ |
📌 Commit a3cde63 has been approved by |
☀️ Test successful - checks-actions |
…twco Update error to reflect that integer literals can have float suffixes For example, `1` is parsed as an integer literal, but it can be turned into a float with the suffix `f32`. Now the error calls them "numeric literals" and notes that you can add a float suffix since they can be either integers or floats.
For example,
1
is parsed as an integer literal, but it can be turnedinto a float with the suffix
f32
. Now the error calls them "numericliterals" and notes that you can add a float suffix since they can be
either integers or floats.