]>
git.lizzy.rs Git - rust.git/log
Nathan [Fri, 27 Apr 2018 06:43:16 +0000 (02:43 -0400)]
Remove extraneous `'s in {wrong,crosspointer}_transmute examples
Nathan [Fri, 27 Apr 2018 06:40:19 +0000 (02:40 -0400)]
Fix missing line comments in {drop,forget}_copy examples
Nathan [Fri, 27 Apr 2018 06:39:14 +0000 (02:39 -0400)]
Fix missing line comment in drop_ref example
Nathan [Fri, 27 Apr 2018 06:37:40 +0000 (02:37 -0400)]
Fix missing line comment in crosspointer_transmute example
Nathan [Fri, 27 Apr 2018 06:31:36 +0000 (02:31 -0400)]
Fix missing line comment in doc_markdown example
rustfmt [wrapped the line](https://github.com/rust-lang-nursery/rust-clippy/commit/
b25b6b3355efa33c797f4a37afb2f516531ad581 #diff-561823671726302d969756ded53a13a7L22), so we need a second `///`
Oliver Schneider [Wed, 25 Apr 2018 16:37:42 +0000 (18:37 +0200)]
Merge pull request #2673 from estk/excessive_precision
Excessive precision
Oliver Schneider [Wed, 25 Apr 2018 07:32:31 +0000 (09:32 +0200)]
Merge pull request #2679 from devonhollowood/cast-alignment-cvoid
Make cast_ptr_alignment ignore c_void
Oliver Schneider [Wed, 25 Apr 2018 07:32:06 +0000 (09:32 +0200)]
Merge pull request #2687 from phansch/explain_how_lints_work
Explain how Clippy and lints work
Evan Simmons [Fri, 13 Apr 2018 00:42:57 +0000 (17:42 -0700)]
New excessive precision lint for floats
Philipp Hansch [Tue, 24 Apr 2018 19:04:43 +0000 (21:04 +0200)]
Mention util/update_lints.py
Devon Hollowood [Wed, 18 Apr 2018 00:13:19 +0000 (17:13 -0700)]
Make cast_ptr_alignment ignore c_void
Oliver Schneider [Tue, 24 Apr 2018 17:08:27 +0000 (19:08 +0200)]
Merge pull request #2684 from 17cupsofcoffee/infallible-destructuring-match
Lint for destructuring tuple structs/variants with an infallible single-armed match
Joe Clay [Thu, 19 Apr 2018 19:34:31 +0000 (20:34 +0100)]
Implement lint for destructuring tuple structs with a let and a match (closes #2671)
Oliver Schneider [Tue, 24 Apr 2018 08:00:15 +0000 (10:00 +0200)]
Merge pull request #2694 from humanenginuity/master
Fix for https://github.com/rust-lang-nursery/rust-clippy/issues/2693
Brad Gibson [Mon, 23 Apr 2018 18:03:27 +0000 (11:03 -0700)]
Merge pull request #1 from humanenginuity/fix-strictly-aligned-types-cast-messages
Corrected messaging to warn against less- to more-strictly aligned
Brad Gibson [Mon, 23 Apr 2018 17:59:53 +0000 (10:59 -0700)]
Corrected messaging to warn against less- to more-strictly align types, rather than the other way around. No logic changes required.
Oliver Schneider [Mon, 23 Apr 2018 08:36:48 +0000 (10:36 +0200)]
Merge pull request #2690 from mrecachinas/feature/print-string-literal
Fix alignment/precision/width false positives for print/write_literal
Michael Recachinas [Sat, 21 Apr 2018 18:50:49 +0000 (19:50 +0100)]
Update stderrs for print and write_literal
Michael Recachinas [Sat, 21 Apr 2018 18:24:55 +0000 (19:24 +0100)]
Add smaller check_unformatted to write.rs and fix precision,width,align false positive
Michael Recachinas [Sat, 21 Apr 2018 18:23:59 +0000 (19:23 +0100)]
Add more tests to print_ and write_literal
Also, move precision, width, and debug fmt tests to 'should pass'
Philipp Hansch [Sat, 21 Apr 2018 09:42:28 +0000 (11:42 +0200)]
Explain how Clippy works
Oliver Schneider [Thu, 19 Apr 2018 06:30:07 +0000 (08:30 +0200)]
Version bump
Oliver Schneider [Thu, 19 Apr 2018 06:28:10 +0000 (08:28 +0200)]
Merge pull request #2681 from phansch/fix_latest_nightly_breakage
Fix latest nightly breakage
Oliver Schneider [Thu, 19 Apr 2018 04:46:41 +0000 (06:46 +0200)]
Merge pull request #2683 from rust-lang-nursery/rustup
Rustup
Philipp Hansch [Wed, 18 Apr 2018 18:25:43 +0000 (20:25 +0200)]
Fix latest nightly breakage
I'm not sure if there are better ways to use the RwLock API, though. But
it seems to work.
Philipp Hansch [Tue, 17 Apr 2018 20:26:01 +0000 (22:26 +0200)]
Merge pull request #2675 from phansch/mention_irc_in_contributing_md
Add intro and mention IRC in CONTRIBUTING.md
Oliver Schneider [Tue, 17 Apr 2018 08:52:25 +0000 (10:52 +0200)]
Rustup
Philipp Hansch [Tue, 17 Apr 2018 06:33:22 +0000 (08:33 +0200)]
Add intro and mention IRC in CONTRIBUTING.md
This is partly taken from the [rustfmt CONTRIBUTING.md][contrib].
[contrib]: https://github.com/rust-lang-nursery/rustfmt/blob/master/Contributing.md
Oliver Schneider [Sun, 15 Apr 2018 14:14:25 +0000 (16:14 +0200)]
Merge pull request #1467 from philipturnbull/option_map_nil_fn
Lint `Option.map(f)` where f returns unit
Philipp Hansch [Sun, 15 Apr 2018 13:37:11 +0000 (15:37 +0200)]
Refactor out enum and address nits
Oliver Schneider [Sun, 15 Apr 2018 13:01:48 +0000 (15:01 +0200)]
Version bump
Oliver Schneider [Sun, 15 Apr 2018 12:30:45 +0000 (14:30 +0200)]
Merge pull request #2650 from thekidxp/fixEmptyPrintln
fixEmptyPrintln
MSI\Stew's Laptop [Mon, 9 Apr 2018 04:07:47 +0000 (00:07 -0400)]
fixing error message for empty println macro
Philipp Hansch [Sun, 15 Apr 2018 11:00:12 +0000 (13:00 +0200)]
Also lint Result.map for unit returns
Philipp Hansch [Sun, 15 Apr 2018 10:30:38 +0000 (12:30 +0200)]
Rename option_map_unit_fn to map_unit_fn
Philipp Hansch [Sun, 15 Apr 2018 09:37:35 +0000 (11:37 +0200)]
Generate let binding variable name for some cases
Given a map call like `x.field.map ...` the suggestion will contain:
`if let Some(x_field) ...`
Given a map call like `x.map ...` the suggestion will contain:
`if let Some(_x) ...`
Otherwise it will suggest: `if let Some(_) ...`
Philipp Hansch [Sun, 15 Apr 2018 09:35:20 +0000 (11:35 +0200)]
Use approximate_suggestion for non-reducible closures
Philipp Hansch [Tue, 10 Apr 2018 20:13:58 +0000 (22:13 +0200)]
Remove further semicolon reduction
Philipp Hansch [Mon, 9 Apr 2018 06:33:57 +0000 (08:33 +0200)]
Allow new lint in ui/eta.rs
Philipp Hansch [Mon, 9 Apr 2018 06:20:46 +0000 (08:20 +0200)]
Move test to new UI test system
Philipp Hansch [Mon, 9 Apr 2018 06:19:40 +0000 (08:19 +0200)]
Rename lint to option_map_unit_fn
Rust does not have nil.
Philipp Hansch [Mon, 9 Apr 2018 05:54:08 +0000 (07:54 +0200)]
Use declare_clippy_lint and 'complexity' category
Philipp Hansch [Sun, 8 Apr 2018 08:41:51 +0000 (10:41 +0200)]
Cleanup misc::check_nan
This was a bit messed up after a bigger rebase.
Philipp Hansch [Sun, 8 Apr 2018 07:48:49 +0000 (09:48 +0200)]
Make it compile again
Phil Turnbull [Mon, 23 Jan 2017 01:57:17 +0000 (20:57 -0500)]
Handle non-trivial nil closures
`reduce_nil_closure` mixed together a) 'is this a nil closure?' and b) 'can it
be reduced to a simple expression?'. Split the logic into two functions so we
can still generate a basic warning when the closure can't be simplified.
Phil Turnbull [Sun, 22 Jan 2017 21:42:57 +0000 (16:42 -0500)]
Return Spans instead of Cow<&str>'s
Phil Turnbull [Sun, 22 Jan 2017 18:36:50 +0000 (13:36 -0500)]
Lint closures that return nil
Phil Turnbull [Sun, 22 Jan 2017 17:45:45 +0000 (12:45 -0500)]
Lint `Option.map(f)` where f never returns
Phil Turnbull [Mon, 16 Jan 2017 20:40:50 +0000 (15:40 -0500)]
Lint `Option.map(f)` where f returns nil
Oliver Schneider [Sun, 15 Apr 2018 09:57:57 +0000 (11:57 +0200)]
Merge pull request #2662 from mikerite/issue_2546
Fix useless_format false negative
Oliver Schneider [Sun, 15 Apr 2018 09:57:01 +0000 (11:57 +0200)]
Merge pull request #2670 from mikerite/fix_compilation_20180415
Fix compilation for nightly 2018-04-15
Michael Wright [Sun, 15 Apr 2018 03:20:30 +0000 (05:20 +0200)]
Fix clippy error
Michael Wright [Sun, 15 Apr 2018 02:48:14 +0000 (04:48 +0200)]
Fix compilation for nightly 2018-04-15
This only fixes compilation and the build. It's possible that the `author`
and `inspector` lints are broken but there are no failing tests.
Closes #2667
Oliver Schneider [Sat, 14 Apr 2018 10:18:18 +0000 (12:18 +0200)]
Merge pull request #2669 from senden9/patch-1
Fix Markdown link syntax in lint doc
Stefano Probst [Sat, 14 Apr 2018 09:35:52 +0000 (11:35 +0200)]
Fix Markdown link syntax in lint doc
Currently this link is wrong rendered. See https://rust-lang-nursery.github.io/rust-clippy/v0.0.193/index.html#iter_next_loop
Philipp Hansch [Fri, 13 Apr 2018 19:09:07 +0000 (21:09 +0200)]
Merge pull request #2668 from phansch/run_remark_on_all_markdown_files
Run remark-lint on all markdown files in root
Philipp Hansch [Fri, 13 Apr 2018 18:54:42 +0000 (20:54 +0200)]
Run remark-lint on all markdown files in root
Philipp Hansch [Thu, 12 Apr 2018 20:32:45 +0000 (22:32 +0200)]
Merge pull request #2664 from phansch/move_unnecessary_fold_ui_tests
Move unnecessary_fold UI tests to separate file
Philipp Hansch [Thu, 12 Apr 2018 20:16:43 +0000 (22:16 +0200)]
Move unnecessary_fold UI tests to separate file
Michael Wright [Thu, 12 Apr 2018 06:50:42 +0000 (08:50 +0200)]
Fix clippy warnings
Michael Wright [Thu, 12 Apr 2018 06:21:03 +0000 (08:21 +0200)]
Fix useless_format false negative
Closes #2546
Oliver Schneider [Wed, 11 Apr 2018 11:23:15 +0000 (13:23 +0200)]
Merge pull request #2661 from devonhollowood/ptr-ptr-casts
Replace `misaligned_transmute` lint
Devon Hollowood [Wed, 11 Apr 2018 09:50:04 +0000 (02:50 -0700)]
Deprecate misaligned_transmute
Devon Hollowood [Wed, 11 Apr 2018 09:17:59 +0000 (02:17 -0700)]
Fix misaligned_transmute lint
This is done by adding two new lints: cast_ptr_alignment and
transmute_ptr_to_ptr. These will replace misaligned_transmute.
Oliver Schneider [Wed, 11 Apr 2018 07:06:24 +0000 (09:06 +0200)]
Merge pull request #2660 from phansch/fix_travis
Fix travis.yml
Philipp Hansch [Wed, 11 Apr 2018 06:47:40 +0000 (08:47 +0200)]
Fix travis.yml
For some reason #2659 was an invalid .travis.yml and this reverts that
part of the commit that changes the .travis.yml.
It resulted in travis not starting jobs. There should be a travis build
again for this PR.
Philipp Hansch [Wed, 11 Apr 2018 06:40:42 +0000 (08:40 +0200)]
Merge pull request #2659 from phansch/debug_deployment_issues
Debug deployment script issues
Philipp Hansch [Wed, 11 Apr 2018 06:23:02 +0000 (08:23 +0200)]
Add set -x for debugging
Philipp Hansch [Wed, 11 Apr 2018 06:07:21 +0000 (08:07 +0200)]
Debug deployment script issues
This prints some more information during the docs deployment.
Oliver Schneider [Tue, 10 Apr 2018 17:44:43 +0000 (19:44 +0200)]
Merge pull request #2655 from rust-lang-nursery/oli-obk-patch-1
Explain nursery lints
Oliver Schneider [Tue, 10 Apr 2018 11:50:44 +0000 (13:50 +0200)]
Explain nursery lints
fixes #2652
Oliver Schneider [Tue, 10 Apr 2018 11:09:27 +0000 (13:09 +0200)]
Merge pull request #2654 from killercup/feature/lint-groups-in-docs
Show/Filter by lint groups in docs
Pascal Hertleif [Tue, 10 Apr 2018 10:24:00 +0000 (12:24 +0200)]
Docs: Reorganize layout a bit and show lint groups
Pascal Hertleif [Tue, 10 Apr 2018 10:23:41 +0000 (12:23 +0200)]
Add lint groups to doc export
Oliver Schneider [Sun, 8 Apr 2018 09:13:07 +0000 (11:13 +0200)]
Version bump
Oliver Schneider [Sun, 8 Apr 2018 08:55:42 +0000 (10:55 +0200)]
Temporarily disable the needless_borrow lint
Oliver Schneider [Sun, 8 Apr 2018 06:58:38 +0000 (08:58 +0200)]
Merge pull request #2645 from TimNN/regex-bytes-utf8
Allow invalid UTF-8 in bytes Regexes
Oliver Schneider [Sun, 8 Apr 2018 06:57:24 +0000 (08:57 +0200)]
Merge pull request #2630 from estk/fix-2613
Add rules for write!() / writeln!() similar to those in print!() / println!()
Evan Simmons [Thu, 5 Apr 2018 03:46:39 +0000 (20:46 -0700)]
New lints for write! / writeln! macros.
Tim Neumann [Sat, 7 Apr 2018 20:18:51 +0000 (22:18 +0200)]
allow invalid UTF-8 in bytes Regexes
Oliver Schneider [Sat, 7 Apr 2018 11:17:04 +0000 (13:17 +0200)]
Merge pull request #2644 from phansch/fix_nonminimal_bool_false_positive
Fix nonminimal_bool false positive
Philipp Hansch [Sat, 7 Apr 2018 10:52:18 +0000 (12:52 +0200)]
Fix nonminimal_bool false positive
It was checking any is_ok, is_err, is_some, is_none method for negation
but it should only perform the check for the built-in types, not custom
types.
Oliver Schneider [Sat, 7 Apr 2018 08:40:40 +0000 (10:40 +0200)]
Merge pull request #2643 from phansch/split_up_match_bool_ui_tests
Split up match_bool UI tests
Philipp Hansch [Sat, 7 Apr 2018 08:23:27 +0000 (10:23 +0200)]
Split up match_bool UI tests
Oliver Schneider [Sat, 7 Apr 2018 07:42:54 +0000 (09:42 +0200)]
Merge pull request #2641 from rcoh/patch-2
Update hash_xor_eq docs to match behavior
Oliver Schneider [Sat, 7 Apr 2018 07:42:26 +0000 (09:42 +0200)]
Merge pull request #2640 from mikerite/fix_compilation_20180406
Fix compilation for nightly 2018-04-06
Russell Cohen [Sat, 7 Apr 2018 05:44:25 +0000 (22:44 -0700)]
Fix docs to match behavior
Michael Wright [Sat, 7 Apr 2018 05:22:23 +0000 (07:22 +0200)]
Fix compilation for nightly 2018-04-06
Breakages for introduced by rust pull request
'AST: Give spans to all identifies' - rust-lang/rust/pull#49154
Closes #2639
Oliver Schneider [Fri, 6 Apr 2018 10:15:33 +0000 (12:15 +0200)]
Merge pull request #2633 from mikerite/ref_cow_tests
Move ref cow tests
Oliver Schneider [Fri, 6 Apr 2018 10:13:38 +0000 (12:13 +0200)]
Merge pull request #2635 from phansch/split_up_some_match_ui_tests
Split up some single_match UI tests
Philipp Hansch [Thu, 5 Apr 2018 19:18:38 +0000 (21:18 +0200)]
Split up some single_match UI tests
This moves only the single_match tests over to the new file.
Michael Wright [Thu, 5 Apr 2018 15:59:35 +0000 (17:59 +0200)]
Move ref cow tests
This commit moves the ref cow tests from needless_borrow.rs to ptr_arg.rs
where all the other PTR_ARG tests are.
Oliver Schneider [Thu, 5 Apr 2018 07:59:12 +0000 (09:59 +0200)]
Merge pull request #2632 from phansch/fix_useless_format_false_positive
Fix useless_format false positive with macros
Philipp Hansch [Thu, 5 Apr 2018 05:52:26 +0000 (07:52 +0200)]
Fix useless_format false positive with macros
Clippy was issuing a warning when `format!` was used inside a macro.
That's a problem because macros have different syntax and can be outside
the control of the user.
This skips the `useless_format` check if the `format!` call is inside a
macro.
Manish Goregaokar [Thu, 5 Apr 2018 02:15:21 +0000 (19:15 -0700)]
argh
Manish Goregaokar [Thu, 5 Apr 2018 02:14:29 +0000 (19:14 -0700)]
Merge pull request #2629 from memoryleak47/typo
typo
memoryleak47 [Thu, 5 Apr 2018 02:13:14 +0000 (04:13 +0200)]
typo
Manish Goregaokar [Thu, 5 Apr 2018 01:56:21 +0000 (18:56 -0700)]
Fix driver dogfood bug
Manish Goregaokar [Thu, 5 Apr 2018 01:00:21 +0000 (18:00 -0700)]
Bump version to 0.0.192
Manish Goregaokar [Thu, 5 Apr 2018 00:59:54 +0000 (17:59 -0700)]
Update changelog