]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoReplace `Constant::partial_cmp`
Michael Wright [Tue, 19 Jun 2018 05:37:09 +0000 (07:37 +0200)]
Replace `Constant::partial_cmp`

6 years agoFix #2741
Michael Wright [Sat, 16 Jun 2018 16:33:11 +0000 (18:33 +0200)]
Fix #2741

6 years agoFix typo in lint dump script
Oliver Schneider [Fri, 15 Jun 2018 15:45:41 +0000 (17:45 +0200)]
Fix typo in lint dump script

6 years agoMerge pull request #2803 from Nemo157/trivially_copy_pass_by_ref
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

6 years agoDogfood new trivially_copy_pass_by_ref lint
Wim Looman [Thu, 31 May 2018 18:15:48 +0000 (20:15 +0200)]
Dogfood new trivially_copy_pass_by_ref lint

6 years agoAllow configuring the trivial copy size limit
Wim Looman [Sun, 27 May 2018 14:04:45 +0000 (16:04 +0200)]
Allow configuring the trivial copy size limit

6 years agoNew Lint: Pass small trivially copyable objects by value
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

6 years agoMore doc fixes
Manish Goregaokar [Fri, 15 Jun 2018 07:20:46 +0000 (00:20 -0700)]
More doc fixes

6 years agoDoc fix syntax
Manish Goregaokar [Fri, 15 Jun 2018 07:19:19 +0000 (00:19 -0700)]
Doc fix syntax

6 years agoLint printing was broken
Oliver Schneider [Thu, 14 Jun 2018 20:50:07 +0000 (22:50 +0200)]
Lint printing was broken

6 years agoMerge pull request #2839 from mikerite/duration_subsec_pr_2
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

6 years agoduration_subsec: Add check for `subsec_micros`
Michael Wright [Tue, 12 Jun 2018 06:25:10 +0000 (08:25 +0200)]
duration_subsec: Add check for `subsec_micros`

6 years agoMerge pull request #2815 from darArch/master
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

6 years agoUpdating docs to reflect more recent changes to expect_fun_call lint
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

6 years agoMerge branch 'master' into duration_subsec_pr_2
Michael Wright [Mon, 11 Jun 2018 05:48:10 +0000 (07:48 +0200)]
Merge branch 'master' into duration_subsec_pr_2

6 years agoPublish preparation
Oliver Schneider [Sun, 10 Jun 2018 04:22:07 +0000 (06:22 +0200)]
Publish preparation

6 years agoduration_subsec: fix declaration; correctly classify
Michael Wright [Sat, 9 Jun 2018 09:04:21 +0000 (11:04 +0200)]
duration_subsec: fix declaration; correctly classify

6 years agoAdd duration_subsec lint
Michael Wright [Sun, 18 Mar 2018 20:27:15 +0000 (22:27 +0200)]
Add duration_subsec lint

Closes #2543

6 years agoMerge pull request #2836 from mati865/upcoming_breakage
Oliver Schneider [Sat, 9 Jun 2018 04:56:39 +0000 (06:56 +0200)]
Merge pull request #2836 from mati865/upcoming_breakage

Upcoming breakage

6 years agoMerge pull request #2811 from fanzier/checked_unwrap
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)

6 years agoAddress review comments.
Fabian Zaiser [Fri, 8 Jun 2018 03:55:11 +0000 (05:55 +0200)]
Address review comments.

