]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoAuto merge of #4403 - xd009642:type_repetition_improvements, r=phansch,flip1995
bors [Sun, 18 Aug 2019 21:03:21 +0000 (21:03 +0000)]
Auto merge of #4403 - xd009642:type_repetition_improvements, r=phansch,flip1995

Improvements to `type_repetition_in_bounds`

Improvements to the `type_repetition_in_bounds` trait based on feedback from #4380 #4326 #4323

Currently just make it pedantic. Hopefully, more to come

changelog: move `type_repetition_in_bounds` to `pedantic`

4 years agoAuto merge of #4404 - BO41:patch-1, r=flip1995
bors [Sun, 18 Aug 2019 20:34:25 +0000 (20:34 +0000)]
Auto merge of #4404 - BO41:patch-1, r=flip1995

Add "could be written as" example to MANUAL_MEMCPY

<!--
Thank you for making Clippy better!

We're collecting our changelog from pull request descriptions.
If your PR only updates to the latest nightly, you can leave the
`changelog` entry as `none`. Otherwise, please write a short comment
explaining your change.

If your PR fixes an issue, you can add "fixes #issue_number" into this
PR description. This way the issue will be automatically closed when
your PR is merged.

If you added a new lint, here's a checklist for things that will be
checked during review or continuous integration.

- [ ] Followed [lint naming conventions][lint_naming]
- [ ] Added passing UI tests (including committed `.stderr` file)
- [ ] `cargo test` passes locally
- [ ] Executed `./util/dev update_lints`
- [ ] Added lint documentation
- [ ] Run `./util/dev fmt`

[lint_naming]: https://rust-lang.github.io/rfcs/0344-conventions-galore.html#lints

Note that you can skip the above if you are just opening a WIP PR in
order to get feedback.

Delete this line and everything above before opening your PR -->

changelog: none

4 years agoRun update_lints
xd009642 [Sun, 18 Aug 2019 15:59:31 +0000 (16:59 +0100)]
Run update_lints

4 years agoAuto merge of #4394 - jeremystucki:suspicious_map, r=flip1995
bors [Sun, 18 Aug 2019 15:53:53 +0000 (15:53 +0000)]
Auto merge of #4394 - jeremystucki:suspicious_map, r=flip1995

Implement "suspicious_map" lint

Resolves #4010

changelog: New lint `suspicious_map`.

4 years agoChange lint type to 'complexity'
Jeremy Stucki [Sun, 18 Aug 2019 14:49:11 +0000 (16:49 +0200)]
Change lint type to 'complexity'

4 years agoMerge branch 'origin/master' into suspicious_map
Jeremy Stucki [Sun, 18 Aug 2019 14:37:31 +0000 (16:37 +0200)]
Merge branch 'origin/master' into suspicious_map

4 years agoAuto merge of #4407 - mikerite:fix-breakage-20190818, r=flip1995
bors [Sun, 18 Aug 2019 12:52:35 +0000 (12:52 +0000)]
Auto merge of #4407 - mikerite:fix-breakage-20190818, r=flip1995

Fix breakage due to  rust-lang/rust#61708

Includes commits from #4406

changelog: none

4 years agoFix breakage due to rust-lang/rust#61708
Michael Wright [Sun, 18 Aug 2019 11:14:47 +0000 (13:14 +0200)]
Fix breakage due to rust-lang/rust#61708

4 years agoFix assertions_on_constants lint
Lzu Tao [Sat, 17 Aug 2019 18:46:44 +0000 (01:46 +0700)]
Fix assertions_on_constants lint

4 years agoMake code cleaner and more readable
Lzu Tao [Sat, 17 Aug 2019 18:46:44 +0000 (01:46 +0700)]
Make code cleaner and more readable

4 years agoAdd "could be written as" example to MANUAL_MEMCPY
BO41 [Sat, 17 Aug 2019 13:09:03 +0000 (13:09 +0000)]
Add "could be written as" example to MANUAL_MEMCPY

4 years agoMade lint pedantic
xd009642 [Sat, 17 Aug 2019 10:45:05 +0000 (11:45 +0100)]
Made lint pedantic

4 years agoAuto merge of #4397 - kraai:remove-a, r=flip1995
bors [Fri, 16 Aug 2019 20:04:39 +0000 (20:04 +0000)]
Auto merge of #4397 - kraai:remove-a, r=flip1995

Remove "a" from single_match_else description

changelog: none

4 years agoAuto merge of #4392 - phansch:cleanups, r=flip1995
bors [Fri, 16 Aug 2019 19:34:11 +0000 (19:34 +0000)]
Auto merge of #4392 - phansch:cleanups, r=flip1995

Remove unused dev scripts/files

781794d4: Remove util/update_lints.py

 * This has been deprecated for ~10 months, so I think it's fine to remove now.

90a42937: Remove publishing things

 * Clippy is no longer published via crates.io, so these docs and the script
   are not needed anymore.

changelog: none

4 years agoAuto merge of #4398 - kraai:outer_expn_data, r=flip1995
bors [Fri, 16 Aug 2019 17:09:28 +0000 (17:09 +0000)]
Auto merge of #4398 - kraai:outer_expn_data, r=flip1995

Use outer_expn_data instead of outer_expn_info

`outer_expn_info` has been removed, so use its replacement, `outer_expn_data`, instead.

changelog: none

4 years agoRun rustfmt
flip1995 [Fri, 16 Aug 2019 17:05:44 +0000 (19:05 +0200)]
Run rustfmt

4 years agoUse outer_expn_data instead of outer_expn_info
KRAAI, MATTHEW [VISUS] [Fri, 16 Aug 2019 16:29:30 +0000 (09:29 -0700)]
Use outer_expn_data instead of outer_expn_info

4 years agoRemove "a" from single_match_else description
KRAAI, MATTHEW [VISUS] [Fri, 16 Aug 2019 12:41:35 +0000 (05:41 -0700)]
Remove "a" from single_match_else description

4 years agoAuto merge of #4395 - lzutao:rustup-63586, r=phansch
bors [Fri, 16 Aug 2019 04:49:53 +0000 (04:49 +0000)]
Auto merge of #4395 - lzutao:rustup-63586, r=phansch

Rustup "Remove `Spanned` from `{ast,hir}::FieldPat`"

Rustup https://github.com/rust-lang/rust/pull/63586

changelog: none

4 years agoRustup "Remove `Spanned` from `{ast,hir}::FieldPat`"
Lzu Tao [Fri, 16 Aug 2019 02:30:38 +0000 (09:30 +0700)]
Rustup "Remove `Spanned` from `{ast,hir}::FieldPat`"

4 years agoAdd ui test
Jeremy Stucki [Thu, 15 Aug 2019 20:56:27 +0000 (22:56 +0200)]
Add ui test

4 years agoImplement lint 'suspicious_map'
Jeremy Stucki [Thu, 15 Aug 2019 20:56:16 +0000 (22:56 +0200)]
Implement lint 'suspicious_map'

4 years agoRemove util/update_lints.py
Philipp Hansch [Thu, 15 Aug 2019 15:43:30 +0000 (17:43 +0200)]
Remove util/update_lints.py

This has been deprecated for ~10 months, so I think it's fine to remove now.

4 years agoRemove publishing things
Philipp Hansch [Thu, 15 Aug 2019 15:42:05 +0000 (17:42 +0200)]
Remove publishing things

Clippy is no longer published via crates.io, so these docs and the
script are not needed anymore.

4 years agoAuto merge of #4391 - flip1995:toml_ver, r=phansch
bors [Thu, 15 Aug 2019 14:09:48 +0000 (14:09 +0000)]
Auto merge of #4391 - flip1995:toml_ver, r=phansch

Also specify patch version of toml crate

cc rust-lang/rust#63587

The patch update of the toml crate to version 0.5.3 recently broke some tests: #4378. For rustc, we have to define the complete version though.

changelog: none

4 years agoAlso specify patch version of toml crate
flip1995 [Thu, 15 Aug 2019 13:58:36 +0000 (15:58 +0200)]
Also specify patch version of toml crate

4 years agoAuto merge of #4382 - jeremystucki:unnecessary_fold_span, r=flip1995
bors [Thu, 15 Aug 2019 12:57:51 +0000 (12:57 +0000)]
Auto merge of #4382 - jeremystucki:unnecessary_fold_span, r=flip1995

Change span of unnecessary_fold lint

Resolves #4381

changelog: Change linted span of `unnecessary_fold`

4 years agoAuto merge of #4348 - phansch:deprecate-unused-unused-collect, r=flip1995
bors [Thu, 15 Aug 2019 10:47:20 +0000 (10:47 +0000)]
Auto merge of #4348 - phansch:deprecate-unused-unused-collect, r=flip1995

Deprecate unused_collect lint

I found this because we only had two test cases in total for this lint.
It turns out the functionality is fully covered by rustc these days.

[Playground Examples](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=eb8ee6db389c77180c9fb152d3c608f4)

changelog: Deprecate `unused_collect` lint. This is fully covered by rustc's `#[must_use]` on `collect`

cc #2846

4 years agoAuto merge of #4389 - flip1995:allow_win_failures, r=phansch
bors [Thu, 15 Aug 2019 10:04:56 +0000 (10:04 +0000)]
Auto merge of #4389 - flip1995:allow_win_failures, r=phansch

Allow windows failures on travis

The windows build breaks about every second travis run. Let's disable it, until we got a fix.

changelog: none

4 years agoAllow failures on the travis windows build again
flip1995 [Thu, 15 Aug 2019 08:41:57 +0000 (10:41 +0200)]
Allow failures on the travis windows build again

4 years agoAuto merge of #4388 - flip1995:rustup, r=phansch
bors [Thu, 15 Aug 2019 09:13:51 +0000 (09:13 +0000)]
Auto merge of #4388 - flip1995:rustup, r=phansch

Rustup

Supersedes #4387 and #4385

This removes tests with the `try!` macro in them completely. There is no need for Clippy to support the `try!` macro, since it is deprecated now.

[`StmtKind`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc/hir/enum.StmtKind.html) got a new variant [`Semi`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc/hir/enum.StmtKind.html#variant.Semi), which Just Works with the `author` lint. Nice.

changelog: none

4 years agoRustup to rust-lang/rust#62984
flip1995 [Thu, 15 Aug 2019 08:13:52 +0000 (10:13 +0200)]
Rustup to rust-lang/rust#62984

Lint redundant_semicolon was added to rustc

4 years agoRustup to rust-lang/rust#62672
flip1995 [Thu, 15 Aug 2019 08:04:47 +0000 (10:04 +0200)]
Rustup to rust-lang/rust#62672

try macro is deprecated now, so Clippy will drop the support for it also

4 years agoRustup to rust-lang/rust#63543
flip1995 [Thu, 15 Aug 2019 07:59:08 +0000 (09:59 +0200)]
Rustup to rust-lang/rust#63543

4 years agoDeprecate unused_collect lint
Philipp Hansch [Wed, 7 Aug 2019 05:37:13 +0000 (07:37 +0200)]
Deprecate unused_collect lint

I found this because we only had two test cases in total for this lint.
It turns out the functionality is fully covered by rustc these days.

[Playground Examples](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=eb8ee6db389c77180c9fb152d3c608f4)

changelog: Deprecate `unused_collect` lint. This is fully covered by
rustc's `#[must_use]` on `collect`

cc #2846

4 years agoAuto merge of #4383 - phansch:update_changelog, r=Manishearth
bors [Wed, 14 Aug 2019 19:26:19 +0000 (19:26 +0000)]
Auto merge of #4383 - phansch:update_changelog, r=Manishearth

Update changelog for Rust 1.37

Also updates the rest of the changelog wrt. to the latest releases and commit hashes.

changelog: none

[Rendered](https://github.com/phansch/rust-clippy/blob/update_changelog/CHANGELOG.md#rust-137)

4 years agoFix links to lints in changelog
Philipp Hansch [Wed, 14 Aug 2019 18:39:01 +0000 (20:39 +0200)]
Fix links to lints in changelog

4 years agoRemove unused import
Jeremy Stucki [Wed, 14 Aug 2019 18:24:05 +0000 (20:24 +0200)]
Remove unused import

4 years agoUpdate changelog for Rust 1.37
Philipp Hansch [Wed, 14 Aug 2019 18:20:51 +0000 (20:20 +0200)]
Update changelog for Rust 1.37

Also updates the rest of the changelog wrt. to the latest releases.

4 years agoUpdate tests
Jeremy Stucki [Wed, 14 Aug 2019 17:35:17 +0000 (19:35 +0200)]
Update tests

4 years agoUse different span
Jeremy Stucki [Wed, 14 Aug 2019 17:35:06 +0000 (19:35 +0200)]
Use different span

4 years agoAdd multiline test
Jeremy Stucki [Wed, 14 Aug 2019 17:34:50 +0000 (19:34 +0200)]
Add multiline test

4 years agoAuto merge of #4379 - matthiaskrgr:url_dep, r=phansch
bors [Wed, 14 Aug 2019 13:07:19 +0000 (13:07 +0000)]
Auto merge of #4379 - matthiaskrgr:url_dep, r=phansch

update url dependency from 1.7.0 to 2.1.0

changelog: none

4 years agoAuto merge of #4363 - phansch:fix_lint_deprecation, r=flip1995
bors [Wed, 14 Aug 2019 11:37:10 +0000 (11:37 +0000)]
Auto merge of #4363 - phansch:fix_lint_deprecation, r=flip1995

Update lint deprecation for tool lints

changelog: Allow tool lints (`clippy::*`) to be deprecated

Our lint deprecation previously didn't work for tool lints, because
`register_removed` was registering lints to be removed _without_ the
`clippy` prefix.

Fixes #4349

4 years agoupdate url dependency from 1.7.0 to 2.1.0
Matthias Krüger [Wed, 14 Aug 2019 11:04:17 +0000 (13:04 +0200)]
update url dependency from 1.7.0 to 2.1.0

4 years agoAuto merge of #4369 - mikerite:fix-4293, r=flip1995
bors [Wed, 14 Aug 2019 10:59:36 +0000 (10:59 +0000)]
Auto merge of #4369 - mikerite:fix-4293, r=flip1995

 Fix `wrong_self_convention` issue

Resolves #4293

changelog: Fix `wrong_self_convention` issue

4 years agoAuto merge of #4231 - jeremystucki:flat-map, r=flip1995
bors [Wed, 14 Aug 2019 09:36:16 +0000 (09:36 +0000)]
Auto merge of #4231 - jeremystucki:flat-map, r=flip1995

Implement flat_map lint

Fixes #4224

changelog: New Lint `flat_map_identity` to detect unnecessary calls to `flat_map`

4 years agoAuto merge of #4378 - flip1995:ui-toml, r=flip1995
bors [Wed, 14 Aug 2019 08:54:07 +0000 (08:54 +0000)]
Auto merge of #4378 - flip1995:ui-toml, r=flip1995

Update ui-toml tests

changelog: none

4 years agoUpdate ui-toml tests
flip1995 [Wed, 14 Aug 2019 07:58:00 +0000 (09:58 +0200)]
Update ui-toml tests

4 years agoMerge branch 'origin/master' into flat-map
Jeremy Stucki [Wed, 14 Aug 2019 05:36:37 +0000 (07:36 +0200)]
Merge branch 'origin/master' into flat-map

4 years agoUpdate test
Jeremy Stucki [Tue, 13 Aug 2019 19:50:52 +0000 (21:50 +0200)]
Update test

4 years agoUse correct span
Jeremy Stucki [Tue, 13 Aug 2019 19:50:42 +0000 (21:50 +0200)]
Use correct span

4 years agoAdd 'unnecessary_flat_map.fixed'
Jeremy Stucki [Tue, 13 Aug 2019 06:02:59 +0000 (08:02 +0200)]
Add 'unnecessary_flat_map.fixed'

4 years agoRun 'update_lints'
Jeremy Stucki [Mon, 12 Aug 2019 19:47:12 +0000 (21:47 +0200)]
Run 'update_lints'

4 years agoUse 'span_lint_and_sugg'
Jeremy Stucki [Mon, 12 Aug 2019 19:42:57 +0000 (21:42 +0200)]
Use 'span_lint_and_sugg'

4 years agoMinor refactoring
Jeremy Stucki [Mon, 12 Aug 2019 18:35:50 +0000 (20:35 +0200)]
Minor refactoring

4 years agoAdd deprecation tests for deprecated tool lints
Philipp Hansch [Mon, 12 Aug 2019 17:30:06 +0000 (19:30 +0200)]
Add deprecation tests for deprecated tool lints

4 years agoMove old lint deprecation tests to deprecated_old.rs
Philipp Hansch [Mon, 12 Aug 2019 17:26:16 +0000 (19:26 +0200)]
Move old lint deprecation tests to deprecated_old.rs

4 years agoFix invalid_ref deprecation
Philipp Hansch [Mon, 12 Aug 2019 05:27:01 +0000 (07:27 +0200)]
Fix invalid_ref deprecation

4 years agoKeep old deprecated lints deprecated as non-tool, too
Philipp Hansch [Mon, 12 Aug 2019 05:28:07 +0000 (07:28 +0200)]
Keep old deprecated lints deprecated as non-tool, too

4 years agoUpdate lint deprecation for tool lints
Philipp Hansch [Fri, 9 Aug 2019 05:50:25 +0000 (07:50 +0200)]
Update lint deprecation for tool lints

Our lint deprecation previously didn't work for tool lints, because
`register_removed` was registering lints to be removed _without_ the
`clippy` prefix.

4 years agoAuto merge of #4373 - flip1995:filter_changelog_none, r=phansch
bors [Mon, 12 Aug 2019 11:05:49 +0000 (11:05 +0000)]
Auto merge of #4373 - flip1995:filter_changelog_none, r=phansch

Filter out PRs with changelog: none

cc #4372

Filtering out the `changelog: none` merge commits, to unclutter the output.

changelog: none

4 years agoChange lint type from 'pedantic' → 'complexity'
Jeremy Stucki [Mon, 12 Aug 2019 08:52:09 +0000 (10:52 +0200)]
Change lint type from 'pedantic' → 'complexity'

4 years agoFilter out PRs with changelog: none
flip1995 [Mon, 12 Aug 2019 07:38:52 +0000 (09:38 +0200)]
Filter out PRs with changelog: none

4 years agoRun 'update_lints'
Jeremy Stucki [Mon, 12 Aug 2019 05:53:22 +0000 (07:53 +0200)]
Run 'update_lints'

4 years agoAuto merge of #4365 - lukas-code:async_new_ret_no_self, r=flip1995
bors [Mon, 12 Aug 2019 05:15:16 +0000 (05:15 +0000)]
Auto merge of #4365 - lukas-code:async_new_ret_no_self, r=flip1995

new_ret_no_self: allow Self in inner type for impl Trait return types

Check the inner types of associated types of a trait when checking for Self in the return type of a `new` method. This means that the following will no longer warn:
```rust
trait Trait {
    type Inner;
}

struct S;

impl S {
    fn new() -> impl Trait<Inner = Option<Self>> {
        struct TraitImpl;

        impl Trait for TraitImpl {
            type Inner = Option<S>;
        }

        TraitImpl
    }
}
```
```rust
#![feature(async_await)]

struct Connection;

impl Connection {
    async fn new() -> Result<Self, ()> {
        Ok(S)
    }
}
```
closes #4359

changelog: fix `new_ret_no_self` lint for async `new` functions.

4 years agoAuto merge of #4367 - flip1995:doc_edition_2018_tests, r=phansch
bors [Mon, 12 Aug 2019 04:38:50 +0000 (04:38 +0000)]
Auto merge of #4367 - flip1995:doc_edition_2018_tests, r=phansch

Document how to write tests requiring the 2018 edition

[Rendered](https://github.com/flip1995/rust-clippy/blob/doc_edition_2018_tests/doc/adding_lints.md#Edition-2018-tests)

cc #4365

changelog: none

4 years agoUpdate rustdoc
Jeremy Stucki [Sun, 11 Aug 2019 20:18:58 +0000 (22:18 +0200)]
Update rustdoc

4 years agoRefactor if_chain
Jeremy Stucki [Sun, 11 Aug 2019 19:02:01 +0000 (21:02 +0200)]
Refactor if_chain

Co-authored-by: Philipp Krones <hello@philkrones.com>
4 years agoAuto merge of #4370 - vallentin:master, r=flip1995
bors [Sun, 11 Aug 2019 18:42:16 +0000 (18:42 +0000)]
Auto merge of #4370 - vallentin:master, r=flip1995

Fixed repeated word

changelog: none

4 years agoRename 'flat_map' → 'flat_map_identity'
Jeremy Stucki [Sun, 11 Aug 2019 18:34:25 +0000 (20:34 +0200)]
Rename 'flat_map' → 'flat_map_identity'

4 years agoHandle calls with 'std::convert::identity'
Jeremy Stucki [Sun, 11 Aug 2019 17:51:43 +0000 (19:51 +0200)]
Handle calls with 'std::convert::identity'

4 years agoMerge branch 'origin/master' into flat-map
Jeremy Stucki [Sun, 11 Aug 2019 17:22:40 +0000 (19:22 +0200)]
Merge branch 'origin/master' into flat-map

4 years agoFixed repeated word
Vallentin [Sun, 11 Aug 2019 10:56:30 +0000 (12:56 +0200)]
Fixed repeated word

4 years agoAuto merge of #4368 - RalfJung:invalid_ref, r=oli-obk
bors [Sun, 11 Aug 2019 09:08:22 +0000 (09:08 +0000)]
Auto merge of #4368 - RalfJung:invalid_ref, r=oli-obk

deprecate invalid_ref lint

This fixes the `invalid_ref` lint test to no longer fail when https://github.com/rust-lang/rust/pull/63346/ lands.  I also fixed the lint itself, because its wording made no sense: there is no "reference to zeroed/uninitialized memory" here.

changelog: none

4 years agoupdate_lints
Ralf Jung [Sun, 11 Aug 2019 09:02:25 +0000 (11:02 +0200)]
update_lints

4 years agodeprecate invalid_ref lint
Ralf Jung [Sun, 11 Aug 2019 07:30:20 +0000 (09:30 +0200)]
deprecate invalid_ref lint

4 years agoFix `wrong_self_convention` issue
Michael Wright [Sat, 10 Aug 2019 04:01:15 +0000 (06:01 +0200)]
Fix `wrong_self_convention` issue

Resolves #4293

4 years agoSimplify `wrong_self_convention` code
Michael Wright [Sat, 10 Aug 2019 04:00:27 +0000 (06:00 +0200)]
Simplify `wrong_self_convention` code

Use actual types instead of hir types.

4 years agoRename implitem to impl_item
Michael Wright [Sat, 10 Aug 2019 03:58:52 +0000 (05:58 +0200)]
Rename implitem to impl_item

`impl_item` is proper snake case and used everywhere else.

4 years agofixed tests (again) and added a test that should actually cause a warning for new_ret...
Lukas Markeffsky [Fri, 9 Aug 2019 21:15:49 +0000 (23:15 +0200)]
fixed tests (again) and added a test that should actually cause a warning for new_ret_no_self

4 years agoremoved unused imports #2
Lukas Markeffsky [Fri, 9 Aug 2019 17:47:25 +0000 (19:47 +0200)]
removed unused imports #2

4 years agoremoved unused imports
Lukas Markeffsky [Fri, 9 Aug 2019 17:44:20 +0000 (19:44 +0200)]
removed unused imports

4 years agoupgrade test to rust 2018
Lukas Markeffsky [Fri, 9 Aug 2019 17:19:49 +0000 (19:19 +0200)]
upgrade test to rust 2018

4 years agoDocument how to write tests requiring the 2018 edition
flip1995 [Fri, 9 Aug 2019 17:14:59 +0000 (19:14 +0200)]
Document how to write tests requiring the 2018 edition

4 years agonew_ret_no_self: walk associated types in impl Trait return types
Lukas Markeffsky [Fri, 9 Aug 2019 15:44:05 +0000 (17:44 +0200)]
new_ret_no_self: walk associated types in impl Trait return types

4 years agoAuto merge of #4362 - lzutao:expect-on-cstring_as_ptr, r=flip1995
bors [Fri, 9 Aug 2019 09:22:02 +0000 (09:22 +0000)]
Auto merge of #4362 - lzutao:expect-on-cstring_as_ptr, r=flip1995

Fix lint_cstring_as_ptr for expect

Closes #4312
changelog: none

4 years agoAuto merge of #4361 - lzutao:fix-raw-string-on-single_char_pattern, r=phansch
bors [Fri, 9 Aug 2019 07:58:39 +0000 (07:58 +0000)]
Auto merge of #4361 - lzutao:fix-raw-string-on-single_char_pattern, r=phansch

Fix lint_single_char_pattern on raw string literal

Closes #4356
changelog: Handle raw string literal on `single_char_literal` lint.

4 years agoAdd more tests for raw string literal
Lzu Tao [Fri, 9 Aug 2019 03:45:49 +0000 (10:45 +0700)]
Add more tests for raw string literal

4 years agoAuto merge of #4360 - atouchet:patch-1, r=phansch
bors [Fri, 9 Aug 2019 06:07:00 +0000 (06:07 +0000)]
Auto merge of #4360 - atouchet:patch-1, r=phansch

Fix HTTPS in links

I accidentally missed these in my previous PR.

changelog: none

4 years agoFix lint_cstring_as_ptr for expect
Lzu Tao [Fri, 9 Aug 2019 05:33:07 +0000 (12:33 +0700)]
Fix lint_cstring_as_ptr for expect

4 years agoFix lint_single_char_pattern on raw string literal
Lzu Tao [Fri, 9 Aug 2019 03:45:49 +0000 (10:45 +0700)]
Fix lint_single_char_pattern on raw string literal

4 years agoFix HTTPS in links
Alex Touchet [Fri, 9 Aug 2019 02:59:22 +0000 (19:59 -0700)]
Fix HTTPS in links

4 years agoAuto merge of #4358 - lzutao:cleanup_implicit_return, r=flip1995
bors [Thu, 8 Aug 2019 16:36:44 +0000 (16:36 +0000)]
Auto merge of #4358 - lzutao:cleanup_implicit_return, r=flip1995

Use source_callsite() instead of recursive outer_expn_info()

changelog: none

4 years agoAuto merge of #4357 - lzutao:update-pr-template, r=flip1995
bors [Thu, 8 Aug 2019 15:56:09 +0000 (15:56 +0000)]
Auto merge of #4357 - lzutao:update-pr-template, r=flip1995

template: Update how to format source code with ./util/dev

changelog: none

4 years agoAuto merge of #4355 - lzutao:macro_expn_try_err, r=flip1995
bors [Thu, 8 Aug 2019 15:16:17 +0000 (15:16 +0000)]
Auto merge of #4355 - lzutao:macro_expn_try_err, r=flip1995

Fix macro expansion in try_err lint

Fixes #4309

changelog: none

4 years agotemplate: Update how to format source code with ./util/dev
Lzu Tao [Thu, 8 Aug 2019 14:37:19 +0000 (21:37 +0700)]
template: Update how to format source code with ./util/dev

4 years agoUse source_callsite() instead of recursive outer_expn_info()
Lzu Tao [Thu, 8 Aug 2019 14:28:40 +0000 (21:28 +0700)]
Use source_callsite() instead of recursive outer_expn_info()

4 years agoUse snippet_with_macro_callsite suggested by flip1995
Lzu Tao [Thu, 8 Aug 2019 12:33:34 +0000 (19:33 +0700)]
Use snippet_with_macro_callsite suggested by flip1995

4 years agoFix macro expansion in try_err lint
Lzu Tao [Thu, 8 Aug 2019 12:33:34 +0000 (19:33 +0700)]
Fix macro expansion in try_err lint