]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoEnable the cast_lossless warning by default.
Dan Gohman [Tue, 29 Aug 2017 12:48:19 +0000 (05:48 -0700)]
Enable the cast_lossless warning by default.

6 years agoMerge pull request #1956 from sunfishcode/master
Oliver Schneider [Tue, 29 Aug 2017 06:50:36 +0000 (08:50 +0200)]
Merge pull request #1956 from sunfishcode/master

Add a lint for lossless casts.

6 years agoMerge pull request #1998 from montrivo/bug/is_empty-false-positive
Oliver Schneider [Tue, 29 Aug 2017 06:49:16 +0000 (08:49 +0200)]
Merge pull request #1998 from montrivo/bug/is_empty-false-positive

len_without_is_empty false positive #1740

6 years agolen_without_is_empty false positive #1740
Tim Nielens [Mon, 28 Aug 2017 21:13:56 +0000 (23:13 +0200)]
len_without_is_empty false positive #1740

6 years agoUpdate tests to current rustc
Oliver Schneider [Mon, 28 Aug 2017 16:16:16 +0000 (18:16 +0200)]
Update tests to current rustc

6 years agoAdd a lint for lossless casts.
Dan Gohman [Sun, 13 Aug 2017 21:58:17 +0000 (14:58 -0700)]
Add a lint for lossless casts.

6 years agoMerge pull request #1861 from CBenoit/master
Oliver Schneider [Mon, 28 Aug 2017 12:34:30 +0000 (14:34 +0200)]
Merge pull request #1861 from CBenoit/master

Add example for needless borrowed ref lint and register it

6 years agoMerge pull request #1986 from koivunej/manualtesting-help
Oliver Schneider [Sun, 27 Aug 2017 10:44:45 +0000 (12:44 +0200)]
Merge pull request #1986 from koivunej/manualtesting-help

CONTRIBUTING: add manual testing section

6 years agoMerge pull request #1994 from ishitatsuyuki/lint-cleanup
Oliver Schneider [Sun, 27 Aug 2017 10:44:14 +0000 (12:44 +0200)]
Merge pull request #1994 from ishitatsuyuki/lint-cleanup

Lint cleanup

6 years agoRemove unused extern crates
Tatsuyuki Ishi [Sun, 27 Aug 2017 07:04:20 +0000 (16:04 +0900)]
Remove unused extern crates

6 years agoReorder allow attributes to suppress unknown lint warning
Tatsuyuki Ishi [Sun, 27 Aug 2017 07:02:05 +0000 (16:02 +0900)]
Reorder allow attributes to suppress unknown lint warning

6 years agoMerge pull request #1992 from rust-lang-nursery/infinite_iter
Oliver Schneider [Sat, 26 Aug 2017 21:06:00 +0000 (23:06 +0200)]
Merge pull request #1992 from rust-lang-nursery/infinite_iter

New lint: (maybe_)infinite_iter

6 years agorename TriState -> Finiteness, docs
Andre Bogus [Sat, 26 Aug 2017 16:46:42 +0000 (18:46 +0200)]
rename TriState -> Finiteness, docs

6 years agofix match_path -> match_qpath rename
Andre Bogus [Fri, 25 Aug 2017 22:09:31 +0000 (00:09 +0200)]
fix match_path -> match_qpath rename

6 years agoNew lint: (maybe_)infinite_iter
Andre Bogus [Fri, 25 Aug 2017 20:20:52 +0000 (22:20 +0200)]
New lint: (maybe_)infinite_iter

This fixes #1870 (mostly, does not account for loops yet)

6 years agoMerge pull request #1989 from Frederick888/fix-1988
Martin Carton [Fri, 25 Aug 2017 10:39:53 +0000 (12:39 +0200)]
Merge pull request #1989 from Frederick888/fix-1988

Try to fix #1988

6 years agoBump the version to 0.0.154
mcarton [Fri, 25 Aug 2017 10:01:57 +0000 (12:01 +0200)]
Bump the version to 0.0.154

6 years agoMerge pull request #1987 from alexeyzab/rename-match-path-old
Martin Carton [Fri, 25 Aug 2017 09:42:20 +0000 (11:42 +0200)]
Merge pull request #1987 from alexeyzab/rename-match-path-old

Rename `match_path_old` to `match_path`

6 years agofix PathParameters usage
Frederick Zhang [Fri, 25 Aug 2017 07:30:21 +0000 (17:30 +1000)]
fix PathParameters usage

6 years agoIncorporate upstream changes
Alexey Zabelin [Fri, 25 Aug 2017 00:46:40 +0000 (20:46 -0400)]
Incorporate upstream changes

6 years agoRename `match_path_old` to `match_path`
Alexey Zabelin [Thu, 24 Aug 2017 22:21:46 +0000 (18:21 -0400)]
Rename `match_path_old` to `match_path`

The old `match_path` was renamed to `match_qpath`.

As per #1983.

6 years agoMerge pull request #1959 from DarkEld3r/1884-borrowed-box-any
Oliver Schneider [Thu, 24 Aug 2017 21:59:15 +0000 (23:59 +0200)]
Merge pull request #1959 from DarkEld3r/1884-borrowed-box-any

Fix borrowed_box lint for Box<Any>

6 years agoCONTRIBUTING: add manual testing section
Joonas Koivunen [Thu, 24 Aug 2017 15:17:35 +0000 (18:17 +0300)]
CONTRIBUTING: add manual testing section

6 years agoMerge pull request #1984 from MaloJaffre/fix_int_to_bits
Oliver Schneider [Thu, 24 Aug 2017 07:11:13 +0000 (09:11 +0200)]
Merge pull request #1984 from MaloJaffre/fix_int_to_bits

Fix int_ty_to_nbits

6 years agoMerge pull request #1982 from rust-lang-nursery/bytecount
Oliver Schneider [Thu, 24 Aug 2017 07:09:56 +0000 (09:09 +0200)]
Merge pull request #1982 from rust-lang-nursery/bytecount

new lint: naive_bytecount

6 years agoFix int_ty_to_nbits
Malo Jaffré [Wed, 23 Aug 2017 20:18:04 +0000 (22:18 +0200)]
Fix int_ty_to_nbits

Thanks @oli-obk for the detailed instructions.
Fixes #1957.

6 years agoadd closure arg check, also catch non-consts
Andre Bogus [Wed, 23 Aug 2017 15:54:35 +0000 (17:54 +0200)]
add closure arg check, also catch non-consts

6 years agoMerge pull request #1979 from montrivo/use_self
Oliver Schneider [Wed, 23 Aug 2017 14:40:19 +0000 (16:40 +0200)]
Merge pull request #1979 from montrivo/use_self

lint #1674: lifetimed types exclusion

6 years agoFix 'cyclomatic complexity' warning
Stanislav Tkach [Wed, 23 Aug 2017 14:13:51 +0000 (17:13 +0300)]
Fix 'cyclomatic complexity' warning

6 years agoFix borrowed_box lint for Box<Any>
Stanislav Tkach [Mon, 14 Aug 2017 20:04:56 +0000 (23:04 +0300)]
Fix borrowed_box lint for Box<Any>

6 years agonew lint: naive_bytecount
Andre Bogus [Tue, 22 Aug 2017 21:45:08 +0000 (23:45 +0200)]
new lint: naive_bytecount

6 years agolint #1674: lifetimed types exclusion
Tim Nielens [Tue, 22 Aug 2017 17:22:47 +0000 (19:22 +0200)]
lint #1674: lifetimed types exclusion

add expect() message and update test results

6 years agolint #1674: lifetimed types exclusion
Tim Nielens [Mon, 21 Aug 2017 22:18:37 +0000 (00:18 +0200)]
lint #1674: lifetimed types exclusion

6 years agoMerge pull request #1980 from bjgill/patch-1
Oliver Schneider [Tue, 22 Aug 2017 09:17:48 +0000 (11:17 +0200)]
Merge pull request #1980 from bjgill/patch-1

Changelog entry for `cargo clippy --all`

6 years agoChangelog entry for `cargo clippy --all`
Benjamin Gill [Tue, 22 Aug 2017 08:59:58 +0000 (09:59 +0100)]
Changelog entry for `cargo clippy --all`

Should have added this as part of #1975

6 years agoMerge pull request #1977 from rust-lang-nursery/panic
Oliver Schneider [Tue, 22 Aug 2017 08:20:02 +0000 (10:20 +0200)]
Merge pull request #1977 from rust-lang-nursery/panic

Fix a panic and a false positive

6 years agoMerge pull request #1975 from bjgill/clippy--all
Oliver Schneider [Tue, 22 Aug 2017 08:16:16 +0000 (10:16 +0200)]
Merge pull request #1975 from bjgill/clippy--all

Implement `cargo clippy --all`

6 years agoMerge pull request #1978 from rust-lang-nursery/fix-768
Oliver Schneider [Tue, 22 Aug 2017 08:15:32 +0000 (10:15 +0200)]
Merge pull request #1978 from rust-lang-nursery/fix-768

fix #768 by checking for message macro expansion

6 years agoRemove surplus clippy invocation in travis
Benjamin Gill [Tue, 22 Aug 2017 01:15:45 +0000 (02:15 +0100)]
Remove surplus clippy invocation in travis

6 years agoMerge remote-tracking branch 'upstream/master' into clippy--all
Benjamin Gill [Tue, 22 Aug 2017 01:11:32 +0000 (02:11 +0100)]
Merge remote-tracking branch 'upstream/master' into clippy--all

6 years agofix #768 by checking for message macro expansion
Andre Bogus [Mon, 21 Aug 2017 21:23:54 +0000 (23:23 +0200)]
fix #768 by checking for message macro expansion

6 years agoRebase and update ui test
Oliver Schneider [Mon, 21 Aug 2017 12:22:41 +0000 (14:22 +0200)]
Rebase and update ui test

6 years agoFinalize needless_borrowed_ref lint doc.
Benoît CORTIER [Sat, 1 Jul 2017 16:51:20 +0000 (18:51 +0200)]
Finalize needless_borrowed_ref lint doc.

Make sure the needless_borrowed_ref.stderr in examples is up to date
too.

6 years agoImprove needless_borrowed_ref lint: remove the hand rolled span part.
Benoît CORTIER [Sat, 1 Jul 2017 14:56:19 +0000 (16:56 +0200)]
Improve needless_borrowed_ref lint: remove the hand rolled span part.

6 years agoImprove needless_borrowed_ref and update its stderr.
Benoît CORTIER [Sat, 1 Jul 2017 10:02:00 +0000 (12:02 +0200)]
Improve needless_borrowed_ref and update its stderr.

6 years agoImprove needless_borrowed_ref and add suggestion to it.
Benoît CORTIER [Sat, 1 Jul 2017 10:01:39 +0000 (12:01 +0200)]
Improve needless_borrowed_ref and add suggestion to it.

6 years agoUpdate needless_borrowed_ref lint example.
Benoît CORTIER [Fri, 30 Jun 2017 14:07:29 +0000 (16:07 +0200)]
Update needless_borrowed_ref lint example.

6 years agoAdd needless_borrowed_ref example.
Benoît CORTIER [Thu, 29 Jun 2017 11:46:07 +0000 (13:46 +0200)]
Add needless_borrowed_ref example.

6 years agoImprove needless_borrowed_ref lint comments.
Benoît CORTIER [Thu, 29 Jun 2017 11:45:54 +0000 (13:45 +0200)]
Improve needless_borrowed_ref lint comments.