6 years agoImplement lint that checks for unidiomatic `unwrap()` (fixes #1770)
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.

6 years agoCleanup of driver code
Mateusz Mikuła [Thu, 7 Jun 2018 20:03:15 +0000 (22:03 +0200)]
Cleanup of driver code

6 years agoFormatting
Mateusz Mikuła [Thu, 7 Jun 2018 17:16:50 +0000 (19:16 +0200)]
Formatting

6 years agoMerge pull request #2835 from FauxFaux/patch-1
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

6 years agoPrepare for upcoming breakage
Mateusz Mikuła [Thu, 7 Jun 2018 17:16:41 +0000 (19:16 +0200)]
Prepare for upcoming breakage

6 years agoTiny typo in rust-update script
Chris West [Thu, 7 Jun 2018 16:47:11 +0000 (17:47 +0100)]
Tiny typo in rust-update script

6 years agoMerge pull request #2833 from phansch/cannot_relate_bound_region_without_ICE_cream
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

6 years agoFix 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

6 years agoCombining if statements per lint warnings on build
Donald Robertson [Wed, 6 Jun 2018 19:38:13 +0000 (20:38 +0100)]
Combining if statements per lint warnings on build

6 years agoAmending use of Some with discarded value to use is_some
Donald Robertson [Wed, 6 Jun 2018 16:13:31 +0000 (17:13 +0100)]
Amending use of Some with discarded value to use is_some

6 years agoAdded check to ensure format macro only being handled, refactored extraction and...
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.

6 years agoMerge pull request #2804 from utaal/expr-call-author
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

6 years agoExtracting arguments to format to pass directly to panic when appropriate
Donald Robertson [Tue, 5 Jun 2018 20:15:08 +0000 (21:15 +0100)]
Extracting arguments to format to pass directly to panic when appropriate

6 years agoMerge pull request #2814 from VKlayd/fn_to_int
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.

6 years agoReplacing match block with if block as conditional was boolean
Donald Robertson [Mon, 4 Jun 2018 18:19:01 +0000 (19:19 +0100)]
Replacing match block with if block as conditional was boolean

6 years agoAdding handling and tests for custom type with implemented expect method
Donald Robertson [Tue, 29 May 2018 08:20:18 +0000 (10:20 +0200)]
Adding handling and tests for custom type with implemented expect method

6 years agoEnsuring correct lint message is output for Option and Result type
Donald Robertson [Tue, 29 May 2018 07:46:14 +0000 (09:46 +0200)]
Ensuring correct lint message is output for Option and Result type

6 years agoRemoving unnecessary allow
Donald Robertson [Tue, 29 May 2018 07:29:48 +0000 (09:29 +0200)]
Removing unnecessary allow

6 years agoWarn if non-trivial work is done inside .expect
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

6 years agoMerge pull request #2827 from 0ndorio/lint/cmp_operators_on_partial_cmp
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)

6 years agoCleaned implements_ord helper function in boolean lint file.
Bruno Kirschner [Sun, 3 Jun 2018 16:46:11 +0000 (18:46 +0200)]
Cleaned implements_ord helper function in boolean lint file.

6 years agoReduced scope of `nonminimal_bool` so that it doesn't evaluate only partially orded...
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.

6 years agoFixed spelling and indentation issues in neg_cmp_op_on_partial_ord related files.
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.

6 years agoUse declare_clippy_lint instead of declare_lint.
Bruno Kirschner [Fri, 1 Jun 2018 11:40:41 +0000 (13:40 +0200)]
Use declare_clippy_lint instead of declare_lint.

6 years agoAdded lint to avoid negated comparisions on partially ordered types.
Bruno Kirschner [Fri, 1 Jun 2018 09:58:40 +0000 (11:58 +0200)]
Added lint to avoid negated comparisions on partially ordered types.

6 years agoMerge pull request #2813 from terry90/master
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

6 years agoCompute digits vec only once
Terry Raimondo [Sun, 3 Jun 2018 10:26:50 +0000 (12:26 +0200)]
Compute digits vec only once

6 years agoVersion bump
Oliver Schneider [Sun, 3 Jun 2018 06:59:10 +0000 (08:59 +0200)]
Version bump

6 years agoDivide FN_TO_NUMERIC lint into two.
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

6 years agoMerge pull request #2816 from mockersf/multiple-impl
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

6 years agoMerge pull request #2819 from zayenz/no-op-ref-in-macro
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

6 years agoMerge pull request #2825 from Nemo157/test-toml
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

6 years agoAdd one more test
Victor Korkin [Thu, 31 May 2018 02:00:13 +0000 (09:00 +0700)]
Add one more test

6 years agoUse compiletest::make_tests to allow it to setup the output folders
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

6 years agoGet compile-test tests for configuration working
Wim Looman [Wed, 30 May 2018 18:29:00 +0000 (20:29 +0200)]
Get compile-test tests for configuration working

6 years agoMerge pull request #2821 from mati865/rust-2018-migration
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

6 years agoFix 'help' message
Victor Korkin [Wed, 30 May 2018 09:55:03 +0000 (16:55 +0700)]
Fix 'help' message

6 years agoUpdate integration test
Mateusz Mikuła [Wed, 30 May 2018 09:20:34 +0000 (11:20 +0200)]
Update integration test

6 years agoUpgrade to edition 2018
Mateusz Mikuła [Wed, 30 May 2018 08:18:52 +0000 (10:18 +0200)]
Upgrade to edition 2018

6 years agoRun rustfix
Mateusz Mikuła [Wed, 30 May 2018 08:15:50 +0000 (10:15 +0200)]
Run rustfix

6 years agoAdd rust_2018_preview feature and fix rustfmt annotation
Mateusz Mikuła [Wed, 30 May 2018 08:05:06 +0000 (10:05 +0200)]
Add rust_2018_preview feature and fix rustfmt annotation

6 years agoFixes for suggestion message, tests and lint explanation.
Victor Korkin [Wed, 30 May 2018 04:48:46 +0000 (11:48 +0700)]
Fixes for suggestion message, tests and lint explanation.

