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

5 years agolintlib: Use Python 3 compatible print
David Vo [Thu, 9 Aug 2018 07:29:22 +0000 (17:29 +1000)]
lintlib: Use Python 3 compatible print

Ref: #2882

5 years agoUpdate to rustc master
Oliver Schneider [Wed, 8 Aug 2018 11:18:25 +0000 (13:18 +0200)]
Update to rustc master

5 years agoMerge pull request #2823 from flip1995/thingies_things
Oliver Schneider [Wed, 8 Aug 2018 11:14:20 +0000 (13:14 +0200)]
Merge pull request #2823 from flip1995/thingies_things

Replace cfg_attr(rustfmt... with rustfmt::skip

5 years agoFix build
Nick Cameron [Wed, 8 Aug 2018 06:00:23 +0000 (18:00 +1200)]
Fix build

5 years agoAllow print/write with multiple newlines
Evan Simmons [Tue, 7 Aug 2018 20:01:10 +0000 (12:01 -0800)]
Allow print/write with multiple newlines

5 years agoRustup
Oliver Schneider [Tue, 7 Aug 2018 14:34:17 +0000 (16:34 +0200)]
Rustup

5 years agoMerge pull request #3009 from dwijnand/option-map_or
Oliver Schneider [Tue, 7 Aug 2018 11:11:30 +0000 (13:11 +0200)]
Merge pull request #3009 from dwijnand/option-map_or

Use Option::map_or

5 years agoMerge pull request #3008 from dwijnand/remove-workaround
Oliver Schneider [Tue, 7 Aug 2018 11:10:54 +0000 (13:10 +0200)]
Merge pull request #3008 from dwijnand/remove-workaround

Remove #[allow(rust_2018_idioms)] workaround

5 years agoMerge pull request #3010 from mikerite/issue2971
Oliver Schneider [Tue, 7 Aug 2018 11:10:26 +0000 (13:10 +0200)]
Merge pull request #3010 from mikerite/issue2971

Fix #2971

5 years agoMerge pull request #3011 from scottmcm/fix-for-impl_header_lifetime_elision
Oliver Schneider [Tue, 7 Aug 2018 11:09:23 +0000 (13:09 +0200)]
Merge pull request #3011 from scottmcm/fix-for-impl_header_lifetime_elision

Fix the build after rust PR 53016

5 years agoFix the build after https://github.com/rust-lang/rust/pull/53016
Scott McMurray [Tue, 7 Aug 2018 07:05:09 +0000 (00:05 -0700)]
Fix the build after https://github.com/rust-lang/rust/pull/53016

In-band lifetimes are no longer in the edition, so update the one place that was using them.

5 years agoFix #2971
Michael Wright [Tue, 7 Aug 2018 03:37:11 +0000 (05:37 +0200)]
Fix #2971

5 years agoUse Option::map_or
Dale Wijnand [Mon, 6 Aug 2018 13:42:08 +0000 (15:42 +0200)]
Use Option::map_or

5 years agoRemove #[allow(rust_2018_idioms)] workaround
Dale Wijnand [Mon, 6 Aug 2018 13:10:48 +0000 (15:10 +0200)]
Remove #[allow(rust_2018_idioms)] workaround

5 years agoMerge pull request #3007 from mikerite/issue3000
Oliver Schneider [Mon, 6 Aug 2018 07:16:42 +0000 (09:16 +0200)]
Merge pull request #3007 from mikerite/issue3000

Fix #3000

5 years agoFix #3000
Michael Wright [Mon, 6 Aug 2018 06:20:50 +0000 (08:20 +0200)]
Fix #3000

5 years agoMerge pull request #2999 from flip1995/single_char_pattern
Philipp Hansch [Mon, 6 Aug 2018 06:05:04 +0000 (07:05 +0100)]
Merge pull request #2999 from flip1995/single_char_pattern

Fix single_char_pattern lint for escaped chars

5 years agoMerge pull request #2975 from aaudiber/lint-identity-into-iter
Philipp Hansch [Sun, 5 Aug 2018 19:38:28 +0000 (20:38 +0100)]
Merge pull request #2975 from aaudiber/lint-identity-into-iter

Lint using identity into_iter conversion

5 years agoMerge pull request #2991 from mikerite/issue2979
Philipp Hansch [Sun, 5 Aug 2018 19:35:55 +0000 (20:35 +0100)]
Merge pull request #2991 from mikerite/issue2979

Fix #2979

5 years agoMerge pull request #3003 from nrc/update
Manish Goregaokar [Sat, 4 Aug 2018 22:02:48 +0000 (15:02 -0700)]
Merge pull request #3003 from nrc/update

Fix error in `CrateType` in latest Rust

5 years agoFix error in `CrateType` in latest Rust
Nick Cameron [Sat, 4 Aug 2018 21:35:08 +0000 (09:35 +1200)]
Fix error in `CrateType` in latest Rust

5 years agoMerge pull request #3002 from rust-lang-nursery/rustup
Manish Goregaokar [Fri, 3 Aug 2018 17:15:45 +0000 (10:15 -0700)]
Merge pull request #3002 from rust-lang-nursery/rustup

Rustup to 59fa6bd6c

5 years agoRustup to 59fa6bd6c
Manish Goregaokar [Fri, 3 Aug 2018 17:14:25 +0000 (10:14 -0700)]
Rustup to 59fa6bd6c

5 years agoFix single_char_pattern lint for escaped chars
flip1995 [Fri, 3 Aug 2018 08:19:29 +0000 (10:19 +0200)]
Fix single_char_pattern lint for escaped chars

5 years agoFix fallout from rust-lang/rust#52841
Alex Crichton [Fri, 3 Aug 2018 01:08:22 +0000 (18:08 -0700)]
Fix fallout from rust-lang/rust#52841

5 years agoFix tests from 40349b23ea
Alex Crichton [Thu, 2 Aug 2018 21:14:48 +0000 (14:14 -0700)]
Fix tests from 40349b23ea

5 years agoReplace cfg_attr(rustfmt... thingies
flip1995 [Wed, 30 May 2018 16:24:44 +0000 (18:24 +0200)]
Replace cfg_attr(rustfmt... thingies

5 years agoMerge pull request #2992 from etaoins/allow-pass-by-ref-on-adt-return
Philipp Krones [Thu, 2 Aug 2018 20:39:04 +0000 (22:39 +0200)]
Merge pull request #2992 from etaoins/allow-pass-by-ref-on-adt-return

Allow pass by ref when returning ADT with ref

5 years agoFix breakage from rust-lang/rust#52949
Alex Crichton [Thu, 2 Aug 2018 20:00:14 +0000 (13:00 -0700)]
Fix breakage from rust-lang/rust#52949

5 years agoMake indexing_slicing a restriction lint (fixes #2933)
Manish Goregaokar [Thu, 2 Aug 2018 17:06:03 +0000 (10:06 -0700)]
Make indexing_slicing a restriction lint (fixes #2933)

5 years agoMerge pull request #2995 from reujab/master
Manish Goregaokar [Thu, 2 Aug 2018 16:54:12 +0000 (09:54 -0700)]
Merge pull request #2995 from reujab/master

Removed colon in documentation

5 years agoremoved colon
reujab [Thu, 2 Aug 2018 15:52:46 +0000 (11:52 -0400)]
removed colon

5 years agoAllow pass by ref when returning ADT with ref
Ryan Cumming [Thu, 2 Aug 2018 07:57:49 +0000 (17:57 +1000)]
Allow pass by ref when returning ADT with ref

This is a follow-up to #2951 that extends the logic to allow for
returning references inside structs/enums/unions. This was a simple
oversight in the first version and it's surprisingly easy to handle.

5 years agoFix #2979
Michael Wright [Thu, 2 Aug 2018 06:56:53 +0000 (08:56 +0200)]
Fix #2979

5 years agoSwitch strategies for how rustc's workspace is unioned
Alex Crichton [Thu, 2 Aug 2018 04:33:33 +0000 (21:33 -0700)]
Switch strategies for how rustc's workspace is unioned

See rust-lang/rust#52919 for more details.

5 years agoMerge pull request #2987 from aaudiber/address-build-warning
Philipp Hansch [Wed, 1 Aug 2018 07:23:33 +0000 (08:23 +0100)]
Merge pull request #2987 from aaudiber/address-build-warning

Address build warning

5 years agoAddress build warning
Andrew Audibert [Wed, 1 Aug 2018 06:53:45 +0000 (23:53 -0700)]
Address build warning

5 years agoMerge pull request #2966 from matthiaskrgr/moar_dogfood
Philipp Hansch [Wed, 1 Aug 2018 06:08:54 +0000 (07:08 +0100)]
Merge pull request #2966 from matthiaskrgr/moar_dogfood

travis: run tests of external projects with --all-targets --all-features, increase coverage

5 years agoMerge pull request #2968 from phansch/first_an_ICE_and_then_some_ice_cream
Philipp Hansch [Wed, 1 Aug 2018 05:18:34 +0000 (06:18 +0100)]
Merge pull request #2968 from phansch/first_an_ICE_and_then_some_ice_cream

Fix ICE with 'while let Some(..) = x.iter()'

5 years agoMerge pull request #2983 from mikerite/fix_warnings_20180730
Philipp Hansch [Wed, 1 Aug 2018 05:18:18 +0000 (06:18 +0100)]
Merge pull request #2983 from mikerite/fix_warnings_20180730

Fix compiler warnings

5 years agoFix E0502 warnings
Michael Wright [Wed, 1 Aug 2018 04:32:36 +0000 (06:32 +0200)]
Fix E0502 warnings

Fixes #2982

5 years agoMerge pull request #2984 from flip1995/single_char_pattern
Philipp Hansch [Tue, 31 Jul 2018 18:06:57 +0000 (19:06 +0100)]
Merge pull request #2984 from flip1995/single_char_pattern

single_char_pattern: lint only on the argument span

5 years agosingle_char_pattern: lint only on the argument span
flip1995 [Tue, 31 Jul 2018 10:20:32 +0000 (12:20 +0200)]
single_char_pattern: lint only on the argument span

5 years agoFix unused_mut warning
Michael Wright [Tue, 31 Jul 2018 05:45:05 +0000 (07:45 +0200)]
Fix unused_mut warning

5 years agoMerge pull request #2969 from matthiaskrgr/discordgitter
Manish Goregaokar [Mon, 30 Jul 2018 17:18:49 +0000 (10:18 -0700)]
Merge pull request #2969 from matthiaskrgr/discordgitter

CONTRIBUTING: mention discord channel

5 years agoLint using identity into_iter conversion
Andrew Audibert [Mon, 30 Jul 2018 04:02:05 +0000 (21:02 -0700)]
Lint using identity into_iter conversion

5 years agointegration tests: add more clippy warnings for greater coverage
Matthias Krüger [Sat, 28 Jul 2018 10:14:35 +0000 (12:14 +0200)]
integration tests: add more clippy warnings for greater coverage
integration/base tests: add a few code comments

5 years agotravis: run tests of external projects with --all-targets --all-features -- --cap...
Matthias Krüger [Fri, 27 Jul 2018 13:36:13 +0000 (15:36 +0200)]
travis: run tests of external projects with --all-targets --all-features -- --cap-lints warn