]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoMerge branch 'master' into issue-2879
Daniel Wagner-Hall [Sun, 2 Sep 2018 23:01:57 +0000 (00:01 +0100)]
Merge branch 'master' into issue-2879

5 years agoSimplify
Daniel Wagner-Hall [Sun, 2 Sep 2018 22:42:07 +0000 (23:42 +0100)]
Simplify

5 years agoUse types rather than strings
Daniel Wagner-Hall [Sun, 2 Sep 2018 22:37:28 +0000 (23:37 +0100)]
Use types rather than strings

5 years agoMerge pull request #3113 from mikerite/fix-3112
Manish Goregaokar [Sun, 2 Sep 2018 07:59:06 +0000 (13:29 +0530)]
Merge pull request #3113 from mikerite/fix-3112

Fix #3112

5 years agoFix #3112
Michael Wright [Sun, 2 Sep 2018 07:38:25 +0000 (09:38 +0200)]
Fix #3112

5 years agoMerge pull request #2977 from flip1995/tool_lints
Manish Goregaokar [Sat, 1 Sep 2018 05:52:23 +0000 (11:22 +0530)]
Merge pull request #2977 from flip1995/tool_lints

Implement tool_lints

5 years agoFix ptr offset tests
Manish Goregaokar [Fri, 31 Aug 2018 07:38:27 +0000 (00:38 -0700)]
Fix ptr offset tests

5 years agodeclare_lint -> declare_tool_lint
Manish Goregaokar [Fri, 31 Aug 2018 07:34:48 +0000 (00:34 -0700)]
declare_lint -> declare_tool_lint

5 years agoMerge pull request #3081 from mikerite/fix-3078
Oliver Schneider [Fri, 31 Aug 2018 07:05:39 +0000 (09:05 +0200)]
Merge pull request #3081 from mikerite/fix-3078

Fix #3078

5 years agoMerge branch 'master' into fix-3078
Michael Wright [Fri, 31 Aug 2018 04:17:11 +0000 (06:17 +0200)]
Merge branch 'master' into fix-3078

5 years agoRevert "fix-3078: verify test case"
Michael Wright [Fri, 31 Aug 2018 04:10:30 +0000 (06:10 +0200)]
Revert "fix-3078: verify test case"

This reverts commit 6256ad05bac1f708298f827fdfa7b54042961294.

5 years agoMerge pull request #2962 from phansch/further_automate_pre_publish
Oliver Schneider [Thu, 30 Aug 2018 08:16:36 +0000 (10:16 +0200)]
Merge pull request #2962 from phansch/further_automate_pre_publish

Further automate pre_publish.sh

5 years agoRemove git diffing part
Philipp Hansch [Thu, 30 Aug 2018 05:33:53 +0000 (07:33 +0200)]
Remove git diffing part

Because we no bump versions

5 years agoMerge pull request #3076 from mbrubeck/patch-1
Philipp Hansch [Wed, 29 Aug 2018 19:09:38 +0000 (20:09 +0100)]
Merge pull request #3076 from mbrubeck/patch-1

Remove incorrect note from string_add_assign docs

5 years agoMerge pull request #3105 from frewsxcv/frewsxcv-private
Manish Goregaokar [Wed, 29 Aug 2018 18:24:00 +0000 (11:24 -0700)]
Merge pull request #3105 from frewsxcv/frewsxcv-private

Make clippy_lints::{utils,consts} modules private, remove unused items.

5 years agoImplement backwards compatibility changes introduced by rust-lang/rust#53762
flip1995 [Tue, 28 Aug 2018 12:16:31 +0000 (14:16 +0200)]
Implement backwards compatibility changes introduced by rust-lang/rust#53762

5 years agoFix some rebase fallout
flip1995 [Tue, 28 Aug 2018 09:27:17 +0000 (11:27 +0200)]
Fix some rebase fallout

5 years agoAdapt codebase to the tool_lints
flip1995 [Wed, 1 Aug 2018 20:48:41 +0000 (22:48 +0200)]
Adapt codebase to the tool_lints

