]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoRemove force-host and explain no-prefer-dynamic
Philipp Hansch [Mon, 8 Apr 2019 19:23:39 +0000 (21:23 +0200)]
Remove force-host and explain no-prefer-dynamic

5 years agocargo fmt
Philipp Hansch [Mon, 8 Apr 2019 05:56:54 +0000 (07:56 +0200)]
cargo fmt

5 years agoFix ICE in suspicious_else_formatting
Philipp Hansch [Sun, 7 Apr 2019 09:11:06 +0000 (11:11 +0200)]
Fix ICE in suspicious_else_formatting

5 years agoMerge pull request #3922 from rust-lang/run-pass
Oliver Scherer [Sat, 6 Apr 2019 16:33:52 +0000 (18:33 +0200)]
Merge pull request #3922 from rust-lang/run-pass

Add missing `// run-pass` annotations to ICE tests

5 years agoAdd missing `// run-pass` annotations to ICE tests
Philipp Hansch [Fri, 5 Apr 2019 05:22:36 +0000 (07:22 +0200)]
Add missing `// run-pass` annotations to ICE tests

compiletest UI tests do not fail when encountering panics and ICEs
unless the `// run-pass` flag is used.

(This was forgotten in https://github.com/rust-lang/rust-clippy/pull/3743)

5 years agoMerge pull request #3916 from matthiaskrgr/rustup
Philipp Krones [Wed, 3 Apr 2019 09:43:26 +0000 (11:43 +0200)]
Merge pull request #3916 from matthiaskrgr/rustup

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

5 years agorustup https://github.com/rust-lang/rust/pull/59657
Matthias Krüger [Wed, 3 Apr 2019 08:48:54 +0000 (10:48 +0200)]
rustup https://github.com/rust-lang/rust/pull/59657

commit: 4122d2221ec65232bc211a266d0796a4713e0d39

5 years agoMerge pull request #3905 from rust-lang/compiletest
Philipp Krones [Mon, 1 Apr 2019 20:15:42 +0000 (22:15 +0200)]
Merge pull request #3905 from rust-lang/compiletest

Hacky rustup

5 years agoRun rustfmt
flip1995 [Mon, 1 Apr 2019 08:28:07 +0000 (10:28 +0200)]
Run rustfmt

5 years agoSet level of identity_conversion FP to warn
flip1995 [Mon, 1 Apr 2019 07:49:39 +0000 (09:49 +0200)]
Set level of identity_conversion FP to warn

5 years agoRustup to https://github.com/rust-lang/rust/pull/58805
Philipp Hansch [Mon, 1 Apr 2019 05:19:05 +0000 (07:19 +0200)]
Rustup to https://github.com/rust-lang/rust/pull/58805

5 years agorustup 41316f0449025394fdca6606d3fdb3b8f37a9872
Matthias Krüger [Sat, 30 Mar 2019 14:58:14 +0000 (15:58 +0100)]
rustup 41316f0449025394fdca6606d3fdb3b8f37a9872

5 years agoUpdated source to match with recent rustc `master` toolchain changes
Félix Fischer [Fri, 29 Mar 2019 04:47:09 +0000 (01:47 -0300)]
Updated source to match with recent rustc `master` toolchain changes

5 years agoFix dogfood error of question_mark lint fix
flip1995 [Wed, 27 Mar 2019 12:22:40 +0000 (13:22 +0100)]
Fix dogfood error of question_mark lint fix

5 years agoFix question_mark lint+test
flip1995 [Wed, 27 Mar 2019 10:46:33 +0000 (11:46 +0100)]
Fix question_mark lint+test

5 years agoFix some test failures
Félix Fischer [Tue, 26 Mar 2019 16:57:03 +0000 (13:57 -0300)]
Fix some test failures

5 years agoHacky rustup
Oliver Scherer [Tue, 26 Mar 2019 09:55:03 +0000 (10:55 +0100)]
Hacky rustup

5 years agoMerge pull request #3902 from matthiaskrgr/rustup
Manish Goregaokar [Sat, 23 Mar 2019 23:53:01 +0000 (16:53 -0700)]
Merge pull request #3902 from matthiaskrgr/rustup

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

5 years agorun cargo fmt
Matthias Krüger [Sat, 23 Mar 2019 22:39:58 +0000 (23:39 +0100)]
run cargo fmt

5 years agorustup https://github.com/rust-lang/rust/pull/59096/
Matthias Krüger [Sat, 23 Mar 2019 22:37:38 +0000 (23:37 +0100)]
rustup https://github.com/rust-lang/rust/pull/59096/

5 years agoAuto merge of #3888 - phansch:extract_mistyped_literal_suffix_tests_and_rustfix,...
bors [Tue, 19 Mar 2019 06:26:01 +0000 (06:26 +0000)]
Auto merge of #3888 - phansch:extract_mistyped_literal_suffix_tests_and_rustfix, r=flip1995

Add rustfix tests for mistyped_literal_suffix lint

This moves all `mistyped_literal_suffix` tests to their own file and
enables rustfix tests for them.

cc #3603, #2038

Based on #3887

5 years agoAuto merge of #3894 - markcatley:adding_lint_documentation_fixes, r=phansch
bors [Tue, 19 Mar 2019 06:05:41 +0000 (06:05 +0000)]
Auto merge of #3894 - markcatley:adding_lint_documentation_fixes, r=phansch

Add implementation for the EarlyLintPass trait into the Adding Lints …

…documentation.

To follow along with the adding lint documentation you need to implement this trait in order to register the lint pass.

5 years agocargo fmt
Philipp Hansch [Fri, 15 Mar 2019 19:14:33 +0000 (20:14 +0100)]
cargo fmt

5 years agoAdd rustfix tests for mistyped_literal_suffix lint
Philipp Hansch [Fri, 15 Mar 2019 07:06:01 +0000 (08:06 +0100)]
Add rustfix tests for mistyped_literal_suffix lint

This moves all `mistyped_literal_suffix` tests to their own file and
enables rustfix tests for them.

cc #3603, #2038

Based on #3887

5 years agoMove some `unreadable_literal` ui tests to correct file
Philipp Hansch [Fri, 15 Mar 2019 06:50:31 +0000 (07:50 +0100)]
Move some `unreadable_literal` ui tests to correct file

The moved tests were part of `tests/ui/literals.rs` before. Now they are
placed in `tests/ui/unreadable_literal.rs`, which now also runs
`rustfix` on these 4 extra let statements.

5 years agoAdd implementation for the EarlyLintPass trait into the Adding Lints documentation.
Mark Catley [Tue, 19 Mar 2019 00:39:19 +0000 (13:39 +1300)]
Add implementation for the EarlyLintPass trait into the Adding Lints documentation.

To follow along with the adding lint documentation you need to implement this trait in order to register the lint pass.

5 years agoAuto merge of #3893 - mati865:rustup, r=oli-obk
bors [Mon, 18 Mar 2019 16:21:56 +0000 (16:21 +0000)]
Auto merge of #3893 - mati865:rustup, r=oli-obk

Rustup

Supersedes https://github.com/rust-lang/rust-clippy/pull/3889

Addresses some review comments from previous PR and rustups to https://github.com/rust-lang/rust/pull/58899

5 years agoCargo fmt
Mateusz Mikuła [Mon, 18 Mar 2019 11:31:49 +0000 (12:31 +0100)]
Cargo fmt

5 years agoDrop range_contains feature
Mateusz Mikuła [Mon, 18 Mar 2019 11:30:22 +0000 (12:30 +0100)]
Drop range_contains feature

5 years agoFix rustfmt::skip detection
Mateusz Mikuła [Mon, 18 Mar 2019 11:29:56 +0000 (12:29 +0100)]
Fix rustfmt::skip detection

5 years agoRework clippy detection in attribute lint
Mateusz Mikuła [Mon, 18 Mar 2019 11:29:09 +0000 (12:29 +0100)]
Rework clippy detection in attribute lint

5 years agoname -> check_name
Mateusz Mikuła [Mon, 18 Mar 2019 11:15:23 +0000 (12:15 +0100)]
name -> check_name

5 years agospan -> span()
Mateusz Mikuła [Mon, 18 Mar 2019 11:05:20 +0000 (12:05 +0100)]
span -> span()

5 years agoname -> ident_str
Mateusz Mikuła [Mon, 18 Mar 2019 11:04:06 +0000 (12:04 +0100)]
name -> ident_str

5 years agoNestedMetaItemKind -> NestedMetaItem
Mateusz Mikuła [Mon, 18 Mar 2019 10:59:09 +0000 (11:59 +0100)]
NestedMetaItemKind -> NestedMetaItem

5 years agoDrop redundant &
Mateusz Mikuła [Mon, 18 Mar 2019 11:52:24 +0000 (12:52 +0100)]
Drop redundant &

5 years agoFix path_qualified
Mateusz Mikuła [Mon, 18 Mar 2019 11:49:12 +0000 (12:49 +0100)]
Fix path_qualified

As suggested by eddyb

5 years agoReplace most of ty:Ty with Ty
Mateusz Mikuła [Mon, 18 Mar 2019 11:43:10 +0000 (12:43 +0100)]
Replace most of ty:Ty with Ty

5 years agoFeed dog
flip1995 [Sat, 16 Mar 2019 14:39:02 +0000 (15:39 +0100)]
Feed dog

5 years agoAdapt paths to new formatting
flip1995 [Sat, 16 Mar 2019 14:22:31 +0000 (15:22 +0100)]
Adapt paths to new formatting

5 years agocargo fmt
flip1995 [Sat, 16 Mar 2019 10:51:57 +0000 (11:51 +0100)]
cargo fmt

5 years agoUse LocalInternedString inside of AbsolutePathPrinter
flip1995 [Sat, 16 Mar 2019 10:45:29 +0000 (11:45 +0100)]
Use LocalInternedString inside of AbsolutePathPrinter

5 years agoAbsolutePathBuffer -> AbsolutePathPrinter
flip1995 [Sat, 16 Mar 2019 10:17:36 +0000 (11:17 +0100)]
AbsolutePathBuffer -> AbsolutePathPrinter

5 years agoRemove ty::TyKind from eta_reduction and replace it with ty::Ty
flip1995 [Fri, 15 Mar 2019 22:44:42 +0000 (23:44 +0100)]
Remove ty::TyKind from eta_reduction and replace it with ty::Ty

5 years agoparent_def_id -> parent
flip1995 [Fri, 15 Mar 2019 22:44:04 +0000 (23:44 +0100)]
parent_def_id -> parent

5 years agoitem_path_str -> def_path_str
flip1995 [Fri, 15 Mar 2019 22:43:42 +0000 (23:43 +0100)]
item_path_str -> def_path_str

5 years agoReimplement AbsolutePathBuffer
flip1995 [Fri, 15 Mar 2019 22:41:30 +0000 (23:41 +0100)]
Reimplement AbsolutePathBuffer

5 years agoAuto merge of #3886 - phansch:rustfix_useless_asref, r=flip1995
bors [Fri, 15 Mar 2019 09:43:29 +0000 (09:43 +0000)]
Auto merge of #3886 - phansch:rustfix_useless_asref, r=flip1995

Enable rustfix for `useless_asref` lint tests

cc #3630

5 years agoEnable rustfix for `useless_asref` lint tests
Philipp Hansch [Fri, 15 Mar 2019 06:29:12 +0000 (07:29 +0100)]
Enable rustfix for `useless_asref` lint tests

5 years agoAuto merge of #3883 - daxpedda:missing_docs_in_private_items, r=phansch
bors [Fri, 15 Mar 2019 06:18:28 +0000 (06:18 +0000)]
Auto merge of #3883 - daxpedda:missing_docs_in_private_items, r=phansch

Add `doc(include = ...)` detection to `missing_docs_in_private_items`

The whole `missing documentation in crate` part doesn't have any tests. If I should add test cases tell me.

5 years agoAnother test for missing crate documentation.
daxpedda [Thu, 14 Mar 2019 18:38:41 +0000 (19:38 +0100)]
Another test for missing crate documentation.

5 years agoAdd a test for `doc(include)`
daxpedda [Thu, 14 Mar 2019 18:33:06 +0000 (19:33 +0100)]
Add a test for `doc(include)`
Tiny code improvement.

5 years agoAdd `doc(include = ...)` detection to `missing_docs_in_private_items`
daxpedda [Thu, 14 Mar 2019 17:32:39 +0000 (18:32 +0100)]
Add `doc(include = ...)` detection to `missing_docs_in_private_items`

5 years agoAuto merge of #3879 - phansch:rustfix_string_lit_as_bytes, r=flip1995
bors [Thu, 14 Mar 2019 17:29:19 +0000 (17:29 +0000)]
Auto merge of #3879 - phansch:rustfix_string_lit_as_bytes, r=flip1995

Run rustfix for string_lit_as_bytes tests

This moves the `string_lit_as_bytes` tests into a new file and enables
rustfix tests for them.

cc #3603, #2038

5 years agoAuto merge of #3877 - rink1969:3842, r=flip1995
bors [Thu, 14 Mar 2019 16:32:15 +0000 (16:32 +0000)]
Auto merge of #3877 - rink1969:3842, r=flip1995

casting integer literal to float is unnecessary

fix issue https://github.com/rust-lang/rust-clippy/issues/3842

5 years agocasting integer literal to float is unnecessary
rink1969 [Tue, 12 Mar 2019 07:49:26 +0000 (15:49 +0800)]
casting integer literal to float is unnecessary

5 years agoAuto merge of #3880 - phansch:uicleanup9001, r=oli-obk
bors [Thu, 14 Mar 2019 07:52:00 +0000 (07:52 +0000)]
Auto merge of #3880 - phansch:uicleanup9001, r=oli-obk

UI test cleanup: Extract manual_memcpy tests

cc #2038

5 years agoUI test cleanup: Extract manual_memcpy tests
Philipp Hansch [Thu, 14 Mar 2019 06:26:47 +0000 (07:26 +0100)]
UI test cleanup: Extract manual_memcpy tests

5 years agoRun rustfix for string_lit_as_bytes tests
Philipp Hansch [Thu, 14 Mar 2019 05:59:30 +0000 (06:59 +0100)]
Run rustfix for string_lit_as_bytes tests

This moves the `string_lit_as_bytes` tests into a new file and enables
rustfix tests for them.

5 years agoAuto merge of #3873 - phansch:hiridification, r=flip1995
bors [Wed, 13 Mar 2019 08:45:23 +0000 (08:45 +0000)]
Auto merge of #3873 - phansch:hiridification, r=flip1995

Some more HirId-ification

8a59f81: Rename span_lint_node* functions to span_lint_hir*
a457258: Use `HirId` instead of `NodeId` for lookup

5 years agocargo fmt
Philipp Hansch [Wed, 13 Mar 2019 05:51:57 +0000 (06:51 +0100)]
cargo fmt

5 years agoAuto merge of #3869 - taiki-e:use_self, r=flip1995
bors [Tue, 12 Mar 2019 12:09:56 +0000 (12:09 +0000)]
Auto merge of #3869 - taiki-e:use_self, r=flip1995

Fix `use_self` false positive on nested functions

Related to https://github.com/rust-lang/rust-clippy/pull/3640

The current `use_self` warns the following code.

```rust
#![warn(clippy::use_self)]
struct Foo {}
impl Foo {
    fn bar() {
        fn baz() -> Foo { //^ warning: unnecessary structure name repetition
            Foo {} //^ warning: unnecessary structure name repetition
         }
    }
}
```

5 years agoAuto merge of #3872 - phansch:some_feature_cleanup, r=oli-obk
bors [Tue, 12 Mar 2019 09:34:04 +0000 (09:34 +0000)]
Auto merge of #3872 - phansch:some_feature_cleanup, r=oli-obk

Remove some unused features and `error-pattern`s

None

5 years agoAuto merge of #3794 - mikerite:fix-3739, r=phansch
bors [Tue, 12 Mar 2019 07:43:14 +0000 (07:43 +0000)]
Auto merge of #3794 - mikerite:fix-3739, r=phansch

Fix `boxed_local` suggestion

Don't warn about an argument that is moved into a closure.

ExprUseVisitor doesn't walk into nested bodies so use a new
visitor that collects the variables that are moved into closures.

Fixes #3739

5 years agoUse `HirId` instead of `NodeId` for lookup
Philipp Hansch [Tue, 12 Mar 2019 07:11:57 +0000 (08:11 +0100)]
Use `HirId` instead of `NodeId` for lookup

5 years agoRemove some unused features and `error-pattern`s
Philipp Hansch [Tue, 12 Mar 2019 06:32:02 +0000 (07:32 +0100)]
Remove some unused features and `error-pattern`s

5 years agoAuto merge of #3871 - taiki-e:needless_continue, r=phansch
bors [Tue, 12 Mar 2019 07:04:44 +0000 (07:04 +0000)]
Auto merge of #3871 - taiki-e:needless_continue, r=phansch

Fix `needless_continue` false positive

If the `continue` has a label, check it matches the label of the loop.

Fixes https://github.com/rust-lang/rust-clippy/issues/2329

5 years agoRename span_lint_node* functions to span_lint_hir*
Philipp Hansch [Tue, 12 Mar 2019 07:01:21 +0000 (08:01 +0100)]
Rename span_lint_node* functions to span_lint_hir*

Because they now take a `hir_id` instead of a `node_id` argument.

5 years agoAuto merge of #3865 - phansch:run_more_doc_tests, r=flip1995
bors [Tue, 12 Mar 2019 06:22:00 +0000 (06:22 +0000)]
Auto merge of #3865 - phansch:run_more_doc_tests, r=flip1995

Run more doc tests

This executes some more doc tests that were ignored before.

5 years agoMerge branch 'master' into fix-3739
Michael Wright [Tue, 12 Mar 2019 06:13:44 +0000 (08:13 +0200)]
Merge branch 'master' into fix-3739

5 years agoAuto merge of #3868 - taiki-e:needless_pass_by_value, r=phansch
bors [Tue, 12 Mar 2019 06:01:00 +0000 (06:01 +0000)]
Auto merge of #3868 - taiki-e:needless_pass_by_value, r=phansch

Filter out proc_macro and proc_macro_attribute

Related to https://github.com/rust-lang/rust-clippy/pull/1617

Fixes https://github.com/rust-lang/rust-clippy/issues/3067 (this issue has already been closed, but in fact the false positive in `#[proc_macro]` and `#[proc_macro_attribute]` has not been fixed yet)

5 years agoRun more doc tests
Philipp Hansch [Sat, 9 Mar 2019 07:51:23 +0000 (08:51 +0100)]
Run more doc tests

This executes some more doc tests that were ignored before.

5 years agoFix `needless_continue` false positive
Taiki Endo [Mon, 11 Mar 2019 18:40:30 +0000 (03:40 +0900)]
Fix `needless_continue` false positive

5 years agoFix `use_self` false positive on nested functions
Taiki Endo [Mon, 11 Mar 2019 14:24:49 +0000 (23:24 +0900)]
Fix `use_self` false positive on nested functions

5 years agoFilter out proc_macro and proc_macro_attribute
Taiki Endo [Mon, 11 Mar 2019 11:45:57 +0000 (20:45 +0900)]
Filter out proc_macro and proc_macro_attribute

5 years agoAuto merge of #3767 - alexreg:cosmetic-2, r=flip1995
bors [Sun, 10 Mar 2019 23:21:48 +0000 (23:21 +0000)]
Auto merge of #3767 - alexreg:cosmetic-2, r=flip1995

Various cosmetic improvements

Related to the larger effort of https://github.com/rust-lang/rust/pull/58036.

5 years agoFix/Ignore doc tests
flip1995 [Sun, 10 Mar 2019 22:01:56 +0000 (23:01 +0100)]
Fix/Ignore doc tests

5 years agoRun rustfmt
flip1995 [Sun, 10 Mar 2019 21:12:26 +0000 (22:12 +0100)]
Run rustfmt

5 years agoUpdate tests
flip1995 [Sun, 10 Mar 2019 21:07:10 +0000 (22:07 +0100)]
Update tests

5 years agoReblessed test outputs.
Alexander Regueiro [Sun, 10 Mar 2019 17:19:38 +0000 (17:19 +0000)]
Reblessed test outputs.

5 years agoAddressed points raised in review.
Alexander Regueiro [Sun, 10 Mar 2019 17:19:47 +0000 (17:19 +0000)]
Addressed points raised in review.

5 years agoVarious cosmetic improvements.
Alexander Regueiro [Thu, 31 Jan 2019 01:15:29 +0000 (01:15 +0000)]
Various cosmetic improvements.

5 years agoAuto merge of #3733 - Zoxc:rustc-interface, r=oli-obk
bors [Sun, 10 Mar 2019 14:26:31 +0000 (14:26 +0000)]
Auto merge of #3733 - Zoxc:rustc-interface, r=oli-obk

Use the new rustc interface

Shows the changes required to compile with https://github.com/rust-lang/rust/pull/56732

5 years agorustfmt
John Kåre Alsaker [Sun, 10 Mar 2019 11:00:17 +0000 (12:00 +0100)]
rustfmt

5 years agoUse the new rustc interface
John Kåre Alsaker [Fri, 1 Feb 2019 22:28:14 +0000 (23:28 +0100)]
Use the new rustc interface

5 years agoAuto merge of #3863 - rust-lang:get_unwrap, r=oli-obk
bors [Sun, 10 Mar 2019 08:52:24 +0000 (08:52 +0000)]
Auto merge of #3863 - rust-lang:get_unwrap, r=oli-obk

Move get_unwrap to restriction

fixes #3862

r? @oli-obk

5 years agoMove get_unwrap to restriction
Manish Goregaokar [Sat, 9 Mar 2019 18:12:22 +0000 (10:12 -0800)]
Move get_unwrap to restriction

fixes #3862

5 years agoAuto merge of #3824 - phansch:adding_lints, r=phansch
bors [Sat, 9 Mar 2019 15:05:38 +0000 (15:05 +0000)]
Auto merge of #3824 - phansch:adding_lints, r=phansch

Add lint writing documentation

[Rendered](https://github.com/phansch/rust-clippy/blob/adding_lints/doc/adding_lints.md)

This adds a new documentation page that explains how to write Clippy
lints. It guides the reader through creating a `foo` function lint.

I plan to iterate a bit more on the prose of some sections, but I think the
general structure is fine now, so I'm looking forward to feedback =)

One thing I'm not sure about: I felt like this is too big for CONTRIBUTING.md
so I put it into a new `doc/` directory. I can imagine having more
documentation in the future, so we might even want to create a book using
mdbook instead? Or should everything go into CONTRIBUTING.md?

Further things left to do:

- [x] Link from CONTRIBUTING.md
- [x] Remove things covered in this guide from CONTRIBUTING.md
- [x] Section about `clippy::author` attribute
- [x] Run `remark-lint` on CI over the `doc` directory and fix things

5 years agoAuto merge of #3860 - phansch:refactor_out_opt_def_id, r=flip1995
bors [Sat, 9 Mar 2019 12:05:41 +0000 (12:05 +0000)]
Auto merge of #3860 - phansch:refactor_out_opt_def_id, r=flip1995

Refactor: Remove utils::opt_def_id

This removes some indirection. Probably this method was uplifted to
rustc at some point?

5 years agoAuto merge of #3861 - flip1995:rollup, r=flip1995
bors [Sat, 9 Mar 2019 11:41:26 +0000 (11:41 +0000)]
Auto merge of #3861 - flip1995:rollup, r=flip1995

Rollup of 3 pull requests

Successful merges:

 - #3851 (Refactor: Extract `trait_ref_of_method` function)
 - #3852 (Refactor: Cleanup one part of assign_ops lint)
 - #3857 (Document match_path, improve match_qpath docs)

Failed merges:

r? @ghost

5 years agoRollup merge of #3857 - phansch:document_path_qpath, r=flip1995
Philipp Krones [Sat, 9 Mar 2019 11:24:44 +0000 (12:24 +0100)]
Rollup merge of #3857 - phansch:document_path_qpath, r=flip1995

Document match_path, improve match_qpath docs

Inching towards enabling `#[deny(missing_docs)]` in utils :scroll:

5 years agoRollup merge of #3852 - phansch:refactor_assign_ops, r=flip1995
Philipp Krones [Sat, 9 Mar 2019 11:24:43 +0000 (12:24 +0100)]
Rollup merge of #3852 - phansch:refactor_assign_ops, r=flip1995

Refactor: Cleanup one part of assign_ops lint

Removes a lot of indentation and separates lint emission from lint
logic. Only touches the `hir::ExprKind::AssignOp` part of the lint.

5 years agoRollup merge of #3851 - phansch:refactor_trait_stuff, r=flip1995
Philipp Krones [Sat, 9 Mar 2019 11:24:42 +0000 (12:24 +0100)]
Rollup merge of #3851 - phansch:refactor_trait_stuff, r=flip1995

Refactor: Extract `trait_ref_of_method` function

This pattern was used in three places after #3844, so I think it's worth moving it into `utils/mod.rs` and documenting it.

5 years agoAuto merge of #3854 - ljedrz:rustc_58992, r=phansch
bors [Fri, 8 Mar 2019 17:10:52 +0000 (17:10 +0000)]
Auto merge of #3854 - ljedrz:rustc_58992, r=phansch

Align with rust-lang/rust/#58992

Some adjustments needed after the most recent round of HirIdification.

5 years agoRefactor: Remove utils::opt_def_id
Philipp Hansch [Fri, 8 Mar 2019 13:14:41 +0000 (14:14 +0100)]
Refactor: Remove utils::opt_def_id

This removes some indirection. Probably this method was uplifted to
rustc at some point?

5 years agoDocument match_path, improve match_qpath docs
Philipp Hansch [Fri, 8 Mar 2019 08:50:20 +0000 (09:50 +0100)]
Document match_path, improve match_qpath docs

5 years agocargo fmt
Philipp Hansch [Fri, 8 Mar 2019 08:44:22 +0000 (09:44 +0100)]
cargo fmt

5 years agofmt
Philipp Hansch [Fri, 8 Mar 2019 08:42:09 +0000 (09:42 +0100)]
fmt

5 years agoUpdate clippy_lints/src/utils/mod.rs
Philipp Krones [Fri, 8 Mar 2019 08:40:12 +0000 (09:40 +0100)]
Update clippy_lints/src/utils/mod.rs

Co-Authored-By: phansch <dev@phansch.net>
5 years agoFix doctest
Philipp Hansch [Fri, 8 Mar 2019 08:10:41 +0000 (09:10 +0100)]
Fix doctest