]>
git.lizzy.rs Git - rust.git/log
Michael Wright [Tue, 19 Jun 2018 05:37:09 +0000 (07:37 +0200)]
Replace `Constant::partial_cmp`
Michael Wright [Sat, 16 Jun 2018 16:33:11 +0000 (18:33 +0200)]
Fix #2741
Oliver Schneider [Fri, 15 Jun 2018 15:45:41 +0000 (17:45 +0200)]
Fix typo in lint dump script
Philipp Krones [Fri, 15 Jun 2018 15:44:44 +0000 (17:44 +0200)]
Merge pull request #2803 from Nemo157/trivially_copy_pass_by_ref
New Lint: Pass small trivially copyable objects by value
Wim Looman [Thu, 31 May 2018 18:15:48 +0000 (20:15 +0200)]
Dogfood new trivially_copy_pass_by_ref lint
Wim Looman [Sun, 27 May 2018 14:04:45 +0000 (16:04 +0200)]
Allow configuring the trivial copy size limit
Wim Looman [Sun, 27 May 2018 12:32:03 +0000 (14:32 +0200)]
New Lint: Pass small trivially copyable objects by value
Fixes #1680
Hardcoded for 64-bit "trivial" size for now
Manish Goregaokar [Fri, 15 Jun 2018 07:20:46 +0000 (00:20 -0700)]
More doc fixes
Manish Goregaokar [Fri, 15 Jun 2018 07:19:19 +0000 (00:19 -0700)]
Doc fix syntax
Oliver Schneider [Thu, 14 Jun 2018 20:50:07 +0000 (22:50 +0200)]
Lint printing was broken
Oliver Schneider [Tue, 12 Jun 2018 13:30:20 +0000 (06:30 -0700)]
Merge pull request #2839 from mikerite/duration_subsec_pr_2
Add duration_subsec lint
Michael Wright [Tue, 12 Jun 2018 06:25:10 +0000 (08:25 +0200)]
duration_subsec: Add check for `subsec_micros`
Oliver Schneider [Mon, 11 Jun 2018 13:33:26 +0000 (06:33 -0700)]
Merge pull request #2815 from darArch/master
Warn if non-trivial work is done inside .expect
Donald Robertson [Mon, 11 Jun 2018 13:17:40 +0000 (14:17 +0100)]
Updating docs to reflect more recent changes to expect_fun_call lint
Michael Wright [Mon, 11 Jun 2018 05:48:10 +0000 (07:48 +0200)]
Merge branch 'master' into duration_subsec_pr_2
Oliver Schneider [Sun, 10 Jun 2018 04:22:07 +0000 (06:22 +0200)]
Publish preparation
Michael Wright [Sat, 9 Jun 2018 09:04:21 +0000 (11:04 +0200)]
duration_subsec: fix declaration; correctly classify
Michael Wright [Sun, 18 Mar 2018 20:27:15 +0000 (22:27 +0200)]
Add duration_subsec lint
Closes #2543
Oliver Schneider [Sat, 9 Jun 2018 04:56:39 +0000 (06:56 +0200)]
Merge pull request #2836 from mati865/upcoming_breakage
Upcoming breakage
Oliver Schneider [Fri, 8 Jun 2018 05:15:02 +0000 (07:15 +0200)]
Merge pull request #2811 from fanzier/checked_unwrap
Implement lint that checks for unidiomatic unwrap() (closes #1770)
Fabian Zaiser [Fri, 8 Jun 2018 03:55:11 +0000 (05:55 +0200)]
Address review comments.
Fabian Zaiser [Sun, 27 May 2018 22:02:38 +0000 (00:02 +0200)]
Implement lint that checks for unidiomatic `unwrap()` (fixes #1770)
This checks for things like
if x.is_some() {
x.unwrap()
}
which should be written using `if let` or `match` instead.
In the process I moved some logic to determine which variables are
mutated in an expression to utils/usage.rs.
Mateusz Mikuła [Thu, 7 Jun 2018 20:03:15 +0000 (22:03 +0200)]
Cleanup of driver code
Mateusz Mikuła [Thu, 7 Jun 2018 17:16:50 +0000 (19:16 +0200)]
Formatting
Philipp Hansch [Thu, 7 Jun 2018 18:00:45 +0000 (20:00 +0200)]
Merge pull request #2835 from FauxFaux/patch-1
Tiny typo in rust-update script
Mateusz Mikuła [Thu, 7 Jun 2018 17:16:41 +0000 (19:16 +0200)]
Prepare for upcoming breakage
Chris West [Thu, 7 Jun 2018 16:47:11 +0000 (17:47 +0100)]
Tiny typo in rust-update script
Oliver Schneider [Thu, 7 Jun 2018 09:52:32 +0000 (11:52 +0200)]
Merge pull request #2833 from phansch/cannot_relate_bound_region_without_ICE_cream
Fix cargo late bound region mismatch ICE
Philipp Hansch [Fri, 18 May 2018 20:56:25 +0000 (22:56 +0200)]
Fix cargo late bound region mismatch ICE
Donald Robertson [Wed, 6 Jun 2018 19:38:13 +0000 (20:38 +0100)]
Combining if statements per lint warnings on build
Donald Robertson [Wed, 6 Jun 2018 16:13:31 +0000 (17:13 +0100)]
Amending use of Some with discarded value to use is_some
Donald Robertson [Wed, 6 Jun 2018 15:53:11 +0000 (16:53 +0100)]
Added check to ensure format macro only being handled, refactored extraction and checks to smaller functions.
Oliver Schneider [Wed, 6 Jun 2018 13:17:47 +0000 (15:17 +0200)]
Merge pull request #2804 from utaal/expr-call-author
Add support for ExprCall in clippy::author
Donald Robertson [Tue, 5 Jun 2018 20:15:08 +0000 (21:15 +0100)]
Extracting arguments to format to pass directly to panic when appropriate
Oliver Schneider [Tue, 5 Jun 2018 15:08:33 +0000 (17:08 +0200)]
Merge pull request #2814 from VKlayd/fn_to_int
WIP: Add lint on cast Fn to all numerical except usize.
Donald Robertson [Mon, 4 Jun 2018 18:19:01 +0000 (19:19 +0100)]
Replacing match block with if block as conditional was boolean
Donald Robertson [Tue, 29 May 2018 08:20:18 +0000 (10:20 +0200)]
Adding handling and tests for custom type with implemented expect method
Donald Robertson [Tue, 29 May 2018 07:46:14 +0000 (09:46 +0200)]
Ensuring correct lint message is output for Option and Result type
Donald Robertson [Tue, 29 May 2018 07:29:48 +0000 (09:29 +0200)]
Removing unnecessary allow
Donald Robertson [Mon, 28 May 2018 19:00:45 +0000 (21:00 +0200)]
Warn if non-trivial work is done inside .expect
- added tests for common usages of format and as_str arguments to expect
- added tests for usages of Option and Result types
- given performance impact of passing non literal expressions to expect, added to perf group
Oliver Schneider [Sun, 3 Jun 2018 21:23:59 +0000 (23:23 +0200)]
Merge pull request #2827 from 0ndorio/lint/cmp_operators_on_partial_cmp
Added lint to avoid negated comparisions on partially ordered types. (fixes #2626)
Bruno Kirschner [Sun, 3 Jun 2018 16:46:11 +0000 (18:46 +0200)]
Cleaned implements_ord helper function in boolean lint file.
Bruno Kirschner [Fri, 1 Jun 2018 13:13:53 +0000 (15:13 +0200)]
Reduced scope of `nonminimal_bool` so that it doesn't evaluate only partially orded types.
Bruno Kirschner [Fri, 1 Jun 2018 12:40:53 +0000 (14:40 +0200)]
Fixed spelling and indentation issues in neg_cmp_op_on_partial_ord related files.
Bruno Kirschner [Fri, 1 Jun 2018 11:40:41 +0000 (13:40 +0200)]
Use declare_clippy_lint instead of declare_lint.
Bruno Kirschner [Fri, 1 Jun 2018 09:58:40 +0000 (11:58 +0200)]
Added lint to avoid negated comparisions on partially ordered types.
Oliver Schneider [Sun, 3 Jun 2018 10:53:45 +0000 (12:53 +0200)]
Merge pull request #2813 from terry90/master
unreadable_literal: Fills hexadecimal values with 0 to allow better grouping
Terry Raimondo [Sun, 3 Jun 2018 10:26:50 +0000 (12:26 +0200)]
Compute digits vec only once
Oliver Schneider [Sun, 3 Jun 2018 06:59:10 +0000 (08:59 +0200)]
Version bump
Victor Korkin [Fri, 1 Jun 2018 16:08:11 +0000 (23:08 +0700)]
Divide FN_TO_NUMERIC lint into two.
FN_TO_NUMERIC_CAST_WITH_TRUNCATION is correctness check
FN_TO_NUMERIC_CAST is only style check
Oliver Schneider [Thu, 31 May 2018 11:33:35 +0000 (13:33 +0200)]
Merge pull request #2816 from mockersf/multiple-impl
adding to restriction a lint that check for multiple inherent implementations
Oliver Schneider [Thu, 31 May 2018 10:02:09 +0000 (12:02 +0200)]
Merge pull request #2819 from zayenz/no-op-ref-in-macro
avoid op-ref in macros
Oliver Schneider [Thu, 31 May 2018 09:53:48 +0000 (11:53 +0200)]
Merge pull request #2825 from Nemo157/test-toml
Get compile-test tests for configuration working
Victor Korkin [Thu, 31 May 2018 02:00:13 +0000 (09:00 +0700)]
Add one more test
Wim Looman [Wed, 30 May 2018 19:26:09 +0000 (21:26 +0200)]
Use compiletest::make_tests to allow it to setup the output folders
Wim Looman [Wed, 30 May 2018 18:29:00 +0000 (20:29 +0200)]
Get compile-test tests for configuration working
Oliver Schneider [Wed, 30 May 2018 13:55:11 +0000 (15:55 +0200)]
Merge pull request #2821 from mati865/rust-2018-migration
Rust 2018 migration
Victor Korkin [Wed, 30 May 2018 09:55:03 +0000 (16:55 +0700)]
Fix 'help' message
Mateusz Mikuła [Wed, 30 May 2018 09:20:34 +0000 (11:20 +0200)]
Update integration test
Mateusz Mikuła [Wed, 30 May 2018 08:18:52 +0000 (10:18 +0200)]
Upgrade to edition 2018
Mateusz Mikuła [Wed, 30 May 2018 08:15:50 +0000 (10:15 +0200)]
Run rustfix
Mateusz Mikuła [Wed, 30 May 2018 08:05:06 +0000 (10:05 +0200)]
Add rust_2018_preview feature and fix rustfmt annotation
Victor Korkin [Wed, 30 May 2018 04:48:46 +0000 (11:48 +0700)]
Fixes for suggestion message, tests and lint explanation.
Victor Korkin [Wed, 30 May 2018 00:55:48 +0000 (07:55 +0700)]
weird thing
Oliver Schneider [Tue, 29 May 2018 19:46:47 +0000 (21:46 +0200)]
Merge pull request #2759 from devonhollowood/transmute-same-ptr-ptr
Don't lint lifetime-only transmutes
François Mockers [Tue, 29 May 2018 08:19:16 +0000 (10:19 +0200)]
move lint to restriction group
François Mockers [Tue, 29 May 2018 01:27:53 +0000 (03:27 +0200)]
only install remark if not on an integration build to avoid ddosing npm
François Mockers [Tue, 29 May 2018 00:17:55 +0000 (02:17 +0200)]
adding to pedantic a lint that check for multiple inherent implementations
Devon Hollowood [Tue, 29 May 2018 05:12:42 +0000 (22:12 -0700)]
Simplify lifetime-differences-only detection
Now instead of reinventing the wheel with differ_only_in_lifetimes(), we
use TyCtxt's erase_regions()
Devon Hollowood [Fri, 25 May 2018 03:02:42 +0000 (20:02 -0700)]
Fix behavior with generic lifetime parameters
Devon Hollowood [Wed, 23 May 2018 00:18:56 +0000 (17:18 -0700)]
Test that we allow non-static lifetime transmutes
Devon Hollowood [Mon, 14 May 2018 17:24:31 +0000 (12:24 -0500)]
Don't lint lifetime-only transmutes
Victor Korkin [Tue, 29 May 2018 15:56:38 +0000 (22:56 +0700)]
Change lint type to unique and add the suggestion.
Oliver Schneider [Tue, 29 May 2018 13:30:32 +0000 (15:30 +0200)]
Merge pull request #2820 from flip1995/unused_def_conf
Remove unused define_conf-macro definitions
flip1995 [Tue, 29 May 2018 12:51:16 +0000 (14:51 +0200)]
Remove unused define_conf-macro definitions
Oliver Schneider [Tue, 29 May 2018 12:45:10 +0000 (14:45 +0200)]
Fix dogfood
Mikael Zayenz Lagerkvist [Tue, 29 May 2018 11:17:37 +0000 (13:17 +0200)]
avoid op-ref in macros
Avoid running op-ref inspection in macros since the macro
may be invoked in many different types of contexts.
Solves #2818 and incidentally avoids #2689.
Oliver Schneider [Tue, 29 May 2018 09:58:58 +0000 (11:58 +0200)]
Version bump
Oliver Schneider [Tue, 29 May 2018 09:51:55 +0000 (11:51 +0200)]
Merge pull request #2817 from mati865/rustup
Update to nightly 2018-05-28
Mateusz Mikuła [Tue, 29 May 2018 08:56:58 +0000 (10:56 +0200)]
Update to nightly 2018-05-28
Victor Korkin [Mon, 28 May 2018 16:49:38 +0000 (23:49 +0700)]
Little fix for test
Victor Korkin [Mon, 28 May 2018 16:31:55 +0000 (23:31 +0700)]
Add lint on cast Fn to numerical.
Andrea Lattuada [Mon, 28 May 2018 12:50:41 +0000 (14:50 +0200)]
author tests: update for_loop.stdout file
Andrea Lattuada [Sun, 27 May 2018 14:04:28 +0000 (16:04 +0200)]
Test for ExprCall in clippy::author
Andrea Lattuada [Sun, 27 May 2018 13:45:01 +0000 (15:45 +0200)]
Add support for ExprCall in clippy::author
Terry Raimondo [Mon, 28 May 2018 12:43:44 +0000 (14:43 +0200)]
Update other tests
Terry Raimondo [Mon, 28 May 2018 12:12:20 +0000 (14:12 +0200)]
Add tests
Fix tests
Terry Raimondo [Mon, 28 May 2018 11:55:27 +0000 (13:55 +0200)]
unreadable_literal: Fills hexadecimal values with 0 to allow grouping (c.f #2300)
Oliver Schneider [Mon, 28 May 2018 11:50:31 +0000 (13:50 +0200)]
Merge pull request #2808 from Aaronepower/master
Added lint for unnecessary references.
Aaron Power [Mon, 28 May 2018 07:29:02 +0000 (09:29 +0200)]
Added lint for unnecessary references
Oliver Schneider [Mon, 28 May 2018 10:59:25 +0000 (12:59 +0200)]
Merge pull request #2810 from Aaronepower/stable_feature_flags
Removed stable feature flags
Oliver Schneider [Mon, 28 May 2018 10:55:44 +0000 (12:55 +0200)]
Merge pull request #2806 from mockersf/loop-mut-cond
better parsing of condition in while loop for mutability
Oliver Schneider [Mon, 28 May 2018 10:51:44 +0000 (12:51 +0200)]
Merge pull request #2805 from reiner-dolp/update_lints
running update lints script
Oliver Schneider [Mon, 28 May 2018 10:44:24 +0000 (12:44 +0200)]
Merge pull request #2809 from Aaronepower/if_chain_clean
Refactored nested if lets to if_chain! macro
Aaron Power [Mon, 28 May 2018 08:03:27 +0000 (10:03 +0200)]
Removed stable feature flags
Aaron Power [Mon, 28 May 2018 07:50:25 +0000 (09:50 +0200)]
Refactored nested if lets to if_chain! macro
François Mockers [Sun, 27 May 2018 21:59:07 +0000 (23:59 +0200)]
better parsing of condition in while loop for mutability
allow condition to be a block: by calling visit_expr of the visitor directly on the condition instead of walk_expr on the whole expression, we bypass the match to ExprWhile that calls visit_expr on the condition and visit_block on the body. This allow to re-enable visit_block in the visitor, as it won't be called on the while body
allow condition to use static variables: maintain a list of static variables used, and if they are mutable
Reiner Dolp [Sun, 27 May 2018 14:16:41 +0000 (16:16 +0200)]
running update lints script
Oliver Schneider [Sat, 26 May 2018 08:23:34 +0000 (10:23 +0200)]
Rustup
Philipp Hansch [Fri, 25 May 2018 08:03:32 +0000 (10:03 +0200)]
Merge pull request #2800 from phansch/no_deploy_in_integration_tests
Don't run deploy script in integration tests