5 years agoAdapt ui-toml-tests to the tool_lints
flip1995 [Wed, 1 Aug 2018 20:38:04 +0000 (22:38 +0200)]
Adapt ui-toml-tests to the tool_lints

5 years agoAdapt run-pass tests to the tool_lints
flip1995 [Mon, 30 Jul 2018 09:33:44 +0000 (11:33 +0200)]
Adapt run-pass tests to the tool_lints

5 years agoAdapt the *.stderr files of the ui-tests to the tool_lints
flip1995 [Wed, 1 Aug 2018 14:30:44 +0000 (16:30 +0200)]
Adapt the *.stderr files of the ui-tests to the tool_lints

5 years agoAdapt ui-tests to the tool_lints
flip1995 [Sat, 28 Jul 2018 15:34:52 +0000 (17:34 +0200)]
Adapt ui-tests to the tool_lints

5 years agoAdapt scripts to the tool_lints
flip1995 [Sat, 28 Jul 2018 15:35:41 +0000 (17:35 +0200)]
Adapt scripts to the tool_lints

5 years agoAdapt documentation to the tool_lints
flip1995 [Sat, 28 Jul 2018 15:35:24 +0000 (17:35 +0200)]
Adapt documentation to the tool_lints

5 years agoSwitch to declare_tool_lint macro
flip1995 [Sun, 29 Jul 2018 09:04:40 +0000 (11:04 +0200)]
Switch to declare_tool_lint macro

5 years agoSwitch to tool_lints
flip1995 [Sat, 28 Jul 2018 15:34:24 +0000 (17:34 +0200)]
Switch to tool_lints

5 years agoMerge pull request #3104 from frewsxcv/frewsxcv-ptr-offset-with-cast
Oliver Schneider [Wed, 29 Aug 2018 14:32:11 +0000 (16:32 +0200)]
Merge pull request #3104 from frewsxcv/frewsxcv-ptr-offset-with-cast

New lint: Suggest `ptr.add([usize])` over `ptr.offset([usize] as isize)`.

5 years agodont deref
Corey Farwell [Wed, 29 Aug 2018 13:59:38 +0000 (08:59 -0500)]
dont deref

5 years agoclippy suggestion
Corey Farwell [Wed, 29 Aug 2018 13:27:32 +0000 (08:27 -0500)]
clippy suggestion

5 years agoderive copy/clone
Corey Farwell [Wed, 29 Aug 2018 13:01:05 +0000 (08:01 -0500)]
derive copy/clone

5 years agobring back sugg::range
Corey Farwell [Wed, 29 Aug 2018 12:46:03 +0000 (07:46 -0500)]
bring back sugg::range

5 years agoeof newline
Corey Farwell [Wed, 29 Aug 2018 12:43:40 +0000 (07:43 -0500)]
eof newline

5 years agoutilize carrier
Corey Farwell [Wed, 29 Aug 2018 12:42:43 +0000 (07:42 -0500)]
utilize carrier

5 years agosuggest wrapping_offset as well
Corey Farwell [Wed, 29 Aug 2018 12:40:00 +0000 (07:40 -0500)]
suggest wrapping_offset as well

5 years agoif no suggestion, dont add suggestion
Corey Farwell [Wed, 29 Aug 2018 12:12:22 +0000 (07:12 -0500)]
if no suggestion, dont add suggestion

5 years agoutilize .is_unsafe_ptr
Corey Farwell [Wed, 29 Aug 2018 12:08:59 +0000 (07:08 -0500)]
utilize .is_unsafe_ptr

5 years agoutilize cx.tcx.types.usize
Corey Farwell [Wed, 29 Aug 2018 12:07:23 +0000 (07:07 -0500)]
utilize cx.tcx.types.usize

5 years agotweak comment
Corey Farwell [Wed, 29 Aug 2018 12:03:50 +0000 (07:03 -0500)]
tweak comment

5 years agoswitch lint from 'style' to 'complexity'
Corey Farwell [Wed, 29 Aug 2018 12:02:26 +0000 (07:02 -0500)]
switch lint from 'style' to 'complexity'

