-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
underscore_literal_suffix
future-compatibility warnings
#42326
Comments
Triage: it's been a few years, and looks like nobody has visited this issue. |
Visiting as part of T-compiler backlog bonanza. This lint appears implemented, perhaps via a The current diagnostic output indicates that it is probably not using the usual lint infrastructure (that would enable using Next steps are
@rustbot label: +S-tracking-needs-to-bake |
@pnkfelix is this "needs to bake"? It feels like we are ready to take next steps here (running on crater). |
…enkov Make underscore_literal_suffix a hard error. It's been a warning for 5.5 years. Time to make it a hard error. Closes rust-lang#42326. r? `@pnkfelix`
…enkov Make underscore_literal_suffix a hard error. It's been a warning for 5.5 years. Time to make it a hard error. Closes rust-lang#42326. r? ``@pnkfelix``
This is the summary issue for the
UNDERSCORE_LITERAL_SUFFIX
future-compatibility warning and other related errors. The goal of this page is describe why this change was made and how you can fixcode that is affected by it. It also provides a place to ask questions or register a complaint if you feel the change should not be made.
What is the warning for?
The
underscore_literal_suffix
warning is issued when you use_
as a literal suffix. Due to the behavior of the lexer, this is limited to these two situations:"Foo"_
.
:1._
(this kind of construction is already banned by means of Disallow ._ in float literal. #41946)This warning can always be fixed by removing the
_
and inserting whitespaces if necessary.When will this warning become a hard error?
At the beginning of each 6-week release cycle, the Rust compiler team
will review the set of outstanding future compatibility warnings and
nominate some of them for Final Comment Period. Toward the end of
the cycle, we will review any comments and make a final determination
whether to convert the warning into a hard error or remove it
entirely.
The text was updated successfully, but these errors were encountered: