]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoAuto merge of #3579 - matthiaskrgr:tool_lints, r=flip1995
bors [Wed, 26 Dec 2018 17:35:55 +0000 (17:35 +0000)]
Auto merge of #3579 - matthiaskrgr:tool_lints, r=flip1995

update CARGO_CLIPPY_HELP string to suggest tool lints.

5 years agoAuto merge of #3580 - matthiaskrgr:trivial_typos, r=flip1995
bors [Wed, 26 Dec 2018 17:11:47 +0000 (17:11 +0000)]
Auto merge of #3580 - matthiaskrgr:trivial_typos, r=flip1995

fix a couple of trivial typos (NFC).

5 years agoAuto merge of #3581 - euclio:camel-case, r=flip1995
bors [Wed, 26 Dec 2018 14:53:17 +0000 (14:53 +0000)]
Auto merge of #3581 - euclio:camel-case, r=flip1995

fix breakage from rust-lang/rust#57088

5 years agofix breakage from rust-lang/rust#57088
Andy Russell [Tue, 25 Dec 2018 21:11:28 +0000 (16:11 -0500)]
fix breakage from rust-lang/rust#57088

5 years agofix a couple of ftrivial typos (NFC).
Matthias Krüger [Tue, 25 Dec 2018 17:22:34 +0000 (18:22 +0100)]
fix a couple of ftrivial typos (NFC).

5 years agoupdate CARGO_CLIPPY_HELP string to suggest tool lints.
Matthias Krüger [Tue, 25 Dec 2018 16:11:57 +0000 (17:11 +0100)]
update CARGO_CLIPPY_HELP string to suggest tool lints.

5 years agoAuto merge of #3576 - matthiaskrgr:rustup, r=oli-obk
bors [Sun, 23 Dec 2018 12:30:43 +0000 (12:30 +0000)]
Auto merge of #3576 - matthiaskrgr:rustup, r=oli-obk

rustup https://github.com/rust-lang/rust/pull/56992

5 years agoFIXME > TODO
Oliver Scherer [Sun, 23 Dec 2018 12:29:37 +0000 (13:29 +0100)]
FIXME > TODO

5 years agorustup https://github.com/rust-lang/rust/pull/56992
Matthias Krüger [Sun, 23 Dec 2018 09:42:06 +0000 (10:42 +0100)]
rustup https://github.com/rust-lang/rust/pull/56992

5 years agoAuto merge of #3573 - Vlad-Shcherbina:map_clone_caveat, r=flip1995
bors [Sat, 22 Dec 2018 15:02:50 +0000 (15:02 +0000)]
Auto merge of #3573 - Vlad-Shcherbina:map_clone_caveat, r=flip1995

Document map_clone known problems #498

(cherry picked from commit ada0d2c54831a904a53ff4106e0ebb6a0f06a687)

