]> git.lizzy.rs Git - rust.git/log
rust.git
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 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 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 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 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

6 years agoAdd some output to make log reading easier
Philipp Hansch [Fri, 25 May 2018 06:35:04 +0000 (08:35 +0200)]
Add some output to make log reading easier

6 years agoDon't run deploy script in integration tests
Philipp Hansch [Fri, 25 May 2018 06:11:15 +0000 (08:11 +0200)]
Don't run deploy script in integration tests

The deploy.sh was causing random integration tests to fail, possibly due to
multiple jobs trying to push to the same repo/branch at the same time?

The error message is:

    +git push git@github.com:rust-lang-nursery/rust-clippy.git gh-pages
    Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts.
    To github.com:rust-lang-nursery/rust-clippy.git
     ! [rejected]          gh-pages -> gh-pages (fetch first)
    error: failed to push some refs to 'git@github.com:rust-lang-nursery/rust-clippy.git'
    hint: Updates were rejected because the re

The travis log is always truncated in similar ways.

Some examples:

* https://travis-ci.org/rust-lang-nursery/rust-clippy/jobs/383325083#L1076-L1082
* https://travis-ci.org/rust-lang-nursery/rust-clippy/jobs/382711561#L2768-L2773

6 years agoMerge pull request #2797 from mipli/2250-unimplemented-macro
Oliver Schneider [Thu, 24 May 2018 18:04:52 +0000 (20:04 +0200)]
Merge pull request #2797 from mipli/2250-unimplemented-macro

Lint for unimplemented!()

6 years agoFix note on macro outside current crate. Changed group to restricted
Michael A. Plikk [Thu, 24 May 2018 17:26:04 +0000 (19:26 +0200)]
Fix note on macro outside current crate. Changed group to restricted

6 years agoAllow unimplemented in other tests
Michael A. Plikk [Thu, 24 May 2018 14:30:26 +0000 (16:30 +0200)]
Allow unimplemented in other tests

6 years agoRename panic files to panic_unimplemented
Michael A. Plikk [Thu, 24 May 2018 06:59:54 +0000 (08:59 +0200)]
Rename panic files to panic_unimplemented

6 years agoCreate lint for unimplemented!()
Michael A. Plikk [Wed, 23 May 2018 14:43:05 +0000 (16:43 +0200)]
Create lint for unimplemented!()

6 years agoVersion bump
Oliver Schneider [Wed, 23 May 2018 14:38:19 +0000 (16:38 +0200)]
Version bump

6 years agoMerge pull request #2794 from mati865/rustup
Oliver Schneider [Wed, 23 May 2018 14:33:22 +0000 (16:33 +0200)]
Merge pull request #2794 from mati865/rustup

 Update to nightly 2018-05-22

6 years agoUpdate to nightly 2018-05-22
Mateusz Mikuła [Tue, 22 May 2018 13:45:14 +0000 (15:45 +0200)]
Update to nightly 2018-05-22

Fixes #2788

6 years agoFormat code
Mateusz Mikuła [Tue, 22 May 2018 08:21:42 +0000 (10:21 +0200)]
Format code

6 years agoMerge pull request #2787 from phansch/fewer_allow_failures
Philipp Hansch [Mon, 21 May 2018 17:59:42 +0000 (19:59 +0200)]
Merge pull request #2787 from phansch/fewer_allow_failures

Remove most allow_failures

6 years agoRemove most allow_failures
Philipp Hansch [Mon, 21 May 2018 16:59:42 +0000 (18:59 +0200)]
Remove most allow_failures

The removed ones work fine now, only cargo and rls are
failing currently.

6 years agoMerge pull request #2786 from phansch/fix_param_env_compile_fail
Philipp Hansch [Mon, 21 May 2018 16:35:17 +0000 (18:35 +0200)]
Merge pull request #2786 from phansch/fix_param_env_compile_fail

Fix chrono compile-fail due to empty param_env

6 years agoFix chrono crash due to empty param_env
Philipp Hansch [Mon, 21 May 2018 15:45:48 +0000 (17:45 +0200)]
Fix chrono crash due to empty param_env

6 years agoUpdate CHANGELOG.md
Oliver Schneider [Sun, 20 May 2018 12:09:39 +0000 (14:09 +0200)]
Update CHANGELOG.md