5 years agoNew lint: Suggest `ptr.add([usize])` over `ptr.offset([usize] as isize)`.
Corey Farwell [Mon, 27 Aug 2018 13:49:54 +0000 (09:49 -0400)]
New lint: Suggest `ptr.add([usize])` over `ptr.offset([usize] as isize)`.

First part of #3047.

5 years agoMake clippy_lints::{utils,consts} modules private, remove unused items.
Corey Farwell [Wed, 29 Aug 2018 02:32:20 +0000 (21:32 -0500)]
Make clippy_lints::{utils,consts} modules private, remove unused items.

5 years agoUpdate imports and rustup
Oliver Schneider [Tue, 28 Aug 2018 11:13:42 +0000 (13:13 +0200)]
Update imports and rustup

5 years agoMerge pull request #3101 from pickfire/patch-1
Philipp Hansch [Tue, 28 Aug 2018 05:42:36 +0000 (06:42 +0100)]
Merge pull request #3101 from pickfire/patch-1

Fix typo for panel cursor

5 years agoFix typo for panel cursor
Ivan Tham [Tue, 28 Aug 2018 02:24:21 +0000 (10:24 +0800)]
Fix typo for panel cursor

5 years agodefault_trait_access skips <F as Default>::default()
Daniel Wagner-Hall [Mon, 27 Aug 2018 22:22:07 +0000 (23:22 +0100)]
default_trait_access skips <F as Default>::default()

This includes the type name, so is clear, and may be necessary.

There doesn't seem to be an obviously cleaner way to pull out the
literal text of the named type here.

Fixes #2879

5 years agoMerge pull request #3090 from matthiaskrgr/new_without_default_highlight
llogiq [Mon, 27 Aug 2018 19:00:53 +0000 (21:00 +0200)]
Merge pull request #3090 from matthiaskrgr/new_without_default_highlight

docs: make example in new_without_default lint syntax highlighted

5 years agodocs: make example in new_without_default lint syntax highlighted
Matthias Krüger [Mon, 27 Aug 2018 15:35:30 +0000 (17:35 +0200)]
docs: make example in new_without_default lint syntax highlighted

5 years agoMerge pull request #3018 from rust-lang-nursery/beta
Oliver Schneider [Mon, 27 Aug 2018 09:08:58 +0000 (11:08 +0200)]
Merge pull request #3018 from rust-lang-nursery/beta

We are riding the trains to stable, there's no point in trying to check the rustc version

5 years agoMerge pull request #3087 from rust-lang-nursery/run
Oliver Schneider [Sun, 26 Aug 2018 14:29:11 +0000 (16:29 +0200)]
Merge pull request #3087 from rust-lang-nursery/run

Use the compilers exit code computation instead of rolling our own

5 years agoUse the compilers exit code computation instead of rolling our own
Oliver Schneider [Sun, 26 Aug 2018 13:49:08 +0000 (15:49 +0200)]
Use the compilers exit code computation instead of rolling our own

5 years agoMerge pull request #3082 from mikerite/move-range-lints
Philipp Krones [Sun, 26 Aug 2018 13:08:21 +0000 (15:08 +0200)]
Merge pull request #3082 from mikerite/move-range-lints

Move some range lints to complexity

5 years agoMerge pull request #3084 from mikerite/fix-3083
Oliver Schneider [Sun, 26 Aug 2018 10:20:35 +0000 (12:20 +0200)]
Merge pull request #3084 from mikerite/fix-3083

Remove `iterator_find_map` feature attribute

5 years agoRemove `iterator_find_map` feature attribute
Michael Wright [Sun, 26 Aug 2018 09:11:47 +0000 (11:11 +0200)]
Remove `iterator_find_map` feature attribute

Closes #3083

5 years agoMove some range lints to complexity
Michael Wright [Sun, 26 Aug 2018 08:57:04 +0000 (10:57 +0200)]
Move some range lints to complexity

Recategorize `range_plus_one` and `range_minus_one` to `complexity`.
This moves `range_plus_one` out of the nursery as the inclusive range
syntax is now stable. Both are moved to `complexity` as it is more
consistent with other lints such as `int_plus_one`.

5 years agofix-3078: verify test case
Michael Wright [Sat, 25 Aug 2018 20:35:06 +0000 (22:35 +0200)]
fix-3078: verify test case

Check the crash test case by commenting out the fix

5 years agoFix #3078
Michael Wright [Sat, 25 Aug 2018 12:49:56 +0000 (14:49 +0200)]
Fix #3078

5 years agoMerge pull request #3079 from matthiaskrgr/update_cargo_metadata
Philipp Hansch [Fri, 24 Aug 2018 18:09:50 +0000 (20:09 +0200)]
Merge pull request #3079 from matthiaskrgr/update_cargo_metadata

deps: update cargo_metadata from 0.5 to 0.6.

5 years agoMerge pull request #3080 from matthiaskrgr/manual_swap_example
Philipp Krones [Fri, 24 Aug 2018 17:47:17 +0000 (19:47 +0200)]
Merge pull request #3080 from matthiaskrgr/manual_swap_example

add how-to example for std::mem::transmute() usage instead of manual swap

5 years agoadd how-to example for std::mem::transmute() usage instead of manual swap
Matthias Krüger [Fri, 24 Aug 2018 16:41:49 +0000 (18:41 +0200)]
add how-to example for std::mem::transmute() usage instead of manual swap

5 years agoMerge pull request #3048 from goodmanjonathan/assign_op
Philipp Krones [Fri, 24 Aug 2018 16:29:31 +0000 (18:29 +0200)]
Merge pull request #3048 from goodmanjonathan/assign_op

deprecate assign_ops lint

5 years agoMerge pull request #3059 from elpiel/writeln_empty_string_harcoded-suggestion
Philipp Krones [Fri, 24 Aug 2018 16:28:50 +0000 (18:28 +0200)]
Merge pull request #3059 from elpiel/writeln_empty_string_harcoded-suggestion

#3016 writeln_empty_string Hardcoded suggestion

5 years agodeps: update cargo_metadata from 0.5 to 0.6.
Matthias Krüger [Fri, 24 Aug 2018 16:14:49 +0000 (18:14 +0200)]
deps: update cargo_metadata from 0.5 to 0.6.

5 years agoMerge pull request #2924 from niklasf/copy-iterator
Philipp Krones [Fri, 24 Aug 2018 10:27:48 +0000 (12:27 +0200)]
Merge pull request #2924 from niklasf/copy-iterator

