Andre Bogus
cc622608db
new lints around #[must_use]
fns
...
`must_use_unit` lints unit-returning functions with a `#[must_use]`
attribute, suggesting to remove it.
`double_must_use` lints functions with a plain `#[must_use]`
attribute, but which return a type which is already `#[must_use]`,
so the attribute has no benefit.
`must_use_candidate` is a pedantic lint that lints functions and
methods that return some non-unit type that is not already
`#[must_use]` and suggests to add the annotation.
2019-10-14 12:09:04 +02:00
Michael Wright
be646ac0df
Update formatting
2019-08-01 07:09:57 +02:00
Matthias Krüger
c8443c1528
rustc_tool_utils: bump version to 0.2.0
2019-05-23 17:30:05 +02:00
Matthias Krüger
8012b91198
rustc_tools_util: try to handle case of not having CFG_RELEASE_CHANNEL better when getting compiler channel.
2019-04-28 23:28:26 +02:00
Grzegorz
16881390e1
removing redundant closures in the whole project
2019-02-10 13:35:44 +01:00
Philipp Hansch
38d4ac7cea
Remove all copyright license headers
...
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
2019-01-08 21:46:39 +01:00
Matthias Krüger
31d96300ef
rustc_tool_utils: fix failure to create proper non-repo version string when used in crates on crates.io, bump version
2019-01-02 20:12:15 +01:00
flip1995
3befd86967
Run rustfmt on rustc_tools_util
2018-11-27 21:12:38 +01:00
Manish Goregaokar
e9c025ea70
Add license header to Rust files
2018-10-06 09:43:08 -07:00
Matthias Krüger
34693c0d6d
rustc_tools_util: remove test and tool_lints features, both are actually unused.
...
Fixes build with beta.
2018-09-29 19:34:38 +02:00
Matthias Krüger
19802f8652
rustc_tools_util: clean up pedantic clippy warnings
2018-09-13 19:06:04 +02:00
Matthias Krüger
61249b360e
impl std::fmt::Debug for VersionInfo
...
For clippy, this would print:
VersionInfo { crate_name: "clippy", major: 0, minor: 0, patch: 212, commit_hash: "084be7ba", commit_date: "2018-09-09" }
2018-09-09 23:45:29 +02:00
Matthias Krüger
a14155088b
rustc_tools_util: add test
2018-09-07 19:18:45 +02:00
Matthias Krüger
202db3e09c
rustc_tools_util: don't hardcode crate name
2018-09-07 18:03:03 +02:00
Matthias Krüger
fa11aad92a
print git commit hash and commit date in version output
...
clippy 0.0.212 (964fcbe0 2018-09-06)
2018-09-06 14:45:12 +02:00