Skip to content

print git commit hash and commit date in version output #3137

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

Merged
merged 1 commit into from
Sep 6, 2018

Conversation

matthiaskrgr
Copy link
Member

clippy 0.0.212 (964fcbe0 2018-09-06)

Fixes #3015

}

// https://internals.rust-lang.org/t/macro-trait-implementation/5492
impl VersionInfo {
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't this function and the Default impl essentially always wrong? And also unused, so it could be removed entirely

Copy link
Member Author

Choose a reason for hiding this comment

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

I added the Default because of #[warn(clippy::new_without_default_derive)] on by default 😆

I'll remove the ::new() and ::default()

@phansch phansch merged commit cafef7b into rust-lang:master Sep 6, 2018
@phansch
Copy link
Member

phansch commented Sep 6, 2018

this will be super helpful 🎉

@oli-obk
Copy link
Contributor

oli-obk commented Sep 7, 2018

@matthiaskrgr If you're interested: I think the rls people would be very happy to reuse the tools-util crate instead of having a copy of that code in their own codebase

@matthiaskrgr
Copy link
Member Author

@oli-obk yeah, that was my going to be my next step :D
Once clippy is updated in the rust repo I will try to update clippy submodule in rls and make use of the version crate there :)

bors-voyager bot added a commit to rust-lang/rls that referenced this pull request Sep 22, 2018
1051: fix build and use clippys rustc_tools_util to generate version information r=Xanewok a=matthiaskrgr

See rust-lang/rust-clippy#3137 (comment)

Co-authored-by: Matthias Krüger <[email protected]>
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.

3 participants