]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoMerge remote-tracking branch 'upstream/master' into luckily_literals_love_lints
Jay Hardee [Mon, 31 Jul 2017 23:17:42 +0000 (19:17 -0400)]
Merge remote-tracking branch 'upstream/master' into luckily_literals_love_lints

6 years agoLoose ends and factor out consistency logic.
Jay Hardee [Sun, 30 Jul 2017 22:54:56 +0000 (18:54 -0400)]
Loose ends and factor out consistency logic.

6 years agoUse DigitInfo instead of get_digits().
Jay Hardee [Sun, 30 Jul 2017 22:51:01 +0000 (18:51 -0400)]
Use DigitInfo instead of get_digits().

6 years agodo_lint() shouldn't format warnings.
Jay Hardee [Sun, 30 Jul 2017 22:46:41 +0000 (18:46 -0400)]
do_lint() shouldn't format warnings.

6 years agoImplement method for digit grouping suggestions
Jay Hardee [Sun, 30 Jul 2017 22:37:11 +0000 (18:37 -0400)]
Implement method for digit grouping suggestions

6 years agoAdd some structs for cleaning up lint logic later.
Jay Hardee [Sun, 30 Jul 2017 22:33:15 +0000 (18:33 -0400)]
Add some structs for cleaning up lint logic later.

DigitInfo for storing radix, type, digits of a literal.
WarningType for making warning messages consistent.

6 years agorustfmt
Jay Hardee [Sun, 30 Jul 2017 22:21:38 +0000 (18:21 -0400)]
rustfmt

6 years agoUpdate from upstream.
Matt Kraai [Mon, 24 Jul 2017 13:37:12 +0000 (06:37 -0700)]
Update from upstream.

6 years agoMerge pull request #1909 from Arnavion/fix-manifest-path
Oliver Schneider [Mon, 31 Jul 2017 20:42:17 +0000 (22:42 +0200)]
Merge pull request #1909 from Arnavion/fix-manifest-path

Canonicalize --manifest-path argument before comparing it to cargo metadata.

6 years agoUpdate .travis.yml
Oliver Schneider [Mon, 31 Jul 2017 11:10:04 +0000 (13:10 +0200)]
Update .travis.yml

6 years agoBump the version
Oliver Schneider [Mon, 31 Jul 2017 10:38:29 +0000 (12:38 +0200)]
Bump the version

6 years agoUpdate to latest master
Oliver Schneider [Mon, 31 Jul 2017 10:37:38 +0000 (12:37 +0200)]
Update to latest master

6 years agoMerge remote-tracking branch 'origin/master'
Oliver Schneider [Mon, 31 Jul 2017 07:19:25 +0000 (09:19 +0200)]
Merge remote-tracking branch 'origin/master'

6 years agoCanonicalize --manifest-path argument before comparing it to cargo metadata.
Arnavion [Fri, 28 Jul 2017 22:22:31 +0000 (15:22 -0700)]
Canonicalize --manifest-path argument before comparing it to cargo metadata.

Before this change, a relative path like `--manifest-path=./Cargo.toml` would
fail to find a matching package in the cargo metadata. With this change,
both the argument and the cargo metadata path are canonicalized before
comparison.

6 years agoBump the version
Oliver Schneider [Fri, 28 Jul 2017 07:23:03 +0000 (09:23 +0200)]
Bump the version

6 years agoRustup gets rid of false positives
Oliver Schneider [Fri, 28 Jul 2017 07:08:09 +0000 (09:08 +0200)]
Rustup gets rid of false positives

6 years agoMerge pull request #1896 from Arnavion/fix-workspace
Oliver Schneider [Thu, 27 Jul 2017 13:21:09 +0000 (15:21 +0200)]
Merge pull request #1896 from Arnavion/fix-workspace

Fix logic that determines closest parent crate when invoked from a subdirectory.

6 years agoFix typo in previous commit
Oliver Schneider [Thu, 27 Jul 2017 11:37:21 +0000 (13:37 +0200)]
Fix typo in previous commit

6 years agoWrong placement of inner attribute in previous commit
Oliver Schneider [Thu, 27 Jul 2017 11:35:34 +0000 (13:35 +0200)]
Wrong placement of inner attribute in previous commit

6 years agoRustc doesn't generate expansion info for `cfg!`
Oliver Schneider [Thu, 27 Jul 2017 11:04:27 +0000 (13:04 +0200)]
Rustc doesn't generate expansion info for `cfg!`

6 years agoFix logic that determines closest parent crate when invoked from a subdirectory.
Arnavion [Thu, 27 Jul 2017 07:04:17 +0000 (00:04 -0700)]
Fix logic that determines closest parent crate when invoked from a subdirectory.

The previous logic incorrectly matches the deepest child of the current
directory that is a crate.

6 years agoBump the version
Oliver Schneider [Mon, 24 Jul 2017 14:29:47 +0000 (16:29 +0200)]
Bump the version

6 years agoGet rid of double double colons
Oliver Schneider [Mon, 24 Jul 2017 14:28:41 +0000 (16:28 +0200)]
Get rid of double double colons

6 years agoMerge pull request #1899 from rust-lang-nursery/ui_test_changes
Oliver Schneider [Mon, 24 Jul 2017 14:25:54 +0000 (16:25 +0200)]
Merge pull request #1899 from rust-lang-nursery/ui_test_changes

Fix ui tests

6 years agoMerge pull request #1903 from kraai/fix-build
Oliver Schneider [Mon, 24 Jul 2017 14:20:35 +0000 (16:20 +0200)]
Merge pull request #1903 from kraai/fix-build

Set show_code_when_inline to true

6 years agoSet show_code_when_inline to true
Matt Kraai [Mon, 24 Jul 2017 13:37:12 +0000 (06:37 -0700)]
Set show_code_when_inline to true

Fixes #1902

6 years agoUse if let over match.
Jay Hardee [Sat, 22 Jul 2017 23:54:44 +0000 (19:54 -0400)]
Use if let over match.

6 years agoFix lint descriptions.
Jay Hardee [Sat, 22 Jul 2017 23:49:47 +0000 (19:49 -0400)]
Fix lint descriptions.

6 years agoAdd lint for digit grouping.
Jay Hardee [Wed, 19 Jul 2017 23:56:32 +0000 (19:56 -0400)]
Add lint for digit grouping.

6 years agoFix ui tests
Oliver Schneider [Fri, 21 Jul 2017 08:40:23 +0000 (10:40 +0200)]
Fix ui tests

7 years agoBump the version
Oliver Schneider [Sun, 16 Jul 2017 17:48:55 +0000 (19:48 +0200)]
Bump the version

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