6 years agoNow register needless borrowed ref.
Benoît CORTIER [Thu, 29 Jun 2017 11:45:35 +0000 (13:45 +0200)]
Now register needless borrowed ref.

6 years agoMerge pull request #1973 from rust-lang-nursery/fix-1920
Oliver Schneider [Mon, 21 Aug 2017 11:52:26 +0000 (13:52 +0200)]
Merge pull request #1973 from rust-lang-nursery/fix-1920

remove stars at the beginning of multiline comments

6 years agoRun Dogfood for `use_self`
Oliver Schneider [Mon, 21 Aug 2017 11:32:12 +0000 (13:32 +0200)]
Run Dogfood for `use_self`

6 years agoDon't trigger `Self` suggestion inside derives
Oliver Schneider [Mon, 21 Aug 2017 10:58:06 +0000 (12:58 +0200)]
Don't trigger `Self` suggestion inside derives

6 years agoFix ICE #1969
Oliver Schneider [Mon, 21 Aug 2017 10:57:33 +0000 (12:57 +0200)]
Fix ICE #1969

6 years agoTest changes
Oliver Schneider [Mon, 21 Aug 2017 08:26:46 +0000 (10:26 +0200)]
Test changes

6 years agoVersion bump
Oliver Schneider [Mon, 21 Aug 2017 07:44:53 +0000 (09:44 +0200)]
Version bump

6 years agoMerge pull request #1971 from Frederick888/fix-1970
Oliver Schneider [Mon, 21 Aug 2017 07:35:59 +0000 (09:35 +0200)]
Merge pull request #1971 from Frederick888/fix-1970

Try to fix #1970

6 years agoMerge pull request #1931 from rust-lang-nursery/move_links
Oliver Schneider [Mon, 21 Aug 2017 07:35:19 +0000 (09:35 +0200)]
Merge pull request #1931 from rust-lang-nursery/move_links

Change all links to reflect the move to rust-lang-nursery

6 years agoAdd help text for `--all`
Benjamin Gill [Sun, 20 Aug 2017 04:10:13 +0000 (05:10 +0100)]
Add help text for `--all`

6 years agoAdd travis testing of `--all`
Benjamin Gill [Fri, 18 Aug 2017 17:31:51 +0000 (18:31 +0100)]
Add travis testing of `--all`

6 years agoRun Rustfmt-nightly
Benjamin Gill [Fri, 18 Aug 2017 17:11:15 +0000 (18:11 +0100)]
Run Rustfmt-nightly

6 years agoBasic implementation of `cargo clippy --all`
Benjamin Gill [Fri, 18 Aug 2017 16:57:33 +0000 (17:57 +0100)]
Basic implementation of `cargo clippy --all`

This implements workspace support for `cargo clippy` by running clippy
over all packages in the workspace (in serial).

This should probably be parallelised in future (as `cargo build --all`).

6 years agoremove stars at the beginning of multiline comments
Andre Bogus [Sat, 19 Aug 2017 20:52:49 +0000 (22:52 +0200)]
remove stars at the beginning of multiline comments

6 years agouse CompilerDesugaringKind
Frederick Zhang [Sat, 19 Aug 2017 08:03:29 +0000 (18:03 +1000)]
use CompilerDesugaringKind

6 years agoMerge pull request #1965 from montrivo/use_self
Oliver Schneider [Fri, 18 Aug 2017 18:54:18 +0000 (20:54 +0200)]
Merge pull request #1965 from montrivo/use_self

lint #1674: replace struct name with `Self` when applicable

6 years agolint #1674: replace struct name with `Self` when applicable
Tim Nielens [Fri, 18 Aug 2017 17:42:26 +0000 (19:42 +0200)]
lint #1674: replace struct name with `Self` when applicable

SelfType const and suggestion

6 years agoMerge pull request #1967 from koivunej/issue-1964
Oliver Schneider [Fri, 18 Aug 2017 15:01:48 +0000 (17:01 +0200)]
Merge pull request #1967 from koivunej/issue-1964

Fix let_unit_value with for loop iterating over units

6 years agotests/ui/let_unit: fix comment and example code
Joonas Koivunen [Fri, 18 Aug 2017 14:29:05 +0000 (17:29 +0300)]
tests/ui/let_unit: fix comment and example code

The previous version would had deadlocked as the Sender remained alive
and iterator would had never became complete. Just in case someone
decided to run it.

6 years agois_from_for_loop: document what first check matches
Joonas Koivunen [Fri, 18 Aug 2017 14:12:00 +0000 (17:12 +0300)]
is_from_for_loop: document what first check matches

Removing the first check will break a lot of for-loop UI tests and the
dogfood test.

6 years agois_from_for_desugar: add match for `for _ in x`
Joonas Koivunen [Fri, 18 Aug 2017 14:07:39 +0000 (17:07 +0300)]
is_from_for_desugar: add match for `for _ in x`

This will avoid `let_unit_value` in the examples in the ui-test.
It might match too widely.

6 years agolint #1674: replace struct name with `Self` when applicable
Tim Nielens [Fri, 28 Jul 2017 11:28:07 +0000 (13:28 +0200)]
lint #1674: replace struct name with `Self` when applicable

6 years agoBump the version
Oliver Schneider [Tue, 15 Aug 2017 09:11:20 +0000 (11:11 +0200)]
Bump the version

6 years agoRustup
Oliver Schneider [Tue, 15 Aug 2017 09:10:49 +0000 (11:10 +0200)]
Rustup

6 years agoMerge pull request #1953 from mati865/master
Oliver Schneider [Mon, 14 Aug 2017 15:12:05 +0000 (17:12 +0200)]
Merge pull request #1953 from mati865/master

Fix verbose_bit_mask off by one error

6 years agoFix verbose_bit_mask off by one error
Mateusz Mikula [Sun, 13 Aug 2017 13:13:13 +0000 (15:13 +0200)]
Fix verbose_bit_mask off by one error

Fixes #1940

6 years agoMerge branch 'master' into move_links
Oliver Schneider [Mon, 14 Aug 2017 08:07:26 +0000 (10:07 +0200)]
Merge branch 'master' into move_links

6 years agoUpdate for rustc output changes
Oliver Schneider [Mon, 14 Aug 2017 07:51:16 +0000 (09:51 +0200)]
Update for rustc output changes

6 years agoBump the version
Oliver Schneider [Sun, 13 Aug 2017 18:57:55 +0000 (20:57 +0200)]
Bump the version

6 years agoRustup
Oliver Schneider [Fri, 11 Aug 2017 12:11:46 +0000 (14:11 +0200)]
Rustup

6 years agoHandfix dogfood issues with the rustfmt changes
Oliver Schneider [Wed, 9 Aug 2017 07:59:38 +0000 (09:59 +0200)]
Handfix dogfood issues with the rustfmt changes

6 years agoRustfmt
Oliver Schneider [Wed, 9 Aug 2017 07:30:56 +0000 (09:30 +0200)]
Rustfmt

6 years agoBump the version
Oliver Schneider [Wed, 9 Aug 2017 06:57:31 +0000 (08:57 +0200)]
Bump the version

6 years agoMerge pull request #1951 from rust-lang-nursery/doc_improvements
Oliver Schneider [Sun, 13 Aug 2017 19:02:10 +0000 (21:02 +0200)]
Merge pull request #1951 from rust-lang-nursery/doc_improvements

some small doc improvements

6 years agosome small doc improvements
Andre Bogus [Sat, 12 Aug 2017 22:14:28 +0000 (00:14 +0200)]
some small doc improvements

