]> git.lizzy.rs Git - rust.git/log
rust.git
6 years agoDeprecate should_assert_eq lint
cgm616 [Fri, 20 Oct 2017 04:42:04 +0000 (23:42 -0500)]
Deprecate should_assert_eq lint

This should close #2090.

6 years agoFix constant promotion stuff
Manish Goregaokar [Thu, 19 Oct 2017 17:16:03 +0000 (10:16 -0700)]
Fix constant promotion stuff

6 years agoPass null borrow context to EUV
Manish Goregaokar [Thu, 19 Oct 2017 16:27:58 +0000 (09:27 -0700)]
Pass null borrow context to EUV

6 years agoMerge pull request #2149 from rust-lang-nursery/lockfile
Oliver Schneider [Wed, 18 Oct 2017 11:57:29 +0000 (13:57 +0200)]
Merge pull request #2149 from rust-lang-nursery/lockfile

Remove workspace and Cargo.lock

6 years agoRemove workspace and Cargo.lock
Oliver Schneider [Wed, 18 Oct 2017 06:22:06 +0000 (08:22 +0200)]
Remove workspace and Cargo.lock

6 years agoAdd test
sinkuu [Wed, 18 Oct 2017 05:06:38 +0000 (14:06 +0900)]
Add test

6 years agoDetect proc-macro in needless_pass_by_value
sinkuu [Tue, 17 Oct 2017 22:29:47 +0000 (07:29 +0900)]
Detect proc-macro in needless_pass_by_value

Fixes #1876

6 years agoFix #2123 : check that the source and destination are different for manual memcpy
clippered [Tue, 17 Oct 2017 20:04:35 +0000 (07:04 +1100)]
Fix #2123 : check that the source and destination are different for manual memcpy

6 years agoE-easy -> "good first issue" issue label
Oliver Schneider [Tue, 17 Oct 2017 13:32:50 +0000 (15:32 +0200)]
E-easy -> "good first issue" issue label

6 years agoMerge pull request #2131 from devonhollowood/suggest-print
Oliver Schneider [Tue, 17 Oct 2017 13:26:41 +0000 (15:26 +0200)]
Merge pull request #2131 from devonhollowood/suggest-print

Suggest print

6 years agoMerge pull request #2120 from sinkuu/implicit_hasher
Oliver Schneider [Tue, 17 Oct 2017 13:24:20 +0000 (15:24 +0200)]
Merge pull request #2120 from sinkuu/implicit_hasher

Implicit hasher lint

6 years agoType parameter change and type change are now in a multispan suggestion
sinkuu [Tue, 17 Oct 2017 12:39:24 +0000 (21:39 +0900)]
Type parameter change and type change are now in a multispan suggestion

6 years agoUse cx.access_levels.exported() instead of visibility
sinkuu [Tue, 17 Oct 2017 12:12:31 +0000 (21:12 +0900)]
Use cx.access_levels.exported() instead of visibility

6 years agoUpdated clippy to account for changes from rust-lang/rust#44766
Sunjay Varma [Sun, 15 Oct 2017 19:39:47 +0000 (15:39 -0400)]
Updated clippy to account for changes from rust-lang/rust#44766

6 years agoInclude a conditional update script
Michal 'vorner' Vaner [Wed, 11 Oct 2017 18:50:58 +0000 (20:50 +0200)]
Include a conditional update script

6 years agoClarify message for erasing_op lint
Yury Krivopalov [Sun, 15 Oct 2017 07:32:47 +0000 (10:32 +0300)]
Clarify message for erasing_op lint

6 years agoSimplify checking for all ones in int
Yury Krivopalov [Sun, 15 Oct 2017 07:21:56 +0000 (10:21 +0300)]
Simplify checking for all ones in int

6 years agoImprove lint description
Devon Hollowood [Sun, 15 Oct 2017 00:46:19 +0000 (21:46 -0300)]
Improve lint description

6 years agoChange lint filename
Devon Hollowood [Sun, 15 Oct 2017 00:42:14 +0000 (21:42 -0300)]
Change lint filename

suggest_print.rs -> explicit_write.rs

6 years agoChange lint name
Devon Hollowood [Sun, 15 Oct 2017 00:26:39 +0000 (21:26 -0300)]
Change lint name

From `suggest_print` to `explicit_write`

6 years agoMerge pull request #2133 from sinkuu/fix_panic
llogiq [Sat, 14 Oct 2017 20:22:39 +0000 (22:22 +0200)]
Merge pull request #2133 from sinkuu/fix_panic

Fix panic with fake `Range` type

6 years agoMerge pull request #2138 from joeratt/patch-1
Manish Goregaokar [Sat, 14 Oct 2017 19:49:06 +0000 (15:49 -0400)]
Merge pull request #2138 from joeratt/patch-1

Add link to Rust Github

6 years agoAdd link to Rust Github
Joe Rattazzi [Sat, 14 Oct 2017 19:47:38 +0000 (14:47 -0500)]
Add link to Rust Github

Linking to the Rust-lang Github repository: https://github.com/rust-lang/rust

6 years agoAdd erasing_op lint
Yury Krivopalov [Sat, 30 Sep 2017 17:14:00 +0000 (20:14 +0300)]
Add erasing_op lint

For expressions that can be replaced by a zero.

6 years agoidentity_op lint fix for '&' with unsigned types
Yury Krivopalov [Sat, 30 Sep 2017 08:33:15 +0000 (11:33 +0300)]
identity_op lint fix for '&' with unsigned types

6 years agoFix panic with fake `Range` type
sinkuu [Thu, 12 Oct 2017 14:24:21 +0000 (23:24 +0900)]
Fix panic with fake `Range` type

6 years agoClarify lint description
Devon Hollowood [Thu, 12 Oct 2017 08:54:33 +0000 (05:54 -0300)]
Clarify lint description

6 years agoFix output for write macros
Devon Hollowood [Thu, 12 Oct 2017 08:53:20 +0000 (05:53 -0300)]
Fix output for write macros

6 years agoRun rustfmt
Devon Hollowood [Thu, 12 Oct 2017 08:35:13 +0000 (05:35 -0300)]
Run rustfmt

6 years agoAdd expected output
Devon Hollowood [Thu, 12 Oct 2017 08:33:00 +0000 (05:33 -0300)]
Add expected output

6 years agoAdd suggest_print lint
Devon Hollowood [Thu, 12 Oct 2017 06:18:43 +0000 (03:18 -0300)]
Add suggest_print lint

6 years agoUse `rustc_typeck::hir_ty_to_ty`
sinkuu [Wed, 11 Oct 2017 14:08:36 +0000 (23:08 +0900)]
Use `rustc_typeck::hir_ty_to_ty`

6 years agoApply suggestions
sinkuu [Wed, 11 Oct 2017 03:10:10 +0000 (12:10 +0900)]
Apply suggestions

6 years agoMerge pull request #2127 from rust-lang-nursery/enum_variant_names_fp
Oliver Schneider [Wed, 11 Oct 2017 11:16:59 +0000 (13:16 +0200)]
Merge pull request #2127 from rust-lang-nursery/enum_variant_names_fp

Don't lint accidental "prefixes" on enum variants

6 years agoMerge pull request #2119 from camsteffen/never_loop
Oliver Schneider [Wed, 11 Oct 2017 06:21:28 +0000 (08:21 +0200)]
Merge pull request #2119 from camsteffen/never_loop

Another never_loop fix

6 years agoAdd implicit_hasher lint (#2101)
sinkuu [Thu, 5 Oct 2017 14:57:31 +0000 (23:57 +0900)]
Add implicit_hasher lint (#2101)

6 years agochange expect message
Cameron Steffen [Tue, 10 Oct 2017 21:30:10 +0000 (16:30 -0500)]
change expect message

6 years agoMerge pull request #2128 from lukasstevens/master
Oliver Schneider [Tue, 10 Oct 2017 14:15:03 +0000 (16:15 +0200)]
Merge pull request #2128 from lukasstevens/master

Add lint for opt.map_or(None, f)

6 years agoMake suggested changes
Lukas Stevens [Tue, 10 Oct 2017 13:35:24 +0000 (15:35 +0200)]
Make suggested changes

- Fix copy-paste error
- Check for opt.map_or argument after ensuring that opt is an Option
- Use span_lint_and_then and span_suggestion
- Update reference

6 years agoRemove unnecessary borrow
Lukas Stevens [Tue, 10 Oct 2017 12:04:41 +0000 (14:04 +0200)]
Remove unnecessary borrow

6 years agoAdd lint for opt.map_or(None, f)
Lukas Stevens [Tue, 10 Oct 2017 10:06:01 +0000 (12:06 +0200)]
Add lint for opt.map_or(None, f)

Change to Warn and add multiline support

Fix typo

Update reference

6 years agoDon't lint accidental "prefixes" on enum variants
Oliver Schneider [Tue, 10 Oct 2017 10:15:55 +0000 (12:15 +0200)]
Don't lint accidental "prefixes" on enum variants

6 years agoMerge pull request #2126 from camsteffen/split-tests
Oliver Schneider [Tue, 10 Oct 2017 08:06:14 +0000 (10:06 +0200)]
Merge pull request #2126 from camsteffen/split-tests

Split some UI tests

6 years agoMerge pull request #2122 from sinkuu/local_span
Oliver Schneider [Tue, 10 Oct 2017 07:39:10 +0000 (09:39 +0200)]
Merge pull request #2122 from sinkuu/local_span

Test failure fix with rustc 1.22.0-nightly (150b625a0 2017-10-08)

6 years agoMerge pull request #2118 from chyvonomys/relax-needless-loop
Oliver Schneider [Tue, 10 Oct 2017 07:37:51 +0000 (09:37 +0200)]
Merge pull request #2118 from chyvonomys/relax-needless-loop

relax `needless_range_loop` so that it reports only direct indexing

6 years agomove get_unwrap tests
Cameron Steffen [Tue, 10 Oct 2017 05:14:47 +0000 (00:14 -0500)]
move get_unwrap tests

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 agorustc 1.22.0-nightly (150b625a0 2017-10-08)
sinkuu [Mon, 9 Oct 2017 13:49:54 +0000 (22:49 +0900)]
rustc 1.22.0-nightly (150b625a0 2017-10-08)

6 years agofix never_loop
Cameron Steffen [Sun, 8 Oct 2017 22:26:39 +0000 (17:26 -0500)]
fix never_loop

6 years agoremove contains_continue functions
Cameron Steffen [Sun, 8 Oct 2017 22:24:32 +0000 (17:24 -0500)]
remove contains_continue functions

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

6 years agotests for `needless_range_loop`
Andriy S. from cobalt [Sun, 8 Oct 2017 19:37:04 +0000 (22:37 +0300)]
tests for `needless_range_loop`

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 agorelax `needless_range_loop` so that it reports only direct indexing
Andriy S. from cobalt [Sun, 8 Oct 2017 15:34:31 +0000 (18:34 +0300)]
relax `needless_range_loop` so that it reports only direct indexing

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