-
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
Make clippy_lints::{utils,consts} modules private, remove unused items. #3105
Conversation
@@ -0,0 +1,114 @@ | |||
/// Return the index of the character after the first camel-case component of | |||
/// `s`. | |||
pub fn camel_case_until(s: &str) -> usize { |
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.
moved from clippy_lints/src/utils/mod.rs
clippy_lints/src/utils/sugg.rs
Outdated
@@ -175,15 +175,6 @@ impl<'a> Sugg<'a> { | |||
make_unop("&mut *", self) | |||
} | |||
|
|||
/// Convenience method to create the `<lhs>..<rhs>` or `<lhs>...<rhs>` |
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.
Please leave that one in (maybe just keep exporting the Sugg
type). I think we'll want to upstream it to rustc at some point and have it support a lot of expressions. Also there's an open issue about using this function on a bad suggestion currently produced due to not using this function
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.
comment has been addressed |
Anyone able to merge this who has permissions? |
Yeah, @oli-obk 😄 |
#[macro_use] | ||
pub mod utils; | ||
mod utils; |
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.
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.
Does RLS use any utils
anywhere else?
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.
I don't think so.
Could you leave the requested comment in #3230 ? |
No description provided.