Commit graph

4101 commits

Author SHA1 Message Date
kimsnj
53c0ae0169 Fix #1159: avoid comparing fixed and target sized types in lint 2018-01-12 18:33:25 +01:00
Oliver Schneider
b863a00a4e
Merge pull request #2344 from HMPerson1/svar_to_cfn
Add lint to replace `const`s with `const fn`s
2018-01-12 14:59:06 +01:00
Oliver Schneider
7e21663f75
Merge pull request #2296 from DarrenTsung/test_types
Start regression tests for types.rs
2018-01-12 14:55:39 +01:00
Manish Goregaokar
c66eaee77c Nightly only 2018-01-12 16:03:13 +05:30
HMPerson1
8505ee7028 Add lint to replace consts with const fns 2018-01-11 12:03:46 -05:00
Oliver Schneider
1245de1e46
Don't suggest changing explicit Clone impls if they have generics 2018-01-11 10:28:42 +01:00
Oliver Schneider
41a710e3f4
Version bump 2018-01-10 09:50:58 +01:00
Oliver Schneider
75c92aa2d2
Fix an ICE in HashMap generalization suggestions 2018-01-09 14:57:44 +01:00
Oliver Schneider
4603e60fca
Merge pull request #2316 from tspiteri/doc-names
Add "NaNs" and "GitLab" to `doc-valid-idents`
2018-01-09 09:10:18 +01:00
Oliver Schneider
18f3f0dd62
Version bump 2018-01-08 11:43:01 +01:00
Oliver Schneider
25e5b9f78e
Merge pull request #2328 from phansch/master
Split up casting UI tests
2018-01-08 11:06:28 +01:00
Oliver Schneider
64af362ab0
Merge pull request #2334 from Rantanen/ast-fix
Implement nightly libsyntax changes to fix the build
2018-01-08 10:56:07 +01:00
Manish Goregaokar
752c02d35d
Merge pull request #2339 from phansch/add_some_lint_examples
Add 'positive' examples for some lints
2018-01-08 15:09:33 +05:30
Philipp Hansch
1a16ac058d
Add 'positive' examples for some lints
This allows to see at a quick glance what the improved code could look
like for these lints.
2018-01-08 10:20:04 +01:00
Martin Carton
53b77071d0
Merge pull request #2337 from phansch/update_readme
Add link to lints in README configuration section
2018-01-07 14:12:34 +01:00
Philipp Hansch
ab5b7dd7c1
Add link to lints in README configuration section
The wiki has been deprecated.
2018-01-07 12:55:40 +01:00
Mikko Rantanen
91ecb3b8ed
Implement nightly libsyntax changes 2018-01-07 05:58:53 +02:00
Philipp Hansch
fded77d85e
Split up casting UI tests
Part of #2038
2018-01-06 11:22:20 +01:00
Oliver Schneider
5815681b38
Merge pull request #2326 from mikerite/fix_travis_macos
Fix Travis CI build
2018-01-06 10:59:08 +01:00
Michael Wright
1afbe3203c Fix build
Added comment
2018-01-06 08:31:39 +02:00
Michael Wright
80f86633a9 Make style consistent 2018-01-06 08:14:52 +02:00
Michael Wright
5068a1252d Fix build
Adding gpg key import.
2018-01-04 21:17:04 +02:00
Michael Wright
6802232e28 Fix build
Trying the work-around suggested at
https://github.com/travis-ci/travis-ci/issues/6307 to fix the Travis CI
MacOS build.
2018-01-04 20:39:31 +02:00
Manish Goregaokar
29c6093ef0
Merge pull request #2324 from killercup/feature/2319-suggest-empty-println
Add auto-fixable `println!()` suggestion
2018-01-04 12:08:54 +00:00
Pascal Hertleif
82d91c5fcb Add auto-fixable println!() suggestion
Fixes #2319
2018-01-04 12:46:26 +01:00
Trevor Spiteri
a5d0569a20 Add "NaNs" and "GitLab" to doc-valid-idents 2018-01-02 13:51:35 +01:00
llogiq
ca3d6dd51a
Merge pull request #2312 from zmt00/master
Fix typos in README, documentation
2018-01-01 22:51:04 +00:00
zmt00
a7f423b114 Fix typos in README, documentation 2018-01-01 13:55:40 -08:00
Oliver Schneider
1ecce2d803
Merge pull request #2307 from clarcharr/master
Rearrange README.md.
2017-12-27 23:28:04 +01:00
Clar Charr
8abf9647ce Rearrange README.md.
This suggests `cargo clippy` first, which is probably the best method at this point. It also describes how to enable clippy only when testing.
2017-12-27 11:06:40 -05:00
Michael Wright
6737bae9b1 Implemented option_option lint 2017-12-26 09:24:12 +02:00
Darren Tsung
0f4c40b229 Start regression tests for types.rs 2017-12-23 10:15:11 -08:00
Oliver Schneider
f0d0fc69de
Merge pull request #2291 from DarrenTsung/fix_2265
Fix #2265, ignore eq_op lint in macro invocation
2017-12-23 01:06:44 +01:00
Darren Tsung
b9abe028c9 Move in_macro check to end of expression since usual case is not inside macro 2017-12-22 10:54:52 -08:00
Darren Tsung
1f36aa519e Check that eq_op lint doesn’t mark macro use of functions as errors since macros, fix #2265 2017-12-22 10:51:41 -08:00
Darren Tsung
50eb48e42b Create failing test for equal inside macro 2017-12-22 10:37:44 -08:00
Manish Goregaokar
4daa4e38e2
Merge pull request #2289 from rust-lang-nursery/rustup
Rustup to rustc 1.24.0-nightly (250b49205 2017-12-21)
2017-12-21 21:12:54 -08:00
Manish Goregaokar
fae8a763f8
Bump to 0.0.177 2017-12-21 20:56:26 -08:00
Manish Goregaokar
bebc192df4 Universal impl traits get removed earlier now
https://github.com/rust-lang/rust/pull/46754
2017-12-21 20:54:49 -08:00
Manish Goregaokar
7e099903be Update to handle GenericParam
introduced in https://github.com/rust-lang/rust/pull/45930
2017-12-21 20:54:49 -08:00
Martin Carton
ebcdf03147
Merge pull request #2286 from DarrenTsung/readme-clarify-add-lines
Clarify README for new Rust users.
2017-12-22 00:45:50 +01:00
Darren Tsung
203038cbe5 Add +nightly to command for running cargo build. 2017-12-21 15:24:18 -08:00
Darren Tsung
1d523ce8f7 Add “, add these lines” as well as removing the extra space between the attributes to make it more clear that both should be included. 2017-12-21 15:21:28 -08:00
Oliver Schneider
2179f4d790
Merge pull request #2284 from rust-lang-nursery/new-macro
Move mini-macro to proc macro
2017-12-20 21:56:00 +01:00
Manish Goregaokar
775372db90 Move mini-macro to proc macro
We can add a bang-style proc macro again once it stabilizes (we can use
the proc macro hack, but it's unnecessary for now)
2017-12-20 08:16:44 -08:00
Oliver Schneider
f0168621c9
Merge pull request #2281 from detrumi/match-as-ref
Lint for matching option as ref
2017-12-20 11:07:31 +01:00
Wilco Kusee
a6ccc6fe3d Also suggest as_mut for match_as_ref 2017-12-20 10:39:48 +01:00
Wilco Kusee
919601bc51 Lint for matching option as ref 2017-12-19 23:51:06 +01:00
Oliver Schneider
cf58e1c672
Merge pull request #2269 from letheed/fix-2267
Disable cast_lossless on const/static items
2017-12-17 15:09:41 +01:00
Oliver Schneider
8ddcb81a15
Rustup and lazy_static version mismatch fix
fixes #2274
2017-12-15 10:05:32 +01:00