]> git.lizzy.rs Git - rust.git/log
rust.git
7 years agoMerge pull request #1883 from Manishearth/stash
Oliver Schneider [Sun, 16 Jul 2017 17:47:16 +0000 (19:47 +0200)]
Merge pull request #1883 from Manishearth/stash

Fix various needless_range_loop false positives

7 years agoFix path in cargo.toml, which was accepted by previous cargo versions
Oliver Schneider [Sun, 16 Jul 2017 17:46:06 +0000 (19:46 +0200)]
Fix path in cargo.toml, which was accepted by previous cargo versions

7 years agoFix various needless_range_loop false positives
Oliver Schneider [Mon, 10 Jul 2017 13:30:28 +0000 (15:30 +0200)]
Fix various needless_range_loop false positives

7 years agoUpdate rustc output
Oliver Schneider [Mon, 10 Jul 2017 13:29:29 +0000 (15:29 +0200)]
Update rustc output

7 years agoMerge pull request #1888 from kraai/fix-build
Oliver Schneider [Sun, 16 Jul 2017 17:21:33 +0000 (19:21 +0200)]
Merge pull request #1888 from kraai/fix-build

Use token_to_string instead of binop_to_string

7 years agoCreate LICENSE
Manish Goregaokar [Thu, 13 Jul 2017 21:10:30 +0000 (14:10 -0700)]
Create LICENSE

7 years agoUse token_to_string instead of binop_to_string
Matt Kraai [Thu, 13 Jul 2017 15:27:57 +0000 (08:27 -0700)]
Use token_to_string instead of binop_to_string

Fixes #1887

7 years agoRun rustfmt
Oliver Schneider [Mon, 10 Jul 2017 08:21:21 +0000 (10:21 +0200)]
Run rustfmt

7 years agoBump the version
Oliver Schneider [Mon, 10 Jul 2017 08:20:49 +0000 (10:20 +0200)]
Bump the version

7 years agoRustup to *rustc 1.20.0-nightly (d84693b93 2017-07-09)*
Oliver Schneider [Mon, 10 Jul 2017 08:17:40 +0000 (10:17 +0200)]
Rustup to *rustc 1.20.0-nightly (d84693b93 2017-07-09)*

7 years agoMerge pull request #1871 from uHOOCCOOHu/never_loop_fix
Oliver Schneider [Wed, 5 Jul 2017 10:29:43 +0000 (12:29 +0200)]
Merge pull request #1871 from uHOOCCOOHu/never_loop_fix

Fix the bug remaining in #1586.

7 years agoMerge pull request #1873 from uHOOCCOOHu/fix-tests
Oliver Schneider [Wed, 5 Jul 2017 10:28:09 +0000 (12:28 +0200)]
Merge pull request #1873 from uHOOCCOOHu/fix-tests

Fix tests.

7 years agoAdd more test for #1586.
uHOOCCOOHu [Wed, 5 Jul 2017 01:56:05 +0000 (09:56 +0800)]
Add more test for #1586.

7 years agoSearch `continue` in `return` expr.
uHOOCCOOHu [Wed, 5 Jul 2017 01:55:37 +0000 (09:55 +0800)]
Search `continue` in `return` expr.

7 years agoPut tests for `step_by(0)` back.
uHOOCCOOHu [Wed, 5 Jul 2017 06:51:33 +0000 (14:51 +0800)]
Put tests for `step_by(0)` back.

7 years agoRemove tests using removed feature `step_by`.
uHOOCCOOHu [Wed, 5 Jul 2017 06:14:24 +0000 (14:14 +0800)]
Remove tests using removed feature `step_by`.
Update test outputs.

7 years agoMerge pull request #1860 from Vurich/master
Oliver Schneider [Tue, 4 Jul 2017 17:32:09 +0000 (19:32 +0200)]
Merge pull request #1860 from Vurich/master

Allow cargo-clippy to work in subdirectories

7 years agoignore needless_lifetimes false positive
Oliver Schneider [Tue, 4 Jul 2017 14:07:33 +0000 (16:07 +0200)]
ignore needless_lifetimes false positive

7 years agoMerge pull request #1847 from Manishearth/nested_while_let
Oliver Schneider [Tue, 4 Jul 2017 14:05:24 +0000 (16:05 +0200)]
Merge pull request #1847 from Manishearth/nested_while_let

don't lint while_let_on_iterator on nested loops

7 years agoMerge pull request #1852 from Manishearth/notrans
Oliver Schneider [Mon, 3 Jul 2017 07:29:54 +0000 (09:29 +0200)]
Merge pull request #1852 from Manishearth/notrans

Use `--emit=metadata` instead of `-Zno-trans`

7 years agoBump the version
Oliver Schneider [Mon, 3 Jul 2017 07:23:30 +0000 (09:23 +0200)]
Bump the version

7 years agoMerge pull request #1868 from messense/feature/fix-nightly-07-02
Oliver Schneider [Mon, 3 Jul 2017 07:22:12 +0000 (09:22 +0200)]
Merge pull request #1868 from messense/feature/fix-nightly-07-02

Fix compilation on rustc 1.20.0-nightly (067971139 2017-07-02)

7 years agoUpdate windows ui tests
messense [Mon, 3 Jul 2017 06:53:52 +0000 (14:53 +0800)]
Update windows ui tests

7 years agoUpdate ui tests for examples
messense [Mon, 3 Jul 2017 04:37:30 +0000 (12:37 +0800)]
Update ui tests for examples

7 years agoUpdate ui tests
messense [Mon, 3 Jul 2017 04:37:14 +0000 (12:37 +0800)]
Update ui tests

7 years agoFix compilation on rustc 1.20.0-nightly (067971139 2017-07-02)
messense [Mon, 3 Jul 2017 04:26:03 +0000 (12:26 +0800)]
Fix compilation on rustc 1.20.0-nightly (067971139 2017-07-02)

7 years agoMerge pull request #1866 from Manishearth/oli-obk-patch-2
Oliver Schneider [Sat, 1 Jul 2017 15:28:11 +0000 (17:28 +0200)]
Merge pull request #1866 from Manishearth/oli-obk-patch-2

Update compiletest dependency

7 years agoUpdate compiletest dependency
Oliver Schneider [Sat, 1 Jul 2017 14:22:09 +0000 (16:22 +0200)]
Update compiletest dependency

7 years agofix tests
Andre Bogus [Fri, 30 Jun 2017 00:43:52 +0000 (02:43 +0200)]
fix tests

7 years agoMerge pull request #1862 from messense/feature/fix-nightly-06-28
Oliver Schneider [Thu, 29 Jun 2017 14:54:04 +0000 (16:54 +0200)]
Merge pull request #1862 from messense/feature/fix-nightly-06-28

Fix compilation on rustc 1.20.0-nightly (69c65d296 2017-06-28)

7 years agoRun rustfmt
Oliver Schneider [Thu, 29 Jun 2017 14:07:43 +0000 (16:07 +0200)]
Run rustfmt

7 years agoBump the version
Oliver Schneider [Thu, 29 Jun 2017 14:04:53 +0000 (16:04 +0200)]
Bump the version

7 years agoFix compilation on rustc 1.20.0-nightly (69c65d296 2017-06-28)
messense [Thu, 29 Jun 2017 13:38:25 +0000 (21:38 +0800)]
Fix compilation on rustc 1.20.0-nightly (69c65d296 2017-06-28)

7 years agoAllow cargo-clippy to work in subdirectories
Vurich [Thu, 29 Jun 2017 10:57:28 +0000 (12:57 +0200)]
Allow cargo-clippy to work in subdirectories

7 years agoMerge pull request #1536 from CBenoit/master
Oliver Schneider [Wed, 28 Jun 2017 16:45:51 +0000 (18:45 +0200)]
Merge pull request #1536 from CBenoit/master

Add lint `&ref x` patterns that could be just `x`

7 years agoMerge pull request #1855 from Manishearth/for_loop
Oliver Schneider [Wed, 28 Jun 2017 10:41:40 +0000 (12:41 +0200)]
Merge pull request #1855 from Manishearth/for_loop

Fix for loop detection

7 years agoUpdate for latest master
Oliver Schneider [Wed, 28 Jun 2017 09:02:27 +0000 (11:02 +0200)]
Update for latest master

7 years agoUse `--emit=metadata` instead of `-Zno-trans`
Oliver Schneider [Mon, 26 Jun 2017 12:49:30 +0000 (14:49 +0200)]
Use `--emit=metadata` instead of `-Zno-trans`

fixes #1500

7 years agoImprove needless_borrowed_ref lint doc.
Benoît CORTIER [Mon, 26 Jun 2017 12:42:24 +0000 (14:42 +0200)]
Improve needless_borrowed_ref lint doc.

7 years agoAdd needless borrowed ref lint (WIP).
Benoît CORTIER [Sat, 24 Jun 2017 10:04:56 +0000 (12:04 +0200)]
Add needless borrowed ref lint (WIP).

7 years agodon't lint while_let_on_iterator on nested loops
Andre Bogus [Fri, 23 Jun 2017 16:29:18 +0000 (18:29 +0200)]
don't lint while_let_on_iterator on nested loops

The problem is with a nested loop, the iterator may well be reused. This
changeset introduces a false negative, when the iterator is initialized
within the outer loop. A further PR could get rid of this false negative
by checking if the iterator is indeed initialized within the outer loop.

7 years agoMerge pull request #1841 from sanxiyn/span-lint-and-sugg
Martin Carton [Thu, 22 Jun 2017 08:39:48 +0000 (10:39 +0200)]
Merge pull request #1841 from sanxiyn/span-lint-and-sugg

Use span_lint_and_sugg

7 years agoUse span_lint_and_sugg
Seo Sanghyeon [Wed, 21 Jun 2017 18:04:04 +0000 (03:04 +0900)]
Use span_lint_and_sugg

7 years agoMerge pull request #1839 from Manishearth/rustup-tests
llogiq [Mon, 19 Jun 2017 21:19:51 +0000 (23:19 +0200)]
Merge pull request #1839 from Manishearth/rustup-tests

Fix the test suite after cargo update

7 years agoFix the test suite after cargo update
mcarton [Mon, 19 Jun 2017 20:11:12 +0000 (22:11 +0200)]
Fix the test suite after cargo update

7 years agoMerge pull request #1837 from Manishearth/step_by
Martin Carton [Sun, 18 Jun 2017 15:09:14 +0000 (17:09 +0200)]
Merge pull request #1837 from Manishearth/step_by

Replace `Range::step_by` checking with `Iterator::step_by`

7 years agoReplace `Range::step_by` checking with `Iterator::step_by`
Oliver Schneider [Sun, 18 Jun 2017 13:14:46 +0000 (15:14 +0200)]
Replace `Range::step_by` checking with `Iterator::step_by`

7 years agoMerge pull request #1799 from Manishearth/docs
Martin Carton [Sat, 17 Jun 2017 17:24:33 +0000 (19:24 +0200)]
Merge pull request #1799 from Manishearth/docs

Rewrite `doc_markdown` to use `pulldown-cmark`

7 years agoFix links in change log
mcarton [Sat, 17 Jun 2017 16:27:28 +0000 (18:27 +0200)]
Fix links in change log

7 years agoDon't depend explicitly on `pulldown-cmark`
mcarton [Sat, 10 Jun 2017 17:31:34 +0000 (19:31 +0200)]
Don't depend explicitly on `pulldown-cmark`

Use the one from `rustc`'s, which avoids "multiple matching crate"
errors.

7 years agoDon't use default features for `pulldown-cmark`
mcarton [Thu, 1 Jun 2017 21:11:31 +0000 (23:11 +0200)]
Don't use default features for `pulldown-cmark`

7 years agoIgnore mix of {,non-}sugared doc in `doc_markdown`
mcarton [Tue, 30 May 2017 17:50:07 +0000 (19:50 +0200)]
Ignore mix of {,non-}sugared doc in `doc_markdown`

7 years agoAdd a new `doc_markdown` test from issue comments
mcarton [Tue, 30 May 2017 17:49:09 +0000 (19:49 +0200)]
Add a new `doc_markdown` test from issue comments

7 years agoLog that `doc_markdown` has been rewritten
mcarton [Tue, 30 May 2017 17:31:42 +0000 (19:31 +0200)]
Log that `doc_markdown` has been rewritten

I hope this will fix most false positives, and maybe some true
negatives, and won't introduce too much new FP.

7 years agoFix spans in all cases in `doc_markdown`
mcarton [Tue, 30 May 2017 17:28:44 +0000 (19:28 +0200)]
Fix spans in all cases in `doc_markdown`

7 years agoFix spans in `doc_markdown` in most cases
mcarton [Mon, 29 May 2017 22:11:08 +0000 (00:11 +0200)]
Fix spans in `doc_markdown` in most cases

7 years agoRewrite `doc_markdown` to use `pulldown-cmark`
mcarton [Sun, 28 May 2017 22:12:43 +0000 (00:12 +0200)]
Rewrite `doc_markdown` to use `pulldown-cmark`

7 years agoAdd `itertools` and `pulldown-cmark` dependencies
mcarton [Sun, 28 May 2017 22:11:58 +0000 (00:11 +0200)]
Add `itertools` and `pulldown-cmark` dependencies

7 years agoBump the version
Oliver Schneider [Fri, 16 Jun 2017 16:45:07 +0000 (18:45 +0200)]
Bump the version

7 years agoCHANGELOG is ordered after Cargo
Oliver Schneider [Fri, 16 Jun 2017 16:44:41 +0000 (18:44 +0200)]
CHANGELOG is ordered after Cargo

7 years agoMerge pull request #1833 from messense/feature/fix-nightly-06-16
Oliver Schneider [Fri, 16 Jun 2017 16:42:24 +0000 (18:42 +0200)]
Merge pull request #1833 from messense/feature/fix-nightly-06-16

rustup to rustc 1.19.0-nightly (258ae6dd9 2017-06-15)

7 years agoUpdate ui tests
messense [Fri, 16 Jun 2017 03:41:41 +0000 (11:41 +0800)]
Update ui tests

7 years agorustup to rustc 1.19.0-nightly (258ae6dd9 2017-06-15)
messense [Fri, 16 Jun 2017 03:30:55 +0000 (11:30 +0800)]
rustup to rustc 1.19.0-nightly (258ae6dd9 2017-06-15)

7 years agoMerge pull request #1830 from scott-linder/generic-new-without-default
Martin Carton [Wed, 14 Jun 2017 22:12:46 +0000 (00:12 +0200)]
Merge pull request #1830 from scott-linder/generic-new-without-default

Ignore new-without-default lint when `new` method has generic types

7 years agoIgnore new-without-default lint when `new` method has generic types
scott-linder [Wed, 14 Jun 2017 16:50:19 +0000 (12:50 -0400)]
Ignore new-without-default lint when `new` method has generic types

There may be no sensible `Default` impl if the result of `new` depends
on a type parameter.

7 years agoMerge pull request #1501 from scott-linder/types-borrow-box
Oliver Schneider [Tue, 13 Jun 2017 09:30:52 +0000 (11:30 +0200)]
Merge pull request #1501 from scott-linder/types-borrow-box

Types borrow box

7 years agoMerge pull request #1827 from erickt/master
llogiq [Tue, 13 Jun 2017 04:53:17 +0000 (06:53 +0200)]
Merge pull request #1827 from erickt/master

`in_macro` check in `NEEDLESS_RETURN`

7 years ago`in_macro` check in `NEEDLESS_RETURN`
Erick Tryzelaar [Tue, 13 Jun 2017 01:36:36 +0000 (18:36 -0700)]
`in_macro` check in `NEEDLESS_RETURN`

This allows you to define a macro like `try!(...)` that embeds an
early exit without emitting the "needless_return" warning.

Closes #1271.

7 years agoMerge pull request #1826 from Manishearth/multi-zero-prefix
Oliver Schneider [Mon, 12 Jun 2017 20:06:51 +0000 (22:06 +0200)]
Merge pull request #1826 from Manishearth/multi-zero-prefix

deal with multiple prefixed zeros in literals

7 years agodeal with multiple prefixed zeros in literals
Andre Bogus [Mon, 12 Jun 2017 18:41:00 +0000 (20:41 +0200)]
deal with multiple prefixed zeros in literals

7 years agoTest for trait method decl/impl for borrowed box.
scott-linder [Mon, 12 Jun 2017 12:44:08 +0000 (08:44 -0400)]
Test for trait method decl/impl for borrowed box.

7 years agoDocument `check_ty` and its new `is_local` arg.
scott-linder [Mon, 12 Jun 2017 12:43:02 +0000 (08:43 -0400)]
Document `check_ty` and its new `is_local` arg.

7 years agoMerge nested `if` into adjacent `if_let_chain!`
scott-linder [Mon, 12 Jun 2017 12:38:29 +0000 (08:38 -0400)]
Merge nested `if` into adjacent `if_let_chain!`

7 years agoMerge pull request #1804 from camsteffen/never_loop
Oliver Schneider [Mon, 12 Jun 2017 06:08:19 +0000 (08:08 +0200)]
Merge pull request #1804 from camsteffen/never_loop

fix never_loop

7 years agofix another never_loop
Cameron Steffen [Sun, 11 Jun 2017 23:37:59 +0000 (18:37 -0500)]
fix another never_loop

7 years agoMerge branch 'master' into never_loop
Cameron Steffen [Sun, 11 Jun 2017 23:25:26 +0000 (18:25 -0500)]
Merge branch 'master' into never_loop

7 years agoTest for local types in `LINKEDLIST` and `BOX_VEC`
scott-linder [Sun, 11 Jun 2017 16:30:48 +0000 (12:30 -0400)]
Test for local types in `LINKEDLIST` and `BOX_VEC`

Add negative tests for types in local declarations in the `LINKEDLIST`
and `BOX_VEC` lints. They share a pass with `BORROWED_BOX` which does
check local delclarations.

7 years agoAdd `check_local` to `TypePass` for `BORROWED_BOX`
scott-linder [Sun, 11 Jun 2017 16:11:20 +0000 (12:11 -0400)]
Add `check_local` to `TypePass` for `BORROWED_BOX`

Adds a boolean flag to indicate whether the current type in `check_ty`
is in a local declaration, as only the borrowed box lint should consider
these types.

7 years agoCommit updated example stderr
scott-linder [Sun, 11 Jun 2017 14:49:34 +0000 (10:49 -0400)]
Commit updated example stderr

7 years agoUse span_suggestion in borrowed_box lint
scott-linder [Sun, 11 Jun 2017 03:51:37 +0000 (23:51 -0400)]
Use span_suggestion in borrowed_box lint

7 years agoMove old-style test to examples
scott-linder [Sun, 11 Jun 2017 03:50:57 +0000 (23:50 -0400)]
Move old-style test to examples

7 years agoAdd more exhaustive tests for borrow_box
scott-linder [Thu, 2 Feb 2017 15:55:27 +0000 (10:55 -0500)]
Add more exhaustive tests for borrow_box

7 years agoRecurse into inner type when not `&Box<T>`
scott-linder [Thu, 2 Feb 2017 14:29:03 +0000 (09:29 -0500)]
Recurse into inner type when not `&Box<T>`

7 years agoActually fix the lint applied
scott-linder [Thu, 2 Feb 2017 13:36:40 +0000 (08:36 -0500)]
Actually fix the lint applied

7 years agoFix typo in types check
scott-linder [Wed, 1 Feb 2017 16:17:17 +0000 (11:17 -0500)]
Fix typo in types check

7 years agocheck for borrowed box types
scott-linder [Wed, 1 Feb 2017 04:19:33 +0000 (23:19 -0500)]
check for borrowed box types

7 years agoBump to 0.0.139
Manish Goregaokar [Sun, 11 Jun 2017 04:46:26 +0000 (21:46 -0700)]
Bump to 0.0.139

7 years agoBump the version
Manish Goregaokar [Sun, 11 Jun 2017 04:45:53 +0000 (21:45 -0700)]
Bump the version

7 years agoMerge pull request #1823 from eddyb/nightly-magic
Manish Goregaokar [Sun, 11 Jun 2017 04:43:41 +0000 (21:43 -0700)]
Merge pull request #1823 from eddyb/nightly-magic

Update for rustc 1.19.0-nightly (4bf5c99af 2017-06-10) and some cleanups.

7 years agoDo not use .sty except for matching on it.
Eduard-Mihai Burtescu [Sun, 11 Jun 2017 03:24:13 +0000 (06:24 +0300)]
Do not use .sty except for matching on it.

7 years agoRemove uses of span_if_local.
Eduard-Mihai Burtescu [Sun, 11 Jun 2017 03:15:53 +0000 (06:15 +0300)]
Remove uses of span_if_local.

7 years agoAbide by the common rustc::ty conventions.
Eduard-Mihai Burtescu [Sun, 11 Jun 2017 02:57:25 +0000 (05:57 +0300)]
Abide by the common rustc::ty conventions.

7 years agoUpdate for rustc 1.19.0-nightly (4bf5c99af 2017-06-10).
Eduard-Mihai Burtescu [Sun, 11 Jun 2017 02:34:47 +0000 (05:34 +0300)]
Update for rustc 1.19.0-nightly (4bf5c99af 2017-06-10).

7 years agoMerge pull request #1820 from andersk/nightly
Oliver Schneider [Sat, 10 Jun 2017 07:50:35 +0000 (09:50 +0200)]
Merge pull request #1820 from andersk/nightly

Pass extra parameter to CrateStore::item_children for rustc nightly

7 years agoPass extra parameter to CrateStore::item_children for rustc nightly
Anders Kaseorg [Sat, 10 Jun 2017 05:41:01 +0000 (01:41 -0400)]
Pass extra parameter to CrateStore::item_children for rustc nightly

rust-lang/rust#42507

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
7 years agoMerge pull request #1819 from Manishearth/fix-1814
Martin Carton [Thu, 8 Jun 2017 20:36:21 +0000 (22:36 +0200)]
Merge pull request #1819 from Manishearth/fix-1814

Check for `for` loop desugaring in highering

7 years agoCheck for `for` loop desugaring in highering
mcarton [Thu, 8 Jun 2017 18:16:18 +0000 (20:16 +0200)]
Check for `for` loop desugaring in highering

7 years agoMerge pull request #1816 from Manishearth/fix-451
Oliver Schneider [Wed, 7 Jun 2017 05:50:15 +0000 (07:50 +0200)]
Merge pull request #1816 from Manishearth/fix-451

Check for AsRef/AsMut arguments in wrong_self_convention

7 years agobetter naming, Iterator::eq
Andre Bogus [Wed, 7 Jun 2017 03:40:57 +0000 (05:40 +0200)]
better naming, Iterator::eq

7 years agoCheck for AsRef/AsMut arguments in wrong_self_convention
Andre Bogus [Tue, 6 Jun 2017 17:26:50 +0000 (19:26 +0200)]
Check for AsRef/AsMut arguments in wrong_self_convention

This fixes #451