This was lost in relicensing (057243f16b4f4233).
However, I [acknowledged](https://github.com/rust-lang/rust-clippy/issues/3099#issuecomment-416482309) relicensing so this cherry pick should be fine I guess.

5 years agoAuto merge of #3341 - HMPerson1:possibly_missing_else, r=phansch
bors [Sat, 22 Dec 2018 13:26:22 +0000 (13:26 +0000)]
Auto merge of #3341 - HMPerson1:possibly_missing_else, r=phansch

Teach `suspicious_else_formatting` about `if .. {..} {..}`

We essentially treat bare blocks `{..}` identically to `if .. {..}`, except for different lint messages.

Fixes #3044

5 years agoDocument map_clone known problems #498
Vlad-Shcherbina [Wed, 17 Jan 2018 18:40:47 +0000 (21:40 +0300)]
Document map_clone known problems #498

(cherry picked from commit ada0d2c54831a904a53ff4106e0ebb6a0f06a687)

5 years agoAuto merge of #3570 - muth:master, r=phansch
bors [Sat, 22 Dec 2018 10:23:57 +0000 (10:23 +0000)]
Auto merge of #3570 - muth:master, r=phansch

panic at map_unit_fn.rs:202 for map() without args

map_unit_fn.rs accessed map() arguments before type check which ensures type is Option or Result.

Boiled it down to a simple test case.

FWIW: Found this panic when running clippy against code which used a gtk::Window's map() fn inherited from gtk::WidgetExt   http://gtk-rs.org/docs/gtk/trait.WidgetExt.html#tymethod.map

5 years agoAuto merge of #3569 - phansch:update_contributing, r=flip1995
bors [Sat, 22 Dec 2018 09:18:39 +0000 (09:18 +0000)]
Auto merge of #3569 - phansch:update_contributing, r=flip1995

Change contrib.md hierarchy, link to it from readme

'How Clippy works' and 'How to fix nightly failures' are not exactly part
of 'Writing code'.

5 years agoRemove header link
Philipp Hansch [Sat, 22 Dec 2018 09:16:52 +0000 (10:16 +0100)]
Remove header link

5 years agotest: panic at map_unit_fn.rs:202 for map() without args
Mark Nieweglowski [Sat, 22 Dec 2018 06:06:02 +0000 (01:06 -0500)]
test: panic at map_unit_fn.rs:202 for map() without args

5 years agorm unused file map_unit_fn.stderr
Mark Nieweglowski [Sat, 22 Dec 2018 06:04:03 +0000 (01:04 -0500)]
rm unused file map_unit_fn.stderr

There is no map_unit_fn.rs whose output would be diffed with map_unit_fn.stderr

map_unit_fn.stderr was renamed 8 months ago from option_map_unit_fn.stderr
but option_map_unit_fn.{stderr,rs} both remain and are in use.

5 years agopanic at map_unit_fn.rs:202 for map() without args
Mark Nieweglowski [Sat, 22 Dec 2018 05:58:07 +0000 (00:58 -0500)]
panic at map_unit_fn.rs:202 for map() without args

5 years agoChange contrib.md hierarchy, link to it from readme
Philipp Hansch [Fri, 21 Dec 2018 07:11:06 +0000 (08:11 +0100)]
Change contrib.md hierarchy, link to it from readme

'How Clippy works' and 'How to fix nightly failures' are not exactly part
of 'Writing code'.

5 years agoWorkaround rust-lang/rust#43081
HMPerson1 [Fri, 26 Oct 2018 01:16:46 +0000 (21:16 -0400)]
Workaround rust-lang/rust#43081

5 years agoTeach `suspicious_else_formatting` about `if .. {..} {..}`
HMPerson1 [Fri, 19 Oct 2018 22:04:15 +0000 (18:04 -0400)]
Teach `suspicious_else_formatting` about `if .. {..} {..}`

5 years agoAuto merge of #3564 - alexcrichton:rustc-driver, r=phansch
bors [Thu, 20 Dec 2018 05:52:04 +0000 (05:52 +0000)]
Auto merge of #3564 - alexcrichton:rustc-driver, r=phansch

Link to `rustc_driver` crate in plugin

This is in anticipation for rust-lang/rust#56987 where the
`rustc_driver` crate being linked in will be required to link correctly
against the compiler. In the meantime it should be harmless otherwise!

5 years agoLink to `rustc_driver` crate in plugin
Alex Crichton [Wed, 19 Dec 2018 19:41:27 +0000 (11:41 -0800)]
Link to `rustc_driver` crate in plugin

This is in anticipation for rust-lang/rust#56987 where the
`rustc_driver` crate being linked in will be required to link correctly
against the compiler. In the meantime it should be harmless otherwise!

5 years agoAuto merge of #3566 - kinnison:kinnison/typofix, r=phansch
bors [Wed, 19 Dec 2018 20:54:48 +0000 (20:54 +0000)]
Auto merge of #3566 - kinnison:kinnison/typofix, r=phansch

mutex_atomic: Correct location of AtomicBool and friends

The AtomicBool, AtomicUsize, and friends, types live in the
`std::sync::atomic` module, rather than `std::atomic` as the lint
help text used to say.

5 years agomutex_atomic: Correct location of AtomicBool and friends
Daniel Silverstone [Wed, 19 Dec 2018 20:47:50 +0000 (20:47 +0000)]
mutex_atomic: Correct location of AtomicBool and friends

The AtomicBool, AtomicUsize, and friends, types live in the
`std::sync::atomic` module, rather than `std::atomic` as the lint
help text used to say.

5 years agoAuto merge of #3552 - phansch:make_integration_tests_fail_again, r=oli-obk
bors [Wed, 19 Dec 2018 14:33:51 +0000 (14:33 +0000)]
Auto merge of #3552 - phansch:make_integration_tests_fail_again, r=oli-obk

Make integration tests fail on 'E0463'

cc #3523

5 years agoAuto merge of #3546 - matthiaskrgr:fix_install, r=oli-obk
bors [Wed, 19 Dec 2018 12:54:47 +0000 (12:54 +0000)]
Auto merge of #3546 - matthiaskrgr:fix_install, r=oli-obk

Revert "Merge pull request #3257 from o01eg/remove-sysroot"

This reverts commit 041c49c1ed11b016d6ab9379643bb1da2adf5bfe, reversing
changes made to 1df5766cbb559aab0ad5c2296d8b768182b5186c.

The PR broke running a cargo-install'd clippy.
The installed clippy would not be able to find a crate for std.

Fixes #3523
Reopens #2874

5 years agoAuto merge of #3563 - mikerite:readme-syspath, r=phansch
bors [Wed, 19 Dec 2018 07:14:20 +0000 (07:14 +0000)]
Auto merge of #3563 - mikerite:readme-syspath, r=phansch

Update README local run command to specify syspath

5 years agoUpdate README local run command to specify syspath
Michael Wright [Wed, 19 Dec 2018 04:13:43 +0000 (06:13 +0200)]
Update README local run command to specify syspath

5 years agoAuto merge of #3554 - klausi:module_name_repeat, r=oli-obk
bors [Tue, 18 Dec 2018 13:28:12 +0000 (13:28 +0000)]
Auto merge of #3554 - klausi:module_name_repeat, r=oli-obk

chore(module_name_repeat): Rename stutter lint to module_name_repeat to avoid ableist language

See #3521

5 years agoAuto merge of #3556 - lucasloisp:bool-ord-comparison, r=oli-obk
bors [Tue, 18 Dec 2018 10:11:08 +0000 (10:11 +0000)]
Auto merge of #3556 - lucasloisp:bool-ord-comparison, r=oli-obk

Implements lint for order comparisons against bool (#3438)

As described on issue #3438, this change implements linting for `>` and `<` comparisons against both `boolean` literals and between expressions.

5 years agoAuto merge of #3557 - detrumi:allow_asref_adjustments, r=oli-obk
bors [Tue, 18 Dec 2018 08:37:44 +0000 (08:37 +0000)]
Auto merge of #3557 - detrumi:allow_asref_adjustments, r=oli-obk

Fix false positive in useless_asref

Fixes #3480

5 years agoDo not mark as_ref as useless if it's followed by a method call
Wilco Kusee [Mon, 17 Dec 2018 20:33:50 +0000 (21:33 +0100)]
Do not mark as_ref as useless if it's followed by a method call

5 years agoChanges lint sugg to bitwise and operator `&`
Lucas Lois [Mon, 17 Dec 2018 18:32:24 +0000 (15:32 -0300)]
Changes lint sugg to bitwise and operator `&`

5 years agoRun update_lints after renaming
flip1995 [Mon, 17 Dec 2018 13:33:05 +0000 (14:33 +0100)]
Run update_lints after renaming

5 years agoRename lint to MODULE_NAME_REPETITIONS
flip1995 [Mon, 17 Dec 2018 13:29:19 +0000 (14:29 +0100)]
Rename lint to MODULE_NAME_REPETITIONS

5 years agoAdd renaming tests
flip1995 [Mon, 17 Dec 2018 12:59:09 +0000 (13:59 +0100)]
Add renaming tests

5 years agoMove renaming to the right place
flip1995 [Mon, 17 Dec 2018 12:58:41 +0000 (13:58 +0100)]
Move renaming to the right place

5 years agoAuto merge of #3555 - daxpedda:master, r=oli-obk
bors [Mon, 17 Dec 2018 10:48:16 +0000 (10:48 +0000)]
Auto merge of #3555 - daxpedda:master, r=oli-obk

Fix `implicit_return` false positives.

Fixing some false positives on the `implicit_return` lint.

Basically it should only check for missing return statements in `block.stmts.last()` if it's a `break`, otherwise it should skip because it would either be an error, or a false positive in the case of a `loop` (which I'm trying to fix with this PR).

**Question:**
- I say "we" inside of comments ([`// make sure it's a break, otherwise we want to skip`](https://github.com/rust-lang/rust-clippy/pull/3555/files#diff-11d233fe8c8414214c2b8732b8c9877aR71)). Any alternatives or is that okay?
- I named a test [`test_loop_with_nests()`](https://github.com/rust-lang/rust-clippy/blob/6870638c3fb66c2abb20633bf40cc09ccc760047/tests/ui/implicit_return.rs#L54-L64), any better suggestions?

5 years agoImplements lint for order comparisons against bool
Lucas Lois [Fri, 7 Dec 2018 00:50:16 +0000 (21:50 -0300)]
Implements lint for order comparisons against bool

5 years agofix(module_name_repeat): Try to register renamed lint, not valid yet
Klaus Purer [Sun, 16 Dec 2018 21:49:46 +0000 (22:49 +0100)]
fix(module_name_repeat): Try to register renamed lint, not valid yet

5 years agoFix an endless loop in the tests.
daxpedda [Sun, 16 Dec 2018 21:20:05 +0000 (22:20 +0100)]
Fix an endless loop in the tests.

5 years agoFix `implicit_return` false positives.
daxpedda [Sun, 16 Dec 2018 14:42:02 +0000 (15:42 +0100)]
Fix `implicit_return` false positives.

5 years agochore(moduel_name_repeat): Rename stutter lint to module_name_repeat to avoid ableist...
Klaus Purer [Sun, 16 Dec 2018 13:10:53 +0000 (14:10 +0100)]
chore(moduel_name_repeat): Rename stutter lint to module_name_repeat to avoid ableist language

5 years agoMake integration tests fail on 'E0463'
Philipp Hansch [Fri, 14 Dec 2018 20:47:02 +0000 (21:47 +0100)]
Make integration tests fail on 'E0463'

5 years agobase tests: make sure cargo-clippy binary can be called directly
Matthias Krüger [Fri, 14 Dec 2018 20:43:40 +0000 (21:43 +0100)]
base tests: make sure cargo-clippy binary can be called directly

5 years agoRevert "Merge pull request #3257 from o01eg/remove-sysroot"
Matthias Krüger [Fri, 14 Dec 2018 09:15:56 +0000 (10:15 +0100)]
Revert "Merge pull request #3257 from o01eg/remove-sysroot"

This reverts commit 041c49c1ed11b016d6ab9379643bb1da2adf5bfe, reversing
changes made to 1df5766cbb559aab0ad5c2296d8b768182b5186c.

5 years agoAuto merge of #3545 - Kampfkarren:vec_boxed_sized, r=flip1995
bors [Fri, 14 Dec 2018 12:10:48 +0000 (12:10 +0000)]
Auto merge of #3545 - Kampfkarren:vec_boxed_sized, r=flip1995

Adds lint for Vec<Box<T: Sized>>

This adds, and subsequently closes #3530. This is the first time I've ever worked with anything remotely close to internal Rust code, so I'm very much unsure about the if_chain! to figure this out!

I can't get rustfmt working on WSL with nightly 2018-12-07:

`error: component 'rustfmt' for target 'x86_64-unknown-linux-gnu' is unavailable for download`

5 years agoAuto merge of #3549 - flip1995:rustup, r=oli-obk
bors [Fri, 14 Dec 2018 11:40:34 +0000 (11:40 +0000)]
Auto merge of #3549 - flip1995:rustup, r=oli-obk

rustup rust-lang/rust#52994

`trim_left*` and `trim_right*` are deprecated as of 1.33.0.

`s/trim_left/trim_start/`
`s/trim_right/trim_end/`

5 years agorustup rust-lang/rust#52994
flip1995 [Fri, 14 Dec 2018 11:35:44 +0000 (12:35 +0100)]
rustup rust-lang/rust#52994

s/trim_left/trim_start/

s/trim_right/trim_end/

5 years agoAuto merge of #3531 - mikerite:fix-3514, r=phansch
bors [Fri, 14 Dec 2018 08:42:09 +0000 (08:42 +0000)]
Auto merge of #3531 - mikerite:fix-3514, r=phansch

Fix write_with_newline escaping false positive

Fixes #3514

5 years agoFix test
Michael Wright [Fri, 14 Dec 2018 05:24:02 +0000 (07:24 +0200)]
Fix test

5 years agoMerge branch 'master' into fix-3514
Michael Wright [Fri, 14 Dec 2018 05:16:26 +0000 (07:16 +0200)]
Merge branch 'master' into fix-3514

5 years agoLine length fix
Kampfkarren [Thu, 13 Dec 2018 18:46:21 +0000 (10:46 -0800)]
Line length fix

5 years agoRemove references to sized for end users
Kampfkarren [Thu, 13 Dec 2018 18:15:56 +0000 (10:15 -0800)]
Remove references to sized for end users

5 years agoRemove DUMMY_SP
Kampfkarren [Thu, 13 Dec 2018 17:37:00 +0000 (09:37 -0800)]
Remove DUMMY_SP

5 years agoAdd suggestion for replacement
Kampfkarren [Thu, 13 Dec 2018 17:34:16 +0000 (09:34 -0800)]
Add suggestion for replacement

5 years agoUpdate lint definitions
Kampfkarren [Thu, 13 Dec 2018 17:14:01 +0000 (09:14 -0800)]
Update lint definitions

5 years agoLint for Vec<Box<T: Sized>> - Closes #3530
Kampfkarren [Thu, 13 Dec 2018 15:43:13 +0000 (07:43 -0800)]
Lint for Vec<Box<T: Sized>> - Closes #3530

5 years agoAuto merge of #3535 - sinkuu:fixes, r=phansch
bors [Wed, 12 Dec 2018 19:17:09 +0000 (19:17 +0000)]
Auto merge of #3535 - sinkuu:fixes, r=phansch

Fix some problems

Fixes #2892, #3199, #2841, #3476

5 years agoAuto merge of #3510 - phansch:fix_doc_markdown_mixed_case, r=flip1995
bors [Wed, 12 Dec 2018 18:36:38 +0000 (18:36 +0000)]
Auto merge of #3510 - phansch:fix_doc_markdown_mixed_case, r=flip1995

Fix doc_markdown mixed case false positive

Fixes #2343

5 years agoFix doc_markdown mixed case false positive
Philipp Hansch [Fri, 7 Dec 2018 21:38:45 +0000 (22:38 +0100)]
Fix doc_markdown mixed case false positive

5 years agoAuto merge of #3450 - phansch:structured_sugg_for_explicit_write, r=flip1995
bors [Wed, 12 Dec 2018 18:11:13 +0000 (18:11 +0000)]
Auto merge of #3450 - phansch:structured_sugg_for_explicit_write, r=flip1995

Add suggestion for explicit_write lint

Closes #2083

5 years agoAuto merge of #3544 - flip1995:rollup, r=flip1995
bors [Wed, 12 Dec 2018 17:45:55 +0000 (17:45 +0000)]
Auto merge of #3544 - flip1995:rollup, r=flip1995

Rollup of 3 pull requests

Successful merges:

 - #3509 (Fix doc_markdown off by one issue)
 - #3539 (Fix rvm/gpg bug in travis osx build)
 - #3540 (rustup https://github.com/rust-lang/rust/pull/56092)

Failed merges:

r? @ghost

5 years agoRollup merge of #3540 - matthiaskrgr:rustup, r=flip1995
Philipp Krones [Wed, 12 Dec 2018 17:17:01 +0000 (18:17 +0100)]
Rollup merge of #3540 - matthiaskrgr:rustup, r=flip1995

rustup https://github.com/rust-lang/rust/pull/56092

fix ui test cast_alignment failure by adding #![feature(rustc_private)]

5 years agoRollup merge of #3539 - flip1995:travis_osx_fix, r=oli-obk
Philipp Krones [Wed, 12 Dec 2018 17:17:00 +0000 (18:17 +0100)]
Rollup merge of #3539 - flip1995:travis_osx_fix, r=oli-obk

Fix rvm/gpg bug in travis osx build

Apparently this workaround isn't needed anymore ([travis](https://travis-ci.org/flip1995/rust-clippy/jobs/467027571)) and fixes the latest osx failures: [travis](https://travis-ci.org/rust-lang/rust-clippy/jobs/467013498#L152)

5 years agoRollup merge of #3509 - phansch:fix_doc_markdown_bugs, r=flip1995
Philipp Krones [Wed, 12 Dec 2018 17:16:59 +0000 (18:16 +0100)]
Rollup merge of #3509 - phansch:fix_doc_markdown_bugs, r=flip1995

Fix doc_markdown off by one issue

Fixes #2210

5 years agorustup https://github.com/rust-lang/rust/pull/56092
Matthias Krüger [Wed, 12 Dec 2018 16:17:01 +0000 (17:17 +0100)]
rustup https://github.com/rust-lang/rust/pull/56092

fix ui test cast_alignment failure by adding #![feature(rustc_private)]

5 years agoFix rvm/gpg bug in travis osx build
flip1995 [Wed, 12 Dec 2018 14:37:31 +0000 (15:37 +0100)]
Fix rvm/gpg bug in travis osx build

5 years agoAuto merge of #3537 - matthiaskrgr:fix_script_2, r=matthiaskrgr
bors [Wed, 12 Dec 2018 09:56:38 +0000 (09:56 +0000)]
Auto merge of #3537 - matthiaskrgr:fix_script_2, r=matthiaskrgr

base-tests: don't print all commands to stdout during the loop

Fixes thinko in #3529

5 years agobase-tests: don't print all commands to stdout during the loop
Matthias Krüger [Wed, 12 Dec 2018 09:27:13 +0000 (10:27 +0100)]
base-tests: don't print all commands to stdout during the loop

5 years agoquestion_mark: Suggest Some(opt?) for if-else
Shotaro Yamada [Wed, 12 Dec 2018 08:46:52 +0000 (17:46 +0900)]
question_mark: Suggest Some(opt?) for if-else

5 years agoredundant_field_names: Do not trigger on path with type params
Shotaro Yamada [Tue, 11 Dec 2018 14:33:23 +0000 (23:33 +0900)]
redundant_field_names: Do not trigger on path with type params

Fixes #3476

5 years agoquestion_mark: Lint only early returns
Shotaro Yamada [Tue, 11 Dec 2018 14:21:25 +0000 (23:21 +0900)]
question_mark: Lint only early returns

5 years agoquestion_mark: Fix applicability
Shotaro Yamada [Tue, 11 Dec 2018 14:05:43 +0000 (23:05 +0900)]
question_mark: Fix applicability

5 years agoAuto merge of #3536 - matthiaskrgr:fix_script, r=oli-obk
bors [Wed, 12 Dec 2018 08:27:12 +0000 (08:27 +0000)]
Auto merge of #3536 - matthiaskrgr:fix_script, r=oli-obk

fix typo in script

5 years agofix typo in script
Matthias Krüger [Wed, 12 Dec 2018 08:17:43 +0000 (09:17 +0100)]
fix typo in script

5 years agoFix doc_markdown off by one issue
Philipp Hansch [Fri, 7 Dec 2018 10:48:06 +0000 (11:48 +0100)]
Fix doc_markdown off by one issue

5 years agoRemove obsolete comment
Shotaro Yamada [Tue, 11 Dec 2018 08:31:22 +0000 (17:31 +0900)]
Remove obsolete comment

5 years agonew_without_default, partialeq_ne_impl: Use span_lint_node
Shotaro Yamada [Tue, 11 Dec 2018 06:06:41 +0000 (15:06 +0900)]
new_without_default, partialeq_ne_impl: Use span_lint_node

Fixes #2892, fixes #3199

5 years agoAuto merge of #3533 - phansch:add_to_doc_valid_idents, r=phansch
bors [Wed, 12 Dec 2018 06:46:21 +0000 (06:46 +0000)]
Auto merge of #3533 - phansch:add_to_doc_valid_idents, r=phansch

Add 'CamelCase' to doc_valid_idents

Fixes #2395

5 years agoUpdate .stderr after rebase
Philipp Hansch [Wed, 12 Dec 2018 06:33:23 +0000 (07:33 +0100)]
Update .stderr after rebase

5 years agocargo fmt and remove stabilized feature
Philipp Hansch [Fri, 30 Nov 2018 06:25:55 +0000 (07:25 +0100)]
cargo fmt and remove stabilized feature

5 years agoMake suggestion Applicability::MachineApplicable
Philipp Hansch [Thu, 29 Nov 2018 21:17:40 +0000 (22:17 +0100)]
Make suggestion Applicability::MachineApplicable

5 years agoAddress review feedback
Philipp Hansch [Thu, 29 Nov 2018 07:15:44 +0000 (08:15 +0100)]
Address review feedback

* Fix typo
* Handle None value instead of using `unwrap()`
* `pop()` instead of `x.truncate(x.len() - 1)`

5 years agoExtract method
Philipp Hansch [Sat, 24 Nov 2018 11:17:43 +0000 (12:17 +0100)]
Extract method

5 years agoCheck array lengths to prevent OOB access
Philipp Hansch [Fri, 23 Nov 2018 20:29:27 +0000 (21:29 +0100)]
Check array lengths to prevent OOB access

5 years agoAdd suggestion for explicit_write lint
Philipp Hansch [Fri, 23 Nov 2018 07:18:23 +0000 (08:18 +0100)]
Add suggestion for explicit_write lint

5 years agoAuto merge of #3529 - matthiaskrgr:rustfmt_tests, r=phansch
bors [Wed, 12 Dec 2018 05:57:31 +0000 (05:57 +0000)]
Auto merge of #3529 - matthiaskrgr:rustfmt_tests, r=phansch

rustfmt tests

also fails CI if tests turn out to not be formatted properly.

5 years agotest reformatting: revert more questionable changes done by rustfmt and add #[rustfmt...
Matthias Krüger [Tue, 11 Dec 2018 19:50:55 +0000 (20:50 +0100)]
test reformatting: revert more questionable changes done by rustfmt and add #[rustfmt::skip]

5 years agoAdd 'CamelCase' to doc_valid_idents
Philipp Hansch [Tue, 11 Dec 2018 18:37:43 +0000 (19:37 +0100)]
Add 'CamelCase' to doc_valid_idents

5 years agoAuto merge of #3532 - maxencefrenette:fix-contributing-md, r=oli-obk
bors [Tue, 11 Dec 2018 11:55:59 +0000 (11:55 +0000)]
Auto merge of #3532 - maxencefrenette:fix-contributing-md, r=oli-obk

Remove dead link in CONTRIBUTING.md

I don't think there was an issue for this, but this is just removing a dead link in CONTRIBUTING.md. The _Linting Clippy with your local changes_ section seems to have been removed without updating the table of contents.

I'm not sure if I should have opened an issue, but it seemed like a trivial fix to me.

5 years agoRemove dead link in CONTRIBUTING.md
Maxence Frenette [Tue, 11 Dec 2018 10:10:41 +0000 (05:10 -0500)]
Remove dead link in CONTRIBUTING.md

5 years agoAuto merge of #3527 - phansch:update_readme2, r=matthiaskrgr
bors [Tue, 11 Dec 2018 06:55:48 +0000 (06:55 +0000)]
Auto merge of #3527 - phansch:update_readme2, r=matthiaskrgr

readme: tool lints are stable now

None

5 years agoFix write_with_newline escaping false positive
Michael Wright [Tue, 11 Dec 2018 06:28:25 +0000 (08:28 +0200)]
Fix write_with_newline escaping false positive

Fixes #3514

5 years agoMerge branch 'master' into rustfmt_tests
Matthias Krüger [Tue, 11 Dec 2018 00:41:59 +0000 (01:41 +0100)]
Merge branch 'master' into rustfmt_tests

5 years agotests: fix more cases where rustfmt would have hurt the tests
Matthias Krüger [Tue, 11 Dec 2018 00:31:04 +0000 (01:31 +0100)]
tests: fix more cases where rustfmt would have hurt the tests

5 years agotests: revert some changs and add further rustfmt::skip attributes.
Matthias Krüger [Mon, 10 Dec 2018 23:59:59 +0000 (00:59 +0100)]
tests: revert some changs and add further rustfmt::skip attributes.

5 years agos/clippy/Clippy in readme
Philipp Hansch [Mon, 10 Dec 2018 21:30:16 +0000 (22:30 +0100)]
s/clippy/Clippy in readme

5 years agoAlso add note about using -W clippy::lint_group
Philipp Hansch [Mon, 10 Dec 2018 21:22:57 +0000 (22:22 +0100)]
Also add note about using -W clippy::lint_group