6 years agoVersion bump
Oliver Schneider [Sun, 20 May 2018 08:02:29 +0000 (10:02 +0200)]
Version bump

6 years agoMerge pull request #2777 from rust-lang-nursery/scoped_attrs
Oliver Schneider [Sun, 20 May 2018 07:56:55 +0000 (09:56 +0200)]
Merge pull request #2777 from rust-lang-nursery/scoped_attrs

Use the new scoped tool attributes

6 years agoMerge pull request #2779 from rust-lang-nursery/rerunnable_clippy
Oliver Schneider [Sun, 20 May 2018 07:56:35 +0000 (09:56 +0200)]
Merge pull request #2779 from rust-lang-nursery/rerunnable_clippy

Stop compilation after linting

6 years agoMerge pull request #2781 from imp/2780
Oliver Schneider [Sun, 20 May 2018 07:42:54 +0000 (09:42 +0200)]
Merge pull request #2781 from imp/2780

rustup to nightly 2018-05-19

6 years agorustup to nightly 2018-05-19
Cyril Plisko [Sun, 20 May 2018 06:20:01 +0000 (09:20 +0300)]
rustup to nightly 2018-05-19

clippy_lints does not compile: non-primitive cast: `rustc_target::abi::Size` as `usize`

Fixes #2780

6 years agoStop compilation after linting
Oliver Schneider [Sat, 19 May 2018 16:49:57 +0000 (18:49 +0200)]
Stop compilation after linting

6 years agoMerge pull request #2778 from phansch/add_rls_to_integration_tests
Philipp Hansch [Sat, 19 May 2018 15:19:18 +0000 (17:19 +0200)]
Merge pull request #2778 from phansch/add_rls_to_integration_tests

Add rls to integration tests

6 years agoAdd rls to integration tests
Philipp Hansch [Sat, 19 May 2018 15:02:08 +0000 (17:02 +0200)]
Add rls to integration tests

6 years agoUse the new scoped tool attributes
Oliver Schneider [Sat, 19 May 2018 12:04:57 +0000 (14:04 +0200)]
Use the new scoped tool attributes

6 years agoVersion bump
Oliver Schneider [Sat, 19 May 2018 11:01:26 +0000 (13:01 +0200)]
Version bump

6 years agoMerge pull request #2775 from utam0k/rename-trans-to-codegen
Oliver Schneider [Sat, 19 May 2018 07:57:36 +0000 (09:57 +0200)]
Merge pull request #2775 from utam0k/rename-trans-to-codegen

Rename trans to codegen

6 years agoRename trans to codegen
utam0k [Sat, 19 May 2018 05:29:20 +0000 (14:29 +0900)]
Rename trans to codegen

6 years agoMerge pull request #2773 from phansch/add_hyper_to_integration_tests
Philipp Hansch [Fri, 18 May 2018 17:07:23 +0000 (19:07 +0200)]
Merge pull request #2773 from phansch/add_hyper_to_integration_tests

Add hyper to integration tests

6 years agoAdd hyper to integration tests
Philipp Hansch [Fri, 18 May 2018 16:43:21 +0000 (18:43 +0200)]
Add hyper to integration tests

Because it was failing before: https://github.com/rust-lang/rust/issues/49643

6 years agoMerge pull request #2763 from phansch/tasty_ice_cream
Oliver Schneider [Fri, 18 May 2018 07:12:58 +0000 (09:12 +0200)]
Merge pull request #2763 from phansch/tasty_ice_cream

Fix SpanlessHash and SpanlessEq tables

6 years agoMerge pull request #2772 from phansch/add_more_integration_tests
Philipp Hansch [Thu, 17 May 2018 21:48:55 +0000 (23:48 +0200)]
Merge pull request #2772 from phansch/add_more_integration_tests

Add more integration tests

6 years agoUse full backtrace
Philipp Hansch [Thu, 17 May 2018 20:06:25 +0000 (22:06 +0200)]
Use full backtrace

6 years agoMake build output cleaner
Philipp Hansch [Thu, 17 May 2018 19:40:23 +0000 (21:40 +0200)]
Make build output cleaner