]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoMerge pull request #2963 from commandline/master
Oliver Schneider [Thu, 26 Jul 2018 08:11:34 +0000 (10:11 +0200)]
Merge pull request #2963 from commandline/master

Fix regression in print_literal

5 years agoFix copy-paste error
Thomas Gideon [Wed, 25 Jul 2018 22:14:11 +0000 (18:14 -0400)]
Fix copy-paste error

5 years agoAnd the ones annotating the source file name.
Thomas Gideon [Wed, 25 Jul 2018 22:00:19 +0000 (18:00 -0400)]
And the ones annotating the source file name.

5 years agoUpdate line numbers
Thomas Gideon [Wed, 25 Jul 2018 21:51:04 +0000 (17:51 -0400)]
Update line numbers

5 years agoFix regression in print_literal
Thomas Gideon [Wed, 25 Jul 2018 21:31:17 +0000 (17:31 -0400)]
Fix regression in print_literal

5 years agoMerge pull request #2960 from matthiaskrgr/typos
Philipp Hansch [Wed, 25 Jul 2018 20:57:10 +0000 (22:57 +0200)]
Merge pull request #2960 from matthiaskrgr/typos

fix a bunch of typos found by codespell

5 years agoMerge pull request #2948 from Nemo157/patch-1
Philipp Hansch [Wed, 25 Jul 2018 20:55:36 +0000 (22:55 +0200)]
Merge pull request #2948 from Nemo157/patch-1

Add known problem for redundant_closure lint

5 years agofix a bunch of typos found by codespell
Matthias Krüger [Wed, 25 Jul 2018 18:02:52 +0000 (20:02 +0200)]
fix a bunch of typos found by codespell

5 years agoMerge branch 'master' into typos
Matthias Krüger [Wed, 25 Jul 2018 17:54:45 +0000 (19:54 +0200)]
Merge branch 'master' into typos

5 years agoMerge pull request #2958 from phansch/small_text_change_for_update_lints
Philipp Hansch [Wed, 25 Jul 2018 06:48:56 +0000 (08:48 +0200)]
Merge pull request #2958 from phansch/small_text_change_for_update_lints

s/wiki/lint list/

5 years agos/wiki/lint list/
Philipp Hansch [Mon, 23 Jul 2018 05:29:53 +0000 (07:29 +0200)]
s/wiki/lint list/

5 years agoMerge pull request #2952 from dwijnand/upstream-in_external_macro
Manish Goregaokar [Tue, 24 Jul 2018 15:27:38 +0000 (08:27 -0700)]
Merge pull request #2952 from dwijnand/upstream-in_external_macro

Switch to rustc's in_external_macro function

5 years agoInline utils::in_external_macro
Dale Wijnand [Tue, 24 Jul 2018 06:55:38 +0000 (07:55 +0100)]
Inline utils::in_external_macro

5 years agoDelegate utils::in_external_macro to rustc::lint::in_external_macro
Dale Wijnand [Tue, 24 Jul 2018 06:49:39 +0000 (07:49 +0100)]
Delegate utils::in_external_macro to rustc::lint::in_external_macro

5 years agoMerge pull request #2951 from etaoins/allow-pass-by-ref-on-ref-return
Philipp Krones [Tue, 24 Jul 2018 09:23:01 +0000 (11:23 +0200)]
Merge pull request #2951 from etaoins/allow-pass-by-ref-on-ref-return

Allow pass by reference if we return a reference

5 years agoMerge pull request #2953 from dwijnand/misrefactored_assign_op-known-problem-doc
Philipp Krones [Tue, 24 Jul 2018 09:19:58 +0000 (11:19 +0200)]
Merge pull request #2953 from dwijnand/misrefactored_assign_op-known-problem-doc

Expand on misrefactored_assign_op known problems

5 years agoMerge branch 'master' into allow-pass-by-ref-on-ref-return
Ryan Cumming [Tue, 24 Jul 2018 09:03:43 +0000 (19:03 +1000)]
Merge branch 'master' into allow-pass-by-ref-on-ref-return

5 years agoTweak
Dale Wijnand [Tue, 24 Jul 2018 08:26:28 +0000 (09:26 +0100)]
Tweak
misrefactored_assign_op's known problems wording

5 years agoMerge pull request #2949 from rust-lang-nursery/preexpansion
Oliver Schneider [Tue, 24 Jul 2018 08:08:50 +0000 (10:08 +0200)]
Merge pull request #2949 from rust-lang-nursery/preexpansion

Rewrite the print/write macro checks as a PreExpansionPass

5 years agoExpand on misrefactored_assign_op known problems
Dale Wijnand [Tue, 24 Jul 2018 07:39:18 +0000 (08:39 +0100)]
Expand on misrefactored_assign_op known problems

5 years agoRustup
Oliver Schneider [Mon, 23 Jul 2018 11:01:12 +0000 (13:01 +0200)]
Rustup

5 years agoWrap comment at 80 columns
Ryan Cumming [Mon, 23 Jul 2018 09:37:41 +0000 (19:37 +1000)]
Wrap comment at 80 columns

5 years agoAdd Known Problem for multiple lifetimes
Ryan Cumming [Mon, 23 Jul 2018 09:33:52 +0000 (19:33 +1000)]
Add Known Problem for multiple lifetimes

5 years agoAllow pass by reference if we return a reference
Ryan Cumming [Mon, 23 Jul 2018 08:33:47 +0000 (18:33 +1000)]
Allow pass by reference if we return a reference

Currently this code will trigger `trivally_copy_pass_by_ref`:

```
struct OuterStruct {
    field: [u8; 8],
}

fn return_inner(outer: &OuterStruct) -> &[u8] {
    &outer.field
}
```

If we change the `outer` to be pass-by-value it will not live long
enough for us to return the reference. The above example is trivial but
I've hit this in real code that either returns a reference to either the
argument or in to `self`.

This suppresses the `trivally_copy_pass_by_ref` lint if we return a
reference and it has the same lifetime as the argument. This will likely
miss complex cases with multiple lifetimes bounded by each other but it
should cover the majority of cases with little effort.

5 years agoRewrite the print/write macro checks as a PreExpansionPass
Oliver Schneider [Sun, 22 Jul 2018 22:19:07 +0000 (00:19 +0200)]
Rewrite the print/write macro checks as a PreExpansionPass

5 years agoAdd known problem for redundant_closure lint
Wim [Sat, 21 Jul 2018 16:05:02 +0000 (18:05 +0200)]
Add known problem for redundant_closure lint

Documenting https://github.com/rust-lang-nursery/rust-clippy/issues/1439 until it gets fixed.

5 years agoDon't invent new magic keywords
Oliver Schneider [Sat, 21 Jul 2018 10:36:01 +0000 (12:36 +0200)]
Don't invent new magic keywords

5 years agoRustup
Oliver Schneider [Fri, 20 Jul 2018 20:50:04 +0000 (22:50 +0200)]
Rustup

5 years agoMerge branch 'macro-use' into HEAD
Manish Goregaokar [Fri, 20 Jul 2018 07:52:01 +0000 (00:52 -0700)]
Merge branch 'macro-use' into HEAD

5 years agoMerge branch 'pr-2939' into HEAD
Manish Goregaokar [Fri, 20 Jul 2018 07:51:57 +0000 (00:51 -0700)]
Merge branch 'pr-2939' into HEAD

5 years agoUpdate dependencies
Manish Goregaokar [Fri, 20 Jul 2018 07:47:24 +0000 (00:47 -0700)]
Update dependencies

5 years agoRemove warning
Manish Goregaokar [Thu, 19 Jul 2018 08:06:29 +0000 (01:06 -0700)]
Remove warning

5 years agoRemove import of if_chain
Manish Goregaokar [Thu, 19 Jul 2018 08:00:54 +0000 (01:00 -0700)]
Remove import of if_chain

5 years agoUpdate to nightly
Alexander Regueiro [Fri, 20 Jul 2018 02:59:07 +0000 (03:59 +0100)]
Update to nightly

5 years agoMerge pull request #2936 from flip1995/useless_lint_attr
Philipp Krones [Thu, 19 Jul 2018 12:57:28 +0000 (14:57 +0200)]
Merge pull request #2936 from flip1995/useless_lint_attr

Fix useless_attribute lint for extern crate items with macro_use

5 years agoMerge pull request #2938 from flip1995/travis
Philipp Krones [Thu, 19 Jul 2018 12:36:30 +0000 (14:36 +0200)]
Merge pull request #2938 from flip1995/travis

Remove duplication of the cargo and rls repos from travis

5 years agoRemove duplication of the cargo and rls repos from travis
flip1995 [Thu, 19 Jul 2018 12:14:12 +0000 (14:14 +0200)]
Remove duplication of the cargo and rls repos from travis

5 years agoSkip useless_attribute lint on allow(unused_imports) on extern crate items with macro_use
flip1995 [Thu, 19 Jul 2018 11:44:26 +0000 (13:44 +0200)]
Skip useless_attribute lint on allow(unused_imports) on extern crate items with macro_use

5 years agoRemove import of matches
Manish Goregaokar [Thu, 19 Jul 2018 07:24:19 +0000 (00:24 -0700)]
Remove import of matches

5 years agoRemove import of rustc
Manish Goregaokar [Thu, 19 Jul 2018 07:53:23 +0000 (00:53 -0700)]
Remove import of rustc

5 years agoRemove import of lazy_static
Manish Goregaokar [Thu, 19 Jul 2018 07:11:15 +0000 (00:11 -0700)]
Remove import of lazy_static

5 years agoRemove import of serde
Manish Goregaokar [Thu, 19 Jul 2018 07:02:08 +0000 (00:02 -0700)]
Remove import of serde

5 years agoMerge pull request #2934 from pickfire/patch-1
Manish Goregaokar [Thu, 19 Jul 2018 06:50:37 +0000 (23:50 -0700)]
Merge pull request #2934 from pickfire/patch-1

Improve website panel heading experience

5 years agoImprove website panel heading experience
Ivan Tham [Thu, 19 Jul 2018 06:12:47 +0000 (14:12 +0800)]
Improve website panel heading experience

5 years agoTemporarily allow macro_use_extern_crate
Manish Goregaokar [Thu, 19 Jul 2018 03:24:37 +0000 (20:24 -0700)]
Temporarily allow macro_use_extern_crate

5 years agoMerge pull request #2923 from rust-lang-nursery/kind
Manish Goregaokar [Mon, 16 Jul 2018 23:41:50 +0000 (16:41 -0700)]
Merge pull request #2923 from rust-lang-nursery/kind

Rustup to 1ecf6929dc3b309cdfcb7239260777dab38242b9

5 years agoUpdate mini-macro post proc macro stabilization
Manish Goregaokar [Mon, 16 Jul 2018 23:29:09 +0000 (16:29 -0700)]
Update mini-macro post proc macro stabilization

https://github.com/rust-lang/rust/pull/52081 stabilized proc macros, but
quote is still unstable, so you need to explicitly enable that feature.

5 years agoMerge pull request #2922 from rust-lang-nursery/rm-clip
Manish Goregaokar [Mon, 16 Jul 2018 22:32:19 +0000 (15:32 -0700)]
Merge pull request #2922 from rust-lang-nursery/rm-clip

Fix travis build by removing cargo-clippy

5 years agoFix travis build by removing cargo-clippy
Manish Goregaokar [Mon, 16 Jul 2018 20:55:32 +0000 (13:55 -0700)]
Fix travis build by removing cargo-clippy

5 years agosome readme clarifications
Manish Goregaokar [Mon, 16 Jul 2018 20:39:38 +0000 (13:39 -0700)]
some readme clarifications

5 years agoMerge pull request #2921 from yaahallo/master
Manish Goregaokar [Mon, 16 Jul 2018 20:38:09 +0000 (13:38 -0700)]
Merge pull request #2921 from yaahallo/master

Update readme for new clippy install method

5 years agoUpdate readme for new clippy install method
Jane Lusby [Mon, 16 Jul 2018 20:05:02 +0000 (13:05 -0700)]
Update readme for new clippy install method

5 years agoUpdate test output to changes in rustc
Oliver Schneider [Mon, 16 Jul 2018 13:43:30 +0000 (15:43 +0200)]
Update test output to changes in rustc

5 years agoUpdate for hir renamings in rustc
Oliver Schneider [Mon, 16 Jul 2018 13:07:39 +0000 (15:07 +0200)]
Update for hir renamings in rustc

5 years agoDeclKind
csmoe [Thu, 12 Jul 2018 08:55:41 +0000 (16:55 +0800)]
DeclKind

5 years agoStmtKind
csmoe [Thu, 12 Jul 2018 08:53:53 +0000 (16:53 +0800)]
StmtKind

5 years agoTyKind
csmoe [Thu, 12 Jul 2018 08:03:06 +0000 (16:03 +0800)]
TyKind

5 years agoBinOpKind
csmoe [Thu, 12 Jul 2018 07:50:09 +0000 (15:50 +0800)]
BinOpKind

5 years agoExprKind
csmoe [Thu, 12 Jul 2018 07:30:57 +0000 (15:30 +0800)]
ExprKind

5 years agoMerge pull request #2920 from rust-lang-nursery/rustup
Oliver Schneider [Mon, 16 Jul 2018 08:20:29 +0000 (10:20 +0200)]
Merge pull request #2920 from rust-lang-nursery/rustup

Rustup

5 years agoRemove use of ty_to_def_id
Oliver Schneider [Sun, 15 Jul 2018 00:04:23 +0000 (02:04 +0200)]
Remove use of ty_to_def_id

5 years agoIgnore spans when comparing expressions
Oliver Schneider [Sat, 14 Jul 2018 22:00:27 +0000 (00:00 +0200)]
Ignore spans when comparing expressions

6 years agoMerge pull request #2911 from phansch/add_toolchain_file
Oliver Schneider [Wed, 11 Jul 2018 08:28:15 +0000 (10:28 +0200)]
Merge pull request #2911 from phansch/add_toolchain_file

Add rust-toolchain file

6 years agoAdd rust-toolchain file
Philipp Hansch [Wed, 11 Jul 2018 05:59:37 +0000 (07:59 +0200)]
Add rust-toolchain file

Using `nightly` means that the latest available nightly version will be
used when cd'ing to a clippy checkout.

6 years agoMerge pull request #2902 from mikerite/missing_inline_refactor
Philipp Krones [Mon, 9 Jul 2018 17:46:17 +0000 (19:46 +0200)]
Merge pull request #2902 from mikerite/missing_inline_refactor

Remove duplication in missing_inline

6 years agoRemove duplication in missing_inline
Michael Wright [Sun, 8 Jul 2018 06:03:11 +0000 (08:03 +0200)]
Remove duplication in missing_inline

6 years agoBump to 0.0.212
Manish Goregaokar [Sat, 7 Jul 2018 06:23:19 +0000 (23:23 -0700)]
Bump to 0.0.212

6 years agoMerge branch 'pr-2889'
Manish Goregaokar [Sat, 7 Jul 2018 06:20:01 +0000 (23:20 -0700)]
Merge branch 'pr-2889'

6 years agoMerge pull request #2898 from dwijnand/Clippy
Philipp Hansch [Fri, 6 Jul 2018 08:11:18 +0000 (09:11 +0100)]
Merge pull request #2898 from dwijnand/Clippy

Consistently call it "Clippy", not clippy or rust-clippy

6 years agoMerge pull request #2899 from nrc/rustup
Oliver Schneider [Thu, 5 Jul 2018 23:20:17 +0000 (01:20 +0200)]
Merge pull request #2899 from nrc/rustup

Add some more winapi features

6 years agoAdd some more winapi features
Nick Cameron [Thu, 5 Jul 2018 23:16:36 +0000 (11:16 +1200)]
Add some more winapi features

6 years agoRustup
Oliver Schneider [Tue, 3 Jul 2018 16:23:21 +0000 (18:23 +0200)]
Rustup

6 years agoConsistently call it "Clippy", not clippy or rust-clippy
Dale Wijnand [Thu, 5 Jul 2018 10:37:50 +0000 (11:37 +0100)]
Consistently call it "Clippy", not clippy or rust-clippy

As per discussion on the Clippy 1.0 RFC

6 years agoMerge pull request #2895 from gnzlbg/lint_no_inline
Oliver Schneider [Thu, 5 Jul 2018 05:54:22 +0000 (07:54 +0200)]
Merge pull request #2895 from gnzlbg/lint_no_inline

Add missing_inline lint

6 years agorefactor function
gnzlbg [Wed, 4 Jul 2018 23:53:40 +0000 (01:53 +0200)]
refactor function

6 years agodo not apply lint to executable crate type
gnzlbg [Wed, 4 Jul 2018 14:39:52 +0000 (16:39 +0200)]
do not apply lint to executable crate type

6 years agoaddress reviews
gnzlbg [Wed, 4 Jul 2018 13:32:55 +0000 (15:32 +0200)]
address reviews

6 years agoadd missing_inline lint
gnzlbg [Wed, 4 Jul 2018 08:51:04 +0000 (10:51 +0200)]
add missing_inline lint

When turned on, the lint warns on all exported functions, methods,
trait methods (default impls, impls), that are not `#[inline]`.

Closes #1503.

6 years agoRustup
Oliver Schneider [Tue, 3 Jul 2018 08:52:59 +0000 (10:52 +0200)]
Rustup

6 years agoRustup
Oliver Schneider [Mon, 2 Jul 2018 17:07:12 +0000 (19:07 +0200)]
Rustup

6 years agoHACK: make sure clippy builds the same deps as cargo and rls
Oliver Schneider [Mon, 2 Jul 2018 08:16:55 +0000 (10:16 +0200)]
HACK: make sure clippy builds the same deps as cargo and rls

6 years agoRustup
Oliver Schneider [Sun, 1 Jul 2018 11:36:14 +0000 (13:36 +0200)]
Rustup

6 years agoMerge pull request #2888 from mikerite/refactor_lifetimename_static
llogiq [Sun, 1 Jul 2018 10:54:06 +0000 (12:54 +0200)]
Merge pull request #2888 from mikerite/refactor_lifetimename_static

Use slightly neater check for static lifetimes

6 years agoUse slightly neater check for static lifetimes
Michael Wright [Sun, 1 Jul 2018 09:58:29 +0000 (11:58 +0200)]
Use slightly neater check for static lifetimes

6 years agoFix badly mangled lint message for neg-cmp-op-on-partial-ord
Georg Brandl [Fri, 29 Jun 2018 14:55:26 +0000 (16:55 +0200)]
Fix badly mangled lint message for neg-cmp-op-on-partial-ord

6 years agoVersion bump
Oliver Schneider [Fri, 29 Jun 2018 08:22:01 +0000 (10:22 +0200)]
Version bump

6 years agoMerge pull request #2880 from mati865/rustup_hir
Oliver Schneider [Fri, 29 Jun 2018 08:20:19 +0000 (10:20 +0200)]
Merge pull request #2880 from mati865/rustup_hir

Rustup

6 years agoBump the version
Mateusz Mikuła [Fri, 29 Jun 2018 07:55:20 +0000 (09:55 +0200)]
Bump the version

6 years agoRustup
Mateusz Mikuła [Thu, 28 Jun 2018 13:46:58 +0000 (15:46 +0200)]
Rustup

6 years agoFix warnings
Mateusz Mikuła [Thu, 28 Jun 2018 11:33:11 +0000 (13:33 +0200)]
Fix warnings

6 years agoMerge pull request #2832 from kennytm/non-copy-const
Oliver Schneider [Thu, 28 Jun 2018 06:39:54 +0000 (08:39 +0200)]
Merge pull request #2832 from kennytm/non-copy-const

Lint against const items which are interior mutable.

6 years agoMerge pull request #2876 from AVerm/patch-1
Oliver Schneider [Wed, 27 Jun 2018 08:02:14 +0000 (10:02 +0200)]
Merge pull request #2876 from AVerm/patch-1

Removed placeholder doc-comments

6 years agoRemoved placeholder doc-comments
Alex Vermillion [Wed, 27 Jun 2018 01:22:36 +0000 (20:22 -0500)]
Removed placeholder doc-comments

There were comments instructing someone to insert an example, but an example was already present

6 years agoMerge pull request #2872 from rust-lang-nursery/pedantic-default
Manish Goregaokar [Tue, 26 Jun 2018 20:03:31 +0000 (13:03 -0700)]
Merge pull request #2872 from rust-lang-nursery/pedantic-default

Move default_trait_access to pedantic

6 years agoMerge pull request #2873 from mati865/edition2018_next_step
Oliver Schneider [Tue, 26 Jun 2018 09:11:53 +0000 (11:11 +0200)]
Merge pull request #2873 from mati865/edition2018_next_step

Next step towards Rust 2018...

6 years agoMerge pull request #2849 from mikerite/issue_2741
Oliver Schneider [Tue, 26 Jun 2018 09:08:19 +0000 (11:08 +0200)]
Merge pull request #2849 from mikerite/issue_2741

Fix #2741

6 years agoMerge branch 'master' into issue_2741
Michael Wright [Tue, 26 Jun 2018 05:46:56 +0000 (07:46 +0200)]
Merge branch 'master' into issue_2741

6 years agoMerge pull request #2867 from flip1995/ice-2865
Philipp Krones [Mon, 25 Jun 2018 21:00:58 +0000 (23:00 +0200)]
Merge pull request #2867 from flip1995/ice-2865

Use utils::opt_def_id() instead of def_id() to prevent ICE

6 years agoUse utils::opt_def_id() instead of def_id() to prevent ICE
flip1995 [Fri, 22 Jun 2018 14:20:26 +0000 (16:20 +0200)]
Use utils::opt_def_id() instead of def_id() to prevent ICE

6 years agoFormat the code
Mateusz Mikuła [Mon, 25 Jun 2018 19:28:23 +0000 (21:28 +0200)]
Format the code