6 years agoweird thing
Victor Korkin [Wed, 30 May 2018 00:55:48 +0000 (07:55 +0700)]
weird thing

6 years agoMerge pull request #2759 from devonhollowood/transmute-same-ptr-ptr
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

6 years agomove lint to restriction group
François Mockers [Tue, 29 May 2018 08:19:16 +0000 (10:19 +0200)]
move lint to restriction group

6 years agoonly install remark if not on an integration build to avoid ddosing npm
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

6 years agoadding to pedantic a lint that check for multiple inherent implementations
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

6 years agoSimplify lifetime-differences-only detection
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()

6 years agoFix behavior with generic lifetime parameters
Devon Hollowood [Fri, 25 May 2018 03:02:42 +0000 (20:02 -0700)]
Fix behavior with generic lifetime parameters

6 years agoTest that we allow non-static lifetime transmutes
Devon Hollowood [Wed, 23 May 2018 00:18:56 +0000 (17:18 -0700)]
Test that we allow non-static lifetime transmutes

6 years agoDon't lint lifetime-only transmutes
Devon Hollowood [Mon, 14 May 2018 17:24:31 +0000 (12:24 -0500)]
Don't lint lifetime-only transmutes

6 years agoChange lint type to unique and add the suggestion.
Victor Korkin [Tue, 29 May 2018 15:56:38 +0000 (22:56 +0700)]
Change lint type to unique and add the suggestion.

6 years agoMerge pull request #2820 from flip1995/unused_def_conf
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

6 years agoRemove unused define_conf-macro definitions
flip1995 [Tue, 29 May 2018 12:51:16 +0000 (14:51 +0200)]
Remove unused define_conf-macro definitions

6 years agoFix dogfood
Oliver Schneider [Tue, 29 May 2018 12:45:10 +0000 (14:45 +0200)]
Fix dogfood

6 years agoavoid op-ref in macros
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.

6 years agoVersion bump
Oliver Schneider [Tue, 29 May 2018 09:58:58 +0000 (11:58 +0200)]
Version bump

6 years agoMerge pull request #2817 from mati865/rustup
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

6 years agoUpdate 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

6 years agoLittle fix for test
Victor Korkin [Mon, 28 May 2018 16:49:38 +0000 (23:49 +0700)]
Little fix for test

6 years agoAdd lint on cast Fn to numerical.
Victor Korkin [Mon, 28 May 2018 16:31:55 +0000 (23:31 +0700)]
Add lint on cast Fn to numerical.

6 years agoauthor tests: update for_loop.stdout file
Andrea Lattuada [Mon, 28 May 2018 12:50:41 +0000 (14:50 +0200)]
author tests: update for_loop.stdout file

6 years agoTest for ExprCall in clippy::author
Andrea Lattuada [Sun, 27 May 2018 14:04:28 +0000 (16:04 +0200)]
Test for ExprCall in clippy::author

6 years agoAdd support 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

6 years agoUpdate other tests
Terry Raimondo [Mon, 28 May 2018 12:43:44 +0000 (14:43 +0200)]
Update other tests

6 years agoAdd tests
Terry Raimondo [Mon, 28 May 2018 12:12:20 +0000 (14:12 +0200)]
Add tests

Fix tests

6 years agounreadable_literal: Fills hexadecimal values with 0 to allow grouping (c.f #2300)
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)

6 years agoMerge pull request #2808 from Aaronepower/master
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.

6 years agoAdded lint for unnecessary references
Aaron Power [Mon, 28 May 2018 07:29:02 +0000 (09:29 +0200)]
Added lint for unnecessary references

6 years agoMerge pull request #2810 from Aaronepower/stable_feature_flags
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

6 years agoMerge pull request #2806 from mockersf/loop-mut-cond
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

6 years agoMerge pull request #2805 from reiner-dolp/update_lints
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

6 years agoMerge pull request #2809 from Aaronepower/if_chain_clean
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

6 years agoRemoved stable feature flags
Aaron Power [Mon, 28 May 2018 08:03:27 +0000 (10:03 +0200)]
Removed stable feature flags

6 years agoRefactored nested if lets to if_chain! macro
Aaron Power [Mon, 28 May 2018 07:50:25 +0000 (09:50 +0200)]
Refactored nested if lets to if_chain! macro

6 years agobetter parsing of condition in while loop for mutability
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

6 years agorunning update lints script
Reiner Dolp [Sun, 27 May 2018 14:16:41 +0000 (16:16 +0200)]
running update lints script

6 years agoRustup
Oliver Schneider [Sat, 26 May 2018 08:23:34 +0000 (10:23 +0200)]
Rustup

6 years agoMerge pull request #2800 from phansch/no_deploy_in_integration_tests
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