6 years agoMerge pull request #1942 from Frederick888/fix-1941
llogiq [Wed, 9 Aug 2017 05:16:52 +0000 (07:16 +0200)]
Merge pull request #1942 from Frederick888/fix-1941

Try to fix #1941

6 years agofix usage of for_each_relevant_impl
Frederick Zhang [Wed, 9 Aug 2017 03:21:33 +0000 (13:21 +1000)]
fix usage of for_each_relevant_impl

6 years agoMerge pull request #1935 from rust-lang-nursery/oli-obk-patch-2
Martin Carton [Mon, 7 Aug 2017 17:56:52 +0000 (19:56 +0200)]
Merge pull request #1935 from rust-lang-nursery/oli-obk-patch-2

Don't cache builds on travis

6 years agoMerge pull request #1936 from rust-lang-nursery/oli-obk-patch-3
Martin Carton [Mon, 7 Aug 2017 17:54:04 +0000 (19:54 +0200)]
Merge pull request #1936 from rust-lang-nursery/oli-obk-patch-3

Update CONTRIBUTING.md

6 years agoUpdate CONTRIBUTING.md
Oliver Schneider [Mon, 7 Aug 2017 15:33:27 +0000 (17:33 +0200)]
Update CONTRIBUTING.md

6 years agoMerge pull request #1934 from killercup/feature/docs-version-ordering
Oliver Schneider [Mon, 7 Aug 2017 11:38:38 +0000 (13:38 +0200)]
Merge pull request #1934 from killercup/feature/docs-version-ordering

Docs index: Sort versions in a nice way

6 years agoDon't cache builds on travis
Oliver Schneider [Mon, 7 Aug 2017 11:34:36 +0000 (13:34 +0200)]
Don't cache builds on travis

6 years agoDocs index: Sort versions in a nice way
Pascal Hertleif [Mon, 7 Aug 2017 10:57:17 +0000 (12:57 +0200)]
Docs index: Sort versions in a nice way

This introduces a very sophisticated algorithm to determine the ordering
of versions on the rendered docs' start page.

(Spoiler alert: It maps "master" and "current" to the largest possible
float values and converts a version like "1.2.3" to "1002003".)

6 years agoMerge pull request #1923 from killercup/feature/1917-docs-versions-index
Oliver Schneider [Mon, 7 Aug 2017 06:39:43 +0000 (08:39 +0200)]
Merge pull request #1923 from killercup/feature/1917-docs-versions-index

Generate version index for docs domain index

6 years agoChange all links to reflect the move to rust-lang-nursery
Andre Bogus [Sun, 6 Aug 2017 11:10:21 +0000 (13:10 +0200)]
Change all links to reflect the move to rust-lang-nursery

6 years agoBump the version
Andre Bogus [Sun, 6 Aug 2017 20:50:19 +0000 (22:50 +0200)]
Bump the version

6 years agofixing dogfood
Andre Bogus [Sun, 6 Aug 2017 09:09:53 +0000 (11:09 +0200)]
fixing dogfood

6 years agoMerge pull request #1929 from Frederick888/fix-1928
llogiq [Sun, 6 Aug 2017 06:57:32 +0000 (08:57 +0200)]
Merge pull request #1929 from Frederick888/fix-1928

Try to fix #1928

6 years agofix ConstFloat usage
Frederick Zhang [Sun, 6 Aug 2017 05:06:21 +0000 (15:06 +1000)]
fix ConstFloat usage

6 years agoMerge pull request #1913 from rust-lang-nursery/while_let_loop
Oliver Schneider [Fri, 4 Aug 2017 08:16:52 +0000 (10:16 +0200)]
Merge pull request #1913 from rust-lang-nursery/while_let_loop

Find binding or assignment within outer loop

6 years agounify checks into single visitor, fix block walk
Andre Bogus [Wed, 2 Aug 2017 22:41:46 +0000 (00:41 +0200)]
unify checks into single visitor, fix block walk