]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agomove ok_expect tests
Cameron Steffen [Tue, 10 Oct 2017 05:03:39 +0000 (00:03 -0500)]
move ok_expect tests

6 years agomove string_extend tests
Cameron Steffen [Tue, 10 Oct 2017 04:56:49 +0000 (23:56 -0500)]
move string_extend tests

6 years agomove cstring tests
Cameron Steffen [Tue, 10 Oct 2017 04:15:19 +0000 (23:15 -0500)]
move cstring tests

6 years agomove unnecessary clone tests
Cameron Steffen [Tue, 10 Oct 2017 04:07:12 +0000 (23:07 -0500)]
move unnecessary clone tests

6 years agomove single_char_pattern tests
Cameron Steffen [Tue, 10 Oct 2017 04:00:47 +0000 (23:00 -0500)]
move single_char_pattern tests

6 years agomove starts_ends_with tests
Cameron Steffen [Tue, 10 Oct 2017 03:45:03 +0000 (22:45 -0500)]
move starts_ends_with tests

6 years agoMerge pull request #2117 from sinkuu/improve_take_by_value
Oliver Schneider [Sun, 8 Oct 2017 18:14:55 +0000 (20:14 +0200)]
Merge pull request #2117 from sinkuu/improve_take_by_value

Improve needless_pass_by_value

6 years agoMerge pull request #2115 from niklasf/fix-manual-testing-docs
Oliver Schneider [Sun, 8 Oct 2017 18:12:26 +0000 (20:12 +0200)]
Merge pull request #2115 from niklasf/fix-manual-testing-docs

Fix manual testing command in docs

6 years agoMerge pull request #2116 from niklasf/range-plus-minus-one
Oliver Schneider [Sun, 8 Oct 2017 18:10:23 +0000 (20:10 +0200)]
Merge pull request #2116 from niklasf/range-plus-minus-one

Lint range_plus_one and range_minus_one (closes #329)

6 years agoAdd tests for range_plus_one and range_minus_one
Niklas Fiekas [Sun, 8 Oct 2017 10:43:23 +0000 (12:43 +0200)]
Add tests for range_plus_one and range_minus_one

6 years agoRemove intermediate vec
sinkuu [Sun, 8 Oct 2017 11:17:04 +0000 (20:17 +0900)]
Remove intermediate vec

6 years agoAllow range_plus_one while ..= ranges are unstable
Niklas Fiekas [Sun, 8 Oct 2017 10:42:17 +0000 (12:42 +0200)]
Allow range_plus_one while ..= ranges are unstable

6 years agoLint range_plus_one and range_minus_one (closes #329)
Niklas Fiekas [Sat, 7 Oct 2017 14:56:45 +0000 (16:56 +0200)]
Lint range_plus_one and range_minus_one (closes #329)

6 years agoFix manual testing command in docs
Niklas Fiekas [Sat, 7 Oct 2017 11:54:40 +0000 (13:54 +0200)]
Fix manual testing command in docs

6 years agoMerge pull request #2112 from topecongiro/issue-2109
Oliver Schneider [Sun, 8 Oct 2017 09:51:15 +0000 (11:51 +0200)]
Merge pull request #2112 from topecongiro/issue-2109

Add a suggestion to replace `map(f).unwrap_or(None)` with `and_then(f)`.

6 years agoMerge pull request #2067 from jugglerchris/no_effect_with_drop
Oliver Schneider [Sun, 8 Oct 2017 09:24:41 +0000 (11:24 +0200)]
Merge pull request #2067 from jugglerchris/no_effect_with_drop

Fix #2061 (don't suggest removing types which implement Drop)

6 years agoExclude Fn traits
sinkuu [Sun, 8 Oct 2017 09:04:45 +0000 (18:04 +0900)]
Exclude Fn traits

6 years agoDuplicate ptr_arg's suggestion logic
sinkuu [Sun, 8 Oct 2017 08:51:44 +0000 (17:51 +0900)]
Duplicate ptr_arg's suggestion logic

6 years agoReduce false-positives for needless_pass_by_value lint
sinkuu [Sun, 8 Oct 2017 01:23:41 +0000 (10:23 +0900)]
Reduce false-positives for needless_pass_by_value lint

Excluding a type whose reference also fulfills the trait bound.

6 years agoAdd a test with a struct containing a String.
Chris Emerson [Sat, 7 Oct 2017 22:32:09 +0000 (23:32 +0100)]
Add a test with a struct containing a String.

6 years agoMerge branch 'master' into no_effect_with_drop
Chris Emerson [Sat, 7 Oct 2017 22:24:36 +0000 (23:24 +0100)]
Merge branch 'master' into no_effect_with_drop

6 years agoAdd multiline case for test against map(f).unwrap_or(None)
Seiichi Uchida [Sat, 7 Oct 2017 12:14:30 +0000 (21:14 +0900)]
Add multiline case for test against map(f).unwrap_or(None)

6 years agoAdd a comment that explains about comparing snippet to raw text
Seiichi Uchida [Fri, 6 Oct 2017 15:10:45 +0000 (00:10 +0900)]
Add a comment that explains about comparing snippet to raw text

6 years agoUpdate OPTION_MAP_UNWRAP_OR lint
Seiichi Uchida [Fri, 6 Oct 2017 13:04:16 +0000 (22:04 +0900)]
Update OPTION_MAP_UNWRAP_OR lint

Add a suggestion to replace `map(f).unwrap_or(None)` with `and_then(f)`.

6 years agoMerge pull request #2111 from camsteffen/never_loop
Oliver Schneider [Fri, 6 Oct 2017 07:10:33 +0000 (09:10 +0200)]
Merge pull request #2111 from camsteffen/never_loop

Fix never_loop

6 years agofix never_loop
Cameron Steffen [Fri, 6 Oct 2017 05:04:39 +0000 (00:04 -0500)]
fix never_loop

6 years agoadd never_loop test
Cameron Steffen [Fri, 6 Oct 2017 04:46:08 +0000 (23:46 -0500)]
add never_loop test

6 years agoMerge pull request #1513 from sinkuu/identical_conversion
Oliver Schneider [Wed, 4 Oct 2017 14:06:12 +0000 (16:06 +0200)]
Merge pull request #1513 from sinkuu/identical_conversion

Add identity_conversion lint

6 years agoTest if #[allow] works
sinkuu [Wed, 4 Oct 2017 13:26:41 +0000 (22:26 +0900)]
Test if #[allow] works

6 years agoAdd identity_conversion lint (fixes #1051)
sinkuu [Sun, 5 Feb 2017 04:41:09 +0000 (13:41 +0900)]
Add identity_conversion lint (fixes #1051)

6 years agoMerge pull request #2103 from pizzaiter/fix-2099
Oliver Schneider [Tue, 3 Oct 2017 12:45:03 +0000 (14:45 +0200)]
Merge pull request #2103 from pizzaiter/fix-2099

Add some more lints for transmute

6 years agoAdd lints `transmute_int_to_*`
PizzaIter [Mon, 2 Oct 2017 15:23:24 +0000 (17:23 +0200)]
Add lints `transmute_int_to_*`

6 years agoMerge pull request #2065 from rust-lang-nursery/cargo_clippy
Oliver Schneider [Tue, 3 Oct 2017 11:28:53 +0000 (13:28 +0200)]
Merge pull request #2065 from rust-lang-nursery/cargo_clippy

Cargo clippy refactoring

6 years agoReduce the hackiness of cargo-clippy
Oliver Schneider [Mon, 18 Sep 2017 10:47:33 +0000 (12:47 +0200)]
Reduce the hackiness of cargo-clippy

6 years agoMerge pull request #1838 from rust-lang-nursery/fix-doc
Oliver Schneider [Sat, 30 Sep 2017 15:10:09 +0000 (17:10 +0200)]
Merge pull request #1838 from rust-lang-nursery/fix-doc

Don't lint autolinks in `doc_markdown`

6 years agoMerge pull request #2096 from lpesk/invalid-ref
Oliver Schneider [Sat, 30 Sep 2017 14:19:12 +0000 (16:19 +0200)]
Merge pull request #2096 from lpesk/invalid-ref

Lint for creation of invalid references

6 years agoHave a separate message for raw URLs in doc
mcarton [Mon, 19 Jun 2017 19:23:50 +0000 (21:23 +0200)]
Have a separate message for raw URLs in doc

6 years agoAdd the `url` crate as a dependency
mcarton [Mon, 19 Jun 2017 17:49:29 +0000 (19:49 +0200)]
Add the `url` crate as a dependency

6 years agoDon't lint autolinks in `doc_markdown`
mcarton [Sun, 18 Jun 2017 21:00:14 +0000 (23:00 +0200)]
Don't lint autolinks in `doc_markdown`

6 years agoalphabetize paths to pass dogfood
Laura Peskin [Sat, 30 Sep 2017 01:48:10 +0000 (21:48 -0400)]
alphabetize paths to pass dogfood

6 years agoadd tests for false positives
Laura Peskin [Sat, 30 Sep 2017 01:01:02 +0000 (21:01 -0400)]
add tests for false positives

6 years agoadd ui test for invalid_ref
Laura Peskin [Fri, 29 Sep 2017 02:52:10 +0000 (22:52 -0400)]
add ui test for invalid_ref

6 years agoadd lint for creation of invalid references
Laura Peskin [Fri, 29 Sep 2017 02:24:31 +0000 (22:24 -0400)]
add lint for creation of invalid references

6 years agoMerge pull request #2097 from rust-lang-nursery/fix-2041
Martin Carton [Fri, 29 Sep 2017 19:25:10 +0000 (21:25 +0200)]
Merge pull request #2097 from rust-lang-nursery/fix-2041

Fix detection of format and print macros

6 years agoFix regression with `print!`
mcarton [Fri, 29 Sep 2017 17:13:21 +0000 (19:13 +0200)]
Fix regression with `print!`

6 years agoFix regression with `format!`
mcarton [Fri, 29 Sep 2017 16:36:03 +0000 (18:36 +0200)]
Fix regression with `format!`

6 years agoMerge pull request #2084 from ykrivopalov/bit_mask_verbosity_threshold
Oliver Schneider [Fri, 29 Sep 2017 06:49:27 +0000 (08:49 +0200)]
Merge pull request #2084 from ykrivopalov/bit_mask_verbosity_threshold

Configuration option for VERBOSE_BIT_MASK threshold

6 years agoMerge pull request #2087 from Aaron1011/rustc_wrapper
Oliver Schneider [Fri, 29 Sep 2017 06:42:14 +0000 (08:42 +0200)]
Merge pull request #2087 from Aaron1011/rustc_wrapper

Set RUSTC_WRAPPER instead of RUSTC when invoking Cargo

6 years agoSet RUSTC_WRAPPER instead of RUSTC when invoking Cargo
Aaron Hill [Wed, 27 Sep 2017 18:17:08 +0000 (14:17 -0400)]
Set RUSTC_WRAPPER instead of RUSTC when invoking Cargo

Some build scripts rely on the RUSTC binary being the actual compiler
(e.g. parsing the output of 'RUSTC --version'). To prevent clippy from
breaking these build scripts, this commit sets RUSTC_WRAPPER instead.
This will cause Cargo to leave RUSTC unchanged, making the use of clippy
transparent to build scripts.

6 years agoMerge pull request #2091 from rust-lang-nursery/rustup
Manish Goregaokar [Thu, 28 Sep 2017 17:50:15 +0000 (10:50 -0700)]
Merge pull request #2091 from rust-lang-nursery/rustup

Rust upgrade to rustc 1.22.0-nightly (0e6f4cf51 2017-09-27)

6 years agoBump to 0.0.165
Manish Goregaokar [Thu, 28 Sep 2017 17:44:29 +0000 (10:44 -0700)]
Bump to 0.0.165

6 years agoUpdate changelog
Manish Goregaokar [Thu, 28 Sep 2017 17:44:26 +0000 (10:44 -0700)]
Update changelog

6 years agoUpdate ... -> ..= in tests
Manish Goregaokar [Thu, 28 Sep 2017 17:40:19 +0000 (10:40 -0700)]
Update ... -> ..= in tests

6 years agoUse ..= in the suggestion
Manish Goregaokar [Thu, 28 Sep 2017 17:35:14 +0000 (10:35 -0700)]
Use ..= in the suggestion

6 years agoRust upgrade to rustc 1.22.0-nightly (0e6f4cf51 2017-09-27)
Manish Goregaokar [Thu, 28 Sep 2017 14:11:34 +0000 (07:11 -0700)]
Rust upgrade to rustc 1.22.0-nightly (0e6f4cf51 2017-09-27)

6 years agoClarify verbose_bit_mask_threshold description
Yury Krivopalov [Tue, 26 Sep 2017 15:54:08 +0000 (18:54 +0300)]
Clarify verbose_bit_mask_threshold description

6 years agoMerge branch 'pr-1945'
Manish Goregaokar [Tue, 26 Sep 2017 03:11:07 +0000 (20:11 -0700)]
Merge branch 'pr-1945'

6 years agoMerge pull request #2085 from rust-lang-nursery/rustup
Manish Goregaokar [Tue, 26 Sep 2017 03:04:57 +0000 (20:04 -0700)]
Merge pull request #2085 from rust-lang-nursery/rustup

[WIP] Rustup to rustc 1.22.0-nightly (6c476ce46 2017-09-25)

6 years agoBump to 0.0.164
Manish Goregaokar [Tue, 26 Sep 2017 02:56:48 +0000 (19:56 -0700)]
Bump to 0.0.164

6 years agoRun prepublish script
Manish Goregaokar [Tue, 26 Sep 2017 02:54:24 +0000 (19:54 -0700)]
Run prepublish script

6 years agoFix dogfood needless-borrow
Manish Goregaokar [Tue, 26 Sep 2017 02:52:20 +0000 (19:52 -0700)]
Fix dogfood needless-borrow

6 years agoFix dogfood filter-map
Manish Goregaokar [Tue, 26 Sep 2017 02:52:13 +0000 (19:52 -0700)]
Fix dogfood filter-map

6 years agoReduce cyclomatic complexity of types::check_ty
Manish Goregaokar [Tue, 26 Sep 2017 02:44:50 +0000 (19:44 -0700)]
Reduce cyclomatic complexity of types::check_ty

6 years agoRustup to rustc 1.22.0-nightly (6c476ce46 2017-09-25)
Manish Goregaokar [Tue, 26 Sep 2017 02:04:55 +0000 (19:04 -0700)]
Rustup to rustc 1.22.0-nightly (6c476ce46 2017-09-25)

6 years agoUpdate changelog
Manish Goregaokar [Tue, 26 Sep 2017 01:43:34 +0000 (18:43 -0700)]
Update changelog

6 years agoPass dogfood
Manish Goregaokar [Tue, 26 Sep 2017 01:39:50 +0000 (18:39 -0700)]
Pass dogfood

6 years agoMake it a ui test, update
Manish Goregaokar [Tue, 26 Sep 2017 01:32:05 +0000 (18:32 -0700)]
Make it a ui test, update

6 years agoUpdate lockfile
Manish Goregaokar [Mon, 25 Sep 2017 20:52:23 +0000 (13:52 -0700)]
Update lockfile

6 years agoUpdate line numbers
Manish Goregaokar [Mon, 25 Sep 2017 20:52:17 +0000 (13:52 -0700)]
Update line numbers

6 years agostabilizing feature iterator_for_each for rust 1.21.0
Michal Budzynski [Thu, 14 Sep 2017 14:04:04 +0000 (16:04 +0200)]
stabilizing feature iterator_for_each for rust 1.21.0

6 years agoConfiguration option for VERBOSE_BIT_MASK threshold
Yury Krivopalov [Mon, 25 Sep 2017 20:38:49 +0000 (23:38 +0300)]
Configuration option for VERBOSE_BIT_MASK threshold

By default is 1. u64, because I didn't figure out how to deserialize
u128 option from config.

6 years agoMerge pull request #2079 from rust-lang-nursery/ptr_arg-vs-capacity
Manish Goregaokar [Mon, 25 Sep 2017 17:22:57 +0000 (10:22 -0700)]
Merge pull request #2079 from rust-lang-nursery/ptr_arg-vs-capacity

avoid linting `ptr_arg` if `.capacity()` is called.

6 years agoadd lint for mutable borrow; may have false positives. pushed for feedback
Laura Peskin [Mon, 25 Sep 2017 06:00:21 +0000 (02:00 -0400)]
add lint for mutable borrow; may have false positives. pushed for feedback

6 years agoreplace defids with nodeids for local variables
Laura Peskin [Mon, 25 Sep 2017 05:44:47 +0000 (01:44 -0400)]
replace defids with nodeids for local variables

6 years agouse def_id of function in check_for_mutation
Laura Peskin [Sun, 24 Sep 2017 19:40:10 +0000 (15:40 -0400)]
use def_id of function in check_for_mutation

6 years agorefactor, add spans to warnings, add tests
Laura Peskin [Tue, 19 Sep 2017 00:10:33 +0000 (17:10 -0700)]
refactor, add spans to warnings, add tests

6 years agoUpdate test, fix lint
Manish Goregaokar [Wed, 30 Aug 2017 17:07:25 +0000 (10:07 -0700)]
Update test, fix lint

6 years agoRustup
Manish Goregaokar [Wed, 30 Aug 2017 16:47:28 +0000 (09:47 -0700)]
Rustup

6 years agoattempt to add check for mutation of range bound within loop; compiles but doesn...
Laura Peskin [Wed, 30 Aug 2017 14:38:13 +0000 (17:38 +0300)]
attempt to add check for mutation of range bound within loop; compiles but doesn't work as intended. pushed for feedback

6 years agoimplement lint for mutable range bound
Laura Peskin [Tue, 15 Aug 2017 16:41:59 +0000 (19:41 +0300)]
implement lint for mutable range bound

6 years agoadd lint declaration and example that should trigger the lint
Laura Peskin [Thu, 10 Aug 2017 23:21:43 +0000 (02:21 +0300)]
add lint declaration and example that should trigger the lint

6 years agoMerge pull request #2060 from mrecachinas/feature/int-plus-one
Oliver Schneider [Sun, 24 Sep 2017 11:57:56 +0000 (13:57 +0200)]
Merge pull request #2060 from mrecachinas/feature/int-plus-one

Addresses #1955 - Suggests >= y + 1 become > y

6 years agoChange rtype of int_plus_one detection to Option<String>
Michael Recachinas [Sun, 24 Sep 2017 11:31:12 +0000 (12:31 +0100)]
Change rtype of int_plus_one detection to Option<String>

6 years agoChange to returning Option<(bool, Option<String>)>
Michael Recachinas [Sun, 24 Sep 2017 09:30:29 +0000 (10:30 +0100)]
Change to returning Option<(bool, Option<String>)>

6 years agoRemove old return-value
Michael Recachinas [Sun, 24 Sep 2017 08:58:58 +0000 (09:58 +0100)]
Remove old return-value

6 years agoMerge pull request #2082 from rust-lang-nursery/rustup
Manish Goregaokar [Sat, 23 Sep 2017 20:47:07 +0000 (13:47 -0700)]
Merge pull request #2082 from rust-lang-nursery/rustup

Rust upgrade to rustc 1.22.0-nightly (14039a42a 2017-09-22)

6 years agofix docs
Manish Goregaokar [Sat, 23 Sep 2017 20:36:40 +0000 (13:36 -0700)]
fix docs

6 years agoBump to 0.0.163
Manish Goregaokar [Sat, 23 Sep 2017 20:36:18 +0000 (13:36 -0700)]
Bump to 0.0.163

6 years agoUpdate test expectations
Manish Goregaokar [Sat, 23 Sep 2017 20:35:06 +0000 (13:35 -0700)]
Update test expectations

6 years agoRust upgrade to rustc 1.22.0-nightly (14039a42a 2017-09-22)
Manish Goregaokar [Sat, 23 Sep 2017 20:30:29 +0000 (13:30 -0700)]
Rust upgrade to rustc 1.22.0-nightly (14039a42a 2017-09-22)

6 years agoUse span_lint_and_then as per feedback
Michael Recachinas [Sat, 23 Sep 2017 18:32:11 +0000 (19:32 +0100)]
Use span_lint_and_then as per feedback

6 years agoavoid linting `ptr_arg` if `.capacity()` is called. Also suggest removing `.as_str...
Andre Bogus [Wed, 20 Sep 2017 21:59:23 +0000 (23:59 +0200)]
avoid linting `ptr_arg` if `.capacity()` is called. Also suggest removing `.as_str()` where applicable.

THis fixes #2070.

Also fixes a few formatting mishaps

6 years agoMove has_drop to the utils module.
Chris Emerson [Tue, 19 Sep 2017 20:38:35 +0000 (21:38 +0100)]
Move has_drop to the utils module.

6 years agoMerge pull request #2069 from rust-lang-nursery/rustup
Manish Goregaokar [Tue, 19 Sep 2017 03:36:34 +0000 (20:36 -0700)]
Merge pull request #2069 from rust-lang-nursery/rustup

Rust upgrade to rustc 1.22.0-nightly (0701b37d9 2017-09-18)

6 years agoBump to 0.0.162
Manish Goregaokar [Tue, 19 Sep 2017 03:26:36 +0000 (20:26 -0700)]
Bump to 0.0.162

6 years agoRust upgrade to rustc 1.22.0-nightly (0701b37d9 2017-09-18)
Manish Goregaokar [Tue, 19 Sep 2017 03:23:08 +0000 (20:23 -0700)]
Rust upgrade to rustc 1.22.0-nightly (0701b37d9 2017-09-18)

6 years agoFix case in doc_valid_idents
Martin Carton [Mon, 18 Sep 2017 20:40:00 +0000 (22:40 +0200)]
Fix case in doc_valid_idents

BibTeX and BibLaTeX use the usual capitalization of TeX tools:
- https://www.ctan.org/pkg/bibtex
- https://www.ctan.org/pkg/biblatex

6 years agoMerge pull request #2066 from lucab/ups/doc-markdown
Martin Carton [Mon, 18 Sep 2017 20:34:43 +0000 (22:34 +0200)]
Merge pull request #2066 from lucab/ups/doc-markdown

lints/doc_markdown: add two more entries

6 years agoUpdate unnecessary_operation and no_effect to not suggest removing
Chris Emerson [Mon, 18 Sep 2017 19:07:33 +0000 (20:07 +0100)]
Update unnecessary_operation and no_effect to not suggest removing
structs/enums wrappers when that type implements Drop as noted
in #2061.

6 years agolints/doc_markdown: add two more entries
Luca Bruno [Mon, 18 Sep 2017 14:44:28 +0000 (14:44 +0000)]
lints/doc_markdown: add two more entries