2024: Reserved ##
diagnostic is confusing
#131615
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-edition-2024
Area: The 2024 edition
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
The existing message referring to a "string literal" is confusing to me since there are no strings anywhere in the source. I don't think it will be obvious to users to make the connection between
##
and "that might come before some reserved string thing that doesn't yet exist". I would suggest avoiding the terminology of "string literal" if there is no string literal following the last#
.Other cases
No response
Rust Version
rustc 1.83.0-nightly (1bc403d 2024-10-11)
binary: rustc
commit-hash: 1bc403d
commit-date: 2024-10-11
host: aarch64-apple-darwin
release: 1.83.0-nightly
LLVM version: 19.1.1
Anything else?
No response
The text was updated successfully, but these errors were encountered: