-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Conversation
b078818
to
6a72ca0
Compare
6a72ca0
to
46c782d
Compare
rustc_tools_util/src/lib.rs
Outdated
} | ||
|
||
// https://internals.rust-lang.org/t/macro-trait-implementation/5492 | ||
impl VersionInfo { |
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.
isn't this function and the Default
impl essentially always wrong? And also unused, so it could be removed entirely
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 added the Default
because of #[warn(clippy::new_without_default_derive)] on by default
😆
I'll remove the ::new()
and ::default()
46c782d
to
f5885f2
Compare
clippy 0.0.212 (964fcbe0 2018-09-06)
f5885f2
to
fa11aad
Compare
this will be super helpful 🎉 |
@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 |
@oli-obk yeah, that was my going to be my next step :D |
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]>
clippy 0.0.212 (964fcbe0 2018-09-06)
Fixes #3015