-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
New lint [needless_raw_string_hashes
]
#10884
Conversation
r? @dswij (rustbot has picked a reviewer for you, use r? to override) |
Seems the only instance of this from running |
Looks like there's also an open PR to add the same lint to rustc itself: rust-lang/rust#112373 (though it seems to be waiting on T-lang approval) |
487bf5f
to
915096b
Compare
d6b7b06
to
6c2ef3d
Compare
I think this fit in |
|
Now that I think about it, maybe |
4258597
to
2e47438
Compare
2e47438
to
d215098
Compare
☔ The latest upstream changes (presumably #10925) made this pull request unmergeable. Please resolve the merge conflicts. |
ec4e194
to
c28deba
Compare
Pushed to the wrong branch :D |
☔ The latest upstream changes (presumably #10886) made this pull request unmergeable. Please resolve the merge conflicts. |
c28deba
to
196993e
Compare
☔ The latest upstream changes (presumably #10951) made this pull request unmergeable. Please resolve the merge conflicts. |
196993e
to
f5cfac0
Compare
995585a
to
34bb0cb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this!
@bors r+ |
New lint [`needless_raw_string_hashes`] Emits a warning when there are an extraneous number of hashes(?) around a raw string literal, for example `r##"I'm a "raw string literal"!"##` or `cr#"crunb"#` Closes #10882 I think this could also fit in `style` as well, rather than `complexity`. changelog: Add [`needless_raw_string_hashes`] and [`needless_raw_string`] lints
💔 Test failed - checks-action_test |
add semicolon in doctest
Thanks, #112373, for the snippet at line 75!
Update raw_strings.rs Revert "new lints for visibility" This reverts commit 0e5a537. new lints for visibility
dogfood failed, seems to pass now @dswij |
34bb0cb
to
8cb6c86
Compare
@bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
The `needless_raw_string_hashes` lint was implemented in #10884. However, the name originally considered might have been `unnecessary_raw_string_hashes`, so this part refers to a non-existent lint. r? flip1995 changelog: none
Emits a warning when there are an extraneous number of hashes(?) around a raw string literal, for example
r##"I'm a "raw string literal"!"##
orcr#"crunb"#
Closes #10882
I think this could also fit in
style
as well, rather thancomplexity
.changelog: Add [
needless_raw_string_hashes
] and [needless_raw_string
] lints