Add copy_iterator lint (#1534)

5 years agoAdd copy_iterator lint (#1534)
Niklas Fiekas [Tue, 17 Jul 2018 17:22:55 +0000 (19:22 +0200)]
Add copy_iterator lint (#1534)

5 years agoMerge pull request #3077 from matthiaskrgr/rustup_2
Philipp Krones [Thu, 23 Aug 2018 21:29:00 +0000 (23:29 +0200)]
Merge pull request #3077 from matthiaskrgr/rustup_2

fix clippy breakage due to https://github.com/rust-lang/rust/pull/52602

5 years agofix clippy breakage due to https://github.com/rust-lang/rust/pull/52602
Matthias Krüger [Thu, 23 Aug 2018 19:41:30 +0000 (21:41 +0200)]
fix clippy breakage due to https://github.com/rust-lang/rust/pull/52602

5 years agoRemove incorrect note from string_add_assign docs
Matt Brubeck [Thu, 23 Aug 2018 15:38:41 +0000 (08:38 -0700)]
Remove incorrect note from string_add_assign docs

The docs claim that `String::push_str` is better than `String::add` because `String::add` allocates a new string and drops the old one, but this is not true.  In fact, `add` reuses the existing string and grows it only if its capacity is exceeded, exactly like `push_str`.  Their performance is identical since `add` is just a wrapper for `push_str`:

```
    fn add(mut self, other: &str) -> String {
        self.push_str(other);
        self
    }
```

https://github.com/rust-lang/rust/blob/35bf1ae25799a4e62131159f052e0a3cbd27c960/src/liballoc/string.rs#L1922-L1925

5 years agoMerge pull request #3072 from matthiaskrgr/rustup
Philipp Krones [Thu, 23 Aug 2018 13:53:07 +0000 (15:53 +0200)]
Merge pull request #3072 from matthiaskrgr/rustup

rustup, fix breakage introduced by rust-lang/rust#53581 and rust-lang/rust#53459

5 years agoremove macro_vis_matcher feature gate since it is stable now.
Matthias Krüger [Thu, 23 Aug 2018 11:12:27 +0000 (13:12 +0200)]
remove macro_vis_matcher feature gate since it is stable now.

Warning was:
warning: the feature `macro_vis_matcher` has been stable since 1.29.0 and no longer requires an attribute to enable
 --> src/lib.rs:4:12
  |
4 | #![feature(macro_vis_matcher)]
  |            ^^^^^^^^^^^^^^^^^
  |
  = note: #[warn(stable_features)] on by default

5 years agoRemove now stable tool_attributes feature
flip1995 [Thu, 23 Aug 2018 13:36:07 +0000 (15:36 +0200)]
Remove now stable tool_attributes feature

5 years agorustup, fix breakage introduced by https://github.com/rust-lang/rust/pull/53581
Matthias Krüger [Wed, 22 Aug 2018 21:34:52 +0000 (23:34 +0200)]
rustup, fix breakage introduced by https://github.com/rust-lang/rust/pull/53581

5 years ago#3016 Add backticks for the msg
Lachezar Lechev [Mon, 20 Aug 2018 13:50:15 +0000 (15:50 +0200)]
#3016 Add backticks for the msg

5 years ago#3016 Add feedback and implement test for fixed hardcoded suggestion
Lachezar Lechev [Mon, 20 Aug 2018 13:33:43 +0000 (15:33 +0200)]
#3016 Add feedback and implement test for fixed hardcoded suggestion

5 years ago#3016 [WIP] Implement feedback and suggestions
Lachezar Lechev [Mon, 20 Aug 2018 12:03:13 +0000 (14:03 +0200)]
#3016 [WIP] Implement feedback and suggestions

5 years agoMerge pull request #3065 from rust-lang-nursery/rustup
Manish Goregaokar [Mon, 20 Aug 2018 02:16:54 +0000 (19:16 -0700)]
Merge pull request #3065 from rust-lang-nursery/rustup

Rustup to rustc 1.30.0-nightly (6bf6d50a6 2018-08-19)

5 years agoRemove implied rust_2018 feature
Manish Goregaokar [Mon, 20 Aug 2018 02:07:31 +0000 (19:07 -0700)]
Remove implied rust_2018 feature

We are already on the edition and this feature is implied.

5 years agocodemap -> source_map
Manish Goregaokar [Mon, 20 Aug 2018 02:06:53 +0000 (19:06 -0700)]
codemap -> source_map

https://github.com/rust-lang/rust/pull/52953

5 years agoWIP of #3016 for hardocded suggestion for writeln on empty string
Lachezar Lechev [Thu, 16 Aug 2018 16:20:06 +0000 (18:20 +0200)]
WIP of #3016 for hardocded suggestion for writeln on empty string

5 years agoMerge pull request #3056 from mikerite/fix-2927
Oliver Schneider [Thu, 16 Aug 2018 06:20:51 +0000 (08:20 +0200)]
Merge pull request #3056 from mikerite/fix-2927

Fix #2927

5 years agofix-2927: Update formatting
Michael Wright [Thu, 16 Aug 2018 05:13:52 +0000 (07:13 +0200)]
fix-2927: Update formatting

5 years agoFix #2927
Michael Wright [Wed, 15 Aug 2018 06:11:07 +0000 (08:11 +0200)]
Fix #2927

5 years agoRustup to rustc 1.30.0-nightly (23f09bbed 2018-08-14)
Manish Goregaokar [Tue, 14 Aug 2018 18:26:28 +0000 (11:26 -0700)]
Rustup to rustc 1.30.0-nightly (23f09bbed 2018-08-14)

5 years agoMerge pull request #3026 from dwijnand/fxhash
Philipp Krones [Tue, 14 Aug 2018 11:04:48 +0000 (13:04 +0200)]
Merge pull request #3026 from dwijnand/fxhash

Add an internal lint for FxHashMap/FxHashSet

5 years agoMerge pull request #3049 from mikerite/fix-2799
Philipp Krones [Tue, 14 Aug 2018 10:55:13 +0000 (12:55 +0200)]
Merge pull request #3049 from mikerite/fix-2799

Add a test to ensure that #2799 is fixed

5 years agoMerge pull request #3014 from estk/allow-write-multi-newline
Philipp Krones [Tue, 14 Aug 2018 10:54:05 +0000 (12:54 +0200)]
Merge pull request #3014 from estk/allow-write-multi-newline

Allow print/write with multiple newlines

5 years agoMerge pull request #3036 from matthiaskrgr/clippy_self
Philipp Krones [Tue, 14 Aug 2018 10:53:01 +0000 (12:53 +0200)]
Merge pull request #3036 from matthiaskrgr/clippy_self

fix 2 clippy warnings

5 years agoMerge pull request #3022 from dwijnand/move-shadow_unrelated
Philipp Krones [Tue, 14 Aug 2018 10:50:46 +0000 (12:50 +0200)]
Merge pull request #3022 from dwijnand/move-shadow_unrelated

Move shadow_unrelated to pedantic

5 years agoMove shadow_unrelated to pedantic
Dale Wijnand [Thu, 9 Aug 2018 16:26:22 +0000 (17:26 +0100)]
Move shadow_unrelated to pedantic

5 years agoAvoid new_without_default_derive in DefaultHashTypes
Dale Wijnand [Tue, 14 Aug 2018 08:25:09 +0000 (09:25 +0100)]
Avoid new_without_default_derive in DefaultHashTypes

5 years agoAdd a test to ensure that #2799 is fixed
Michael Wright [Tue, 14 Aug 2018 05:27:56 +0000 (07:27 +0200)]
Add a test to ensure that #2799 is fixed

Closes #2799

5 years agodeprecate assign_ops lint
Jonathan Goodman [Thu, 9 Aug 2018 19:14:12 +0000 (14:14 -0500)]
deprecate assign_ops lint

5 years agoUse utils::span_lint_and_sugg in default_hash_types
Dale Wijnand [Mon, 13 Aug 2018 07:23:07 +0000 (08:23 +0100)]
Use utils::span_lint_and_sugg in default_hash_types

5 years agoMerge pull request #3038 from matthiaskrgr/clippy_docs
Martin Carton [Sun, 12 Aug 2018 19:35:52 +0000 (21:35 +0200)]
Merge pull request #3038 from matthiaskrgr/clippy_docs

docs: add more suggestions on how to fix clippy findings to the online lint list

5 years agoMerge pull request #3042 from matthiaskrgr/py3
Martin Carton [Sun, 12 Aug 2018 17:11:07 +0000 (19:11 +0200)]
Merge pull request #3042 from matthiaskrgr/py3

update_lints.py: port another print to print() for python3 compatibility.

5 years agoAdd an internal lint for FxHashMap/FxHashSet
Dale Wijnand [Fri, 10 Aug 2018 17:58:23 +0000 (18:58 +0100)]
Add an internal lint for FxHashMap/FxHashSet

5 years agoupdate_lints.py: port another print to print() for python3 compatibility.
Matthias Krüger [Sun, 12 Aug 2018 09:33:44 +0000 (11:33 +0200)]
update_lints.py: port another print to print() for python3 compatibility.

5 years agodocs: add more suggestions on how to fix clippy findings to the online lint list.
Matthias Krüger [Sat, 11 Aug 2018 22:16:03 +0000 (00:16 +0200)]
docs: add more suggestions on how to fix clippy findings to the online lint list.

5 years agofix 2 clippy warnings
Matthias Krüger [Sat, 11 Aug 2018 21:07:04 +0000 (23:07 +0200)]
fix 2 clippy warnings

5 years agoMerge pull request #3019 from auscompgeek/patch-1
Martin Carton [Fri, 10 Aug 2018 17:07:52 +0000 (19:07 +0200)]
Merge pull request #3019 from auscompgeek/patch-1

lintlib: Use Python 3 compatible print

5 years agoVersion checks are useless now that we ride the trains
Oliver Schneider [Thu, 9 Aug 2018 07:41:32 +0000 (09:41 +0200)]
Version checks are useless now that we ride the trains