Skip to content
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

Merged
merged 2 commits into from
Aug 29, 2018

Conversation

frewsxcv
Copy link
Member

No description provided.

@@ -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 {
Copy link
Member Author

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

@@ -175,15 +175,6 @@ impl<'a> Sugg<'a> {
make_unop("&mut *", self)
}

/// Convenience method to create the `<lhs>..<rhs>` or `<lhs>...<rhs>`
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@frewsxcv
Copy link
Member Author

comment has been addressed

@frewsxcv
Copy link
Member Author

Anyone able to merge this who has permissions?

@mati865
Copy link
Contributor

mati865 commented Aug 29, 2018

Yeah, @oli-obk 😄

@Manishearth Manishearth merged commit e0ad732 into rust-lang:master Aug 29, 2018
#[macro_use]
pub mod utils;
mod utils;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

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?

Copy link
Member

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.

@frewsxcv frewsxcv deleted the frewsxcv-private branch September 1, 2018 22:55
@Manishearth
Copy link
Member

Could you leave the requested comment in #3230 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants