about summary refs log tree commit diff
path: root/tests
AgeCommit message (Collapse)AuthorLines
2020-02-04Merge fixesThibsG-2/+4
2020-02-04Add wild and struct handlingThibsG-7/+213
2020-02-04Use span_lint_and_sugg + move infaillible lintThibsG-6/+41
- moving infaillible lint to prevent collisions
2020-02-04Add new lint: match with a single binding statementThibsG-0/+39
- Lint name: MATCH_SINGLE_BINDING
2020-02-04Remove unnecessary commentYuki Okushi-7/+3
2020-02-03Split up `indexing_slicing` ui testYuki Okushi-116/+133
2020-02-01Split up `drop_forget_ref` ui testYuki Okushi-244/+275
2020-01-31update test stderrMatthias Krüger-29/+29
2020-01-31Add test for `await` in `debug_assert!(..)`flip1995-29/+38
2020-01-31Auto merge of #5109 - phansch:ciao_util_dev, r=flip1995bors-1/+1
Deprecate util/dev in favor of cargo alias This means one less shell script and a bit more cross-platform support for contributors. If you've been using `./util/dev` before, this now becomes `cargo dev`. The key part of this change is found in `.cargo/config` where an alias for calling the `clippy_dev` binary is defined. changelog: none
2020-01-30Auto merge of #5108 - JohnTitor:split-up-0130, r=flip1995bors-346/+177
Split up `match` ui test Part of #2038 Also, this decreases the line length limit to 220. changelog: none
2020-01-30Deprecate util/dev in favor of cargo aliasPhilipp Hansch-1/+1
If you've been using `./util/dev` before, this now becomes `cargo dev`. The key part of this change is found in `.cargo/config`. This means one less shell script and a bit more cross-platform support for contributors.
2020-01-30Auto merge of #5101 - Areredify:let_underscore_lock, r=flip1995bors-12/+76
add `let_underscore_lock` lint closes #1574 changelog: add `let_underscore_lock` lint I am not entirely sure about my docs/messages wording here, improvements are welcome
2020-01-30lint all guard types, not just lock functionsAreredify-4/+31
2020-01-30decouple 'let_underscore' testsMikhail Babenko-45/+50
2020-01-30add lintMikhail Babenko-1/+33
2020-01-30Split up `match` ui testYuki Okushi-346/+177
2020-01-30Revive test in `enum_clike_unportable_variant`Yuki Okushi-16/+21
2020-01-30Add test and update reference.xiongmao86-0/+34
2020-01-27Split up `non_copy_const` ui testYuki Okushi-300/+335
2020-01-26Auto merge of #5084 - JohnTitor:clean-up-span-lint, r=flip1995bors-26/+69
Clean up `span_lint` in `methods/mod.rs` Uses `span_help_and_lint` instead of `span_lint` and `span_lint_and_sugg` instead of `span_lint_and_then`. changelog: none
2020-01-26Resolve FIXME: String::new is now a const fnPhilipp Hansch-7/+6
`const_string_new` is stable since Rust 1.39
2020-01-26Apply review commentsYuki Okushi-26/+26
2020-01-25Auto merge of #5083 - Areredify:issue-4399, r=flip1995bors-1/+20
dont fire `possible_missing_comma` if intendation is present Closes #4399 changelog: dont fire `possible_missing_comma` if intendation is present I suspect there is already a utils function for indentation (but searching indent didn't yield a function for that), and my solution is certainly not universal, but it's probably the best we can do.
2020-01-25dont fire possible_missing_comma if intendation is presentMikhail Babenko-1/+20
2020-01-25Auto merge of #5081 - Areredify:vec_box_threshold, r=flip1995bors-6/+48
add size parameter for `vec_box` lint changelog: add size threshold for the `vec_box` lint, currently 4096 bytes (one page) (subject to change). Closes #3547. diff is a little bit confusing due to some refactoring (moving free functions to lint struct functions), relevant portion is [this](https://github.com/rust-lang/rust-clippy/compare/master...Areredify:vec_box_threshold?expand=1#diff-1096120ca9143af89dcc9175ea92b54aR294-R298). In hindsight should've been different commits, but oh well.
2020-01-25add size parameter for lintMikhail Babenko-6/+48
2020-01-25Split up `match_same_arms` ui testYuki Okushi-222/+219
2020-01-24Auto merge of #5087 - Areredify:issue-4905, r=phanschbors-1/+1
improve `empty_enum` documentation closes #4905 changelog: improve `empty_enum` help message and documentation.
2020-01-24Auto merge of #5086 - Areredify:issue-3746, r=phanschbors-0/+22
don't fire `empty_loop` in `no_std` crates closes #3746. changelog: move no_std detection to utils, don't fire empty_loop in no_std crates
2020-01-24don't fire empty_loop in no_std cratesMikhail Babenko-0/+22
2020-01-24improve empty_enum documentationMikhail Babenko-1/+1
2020-01-24Split up `needless_range_loop` ui testYuki Okushi-189/+194
2020-01-24Update stderrsYuki Okushi-26/+69
2020-01-24Auto merge of #5027 - sinkuu:vectored_io, r=phanschbors-5/+23
Lint vectored IO in unused_io_amount lint `read_vectored` & `write_vectored` require handling returned value likewise non-vectored methods. https://github.com/rust-lang/rust/issues/68041 --- changelog: lint vectored IO in `unused_io_amount` lint
2020-01-23Auto merge of #5082 - Areredify:issue-4980, r=flip1995bors-12/+19
disable let_underscore_must_use in external macros changelog: disable let_underscore_must_use in external macros Closes #4980
2020-01-23disable let_underscore_must_use in external macrosMikhail Babenko-12/+19
2020-01-23add `option_as_ref_deref` lintAreredify-0/+171
2020-01-22Ignore macros with `!` operators in `eq_op`Yuki Okushi-0/+9
2020-01-21Auto merge of #5068 - JohnTitor:split-up-transmute, r=phanschbors-213/+218
Split up `transmute` ui test Part of #2038 changelog: none
2020-01-21Auto merge of #5028 - krishna-veerareddy:issue-5026-mem-ordering-fences, ↵bors-0/+39
r=phansch Detect usage of invalid atomic ordering in memory fences Detect usage of `core::sync::atomic::{fence, compiler_fence}` with `Ordering::Relaxed` and suggest valid alternatives. changelog: Extend `invalid_atomic_ordering` to lint memory fences Fixes #5026
2020-01-20Auto merge of #5067 - JohnTitor:lint-skip-while-next, r=flip1995bors-0/+56
Add `skip_while_next` lint Fixes #4036 changelog: Add `skip_while_next` lint
2020-01-20Auto merge of #5070 - JohnTitor:suspicious-map-doc, r=flip1995bors-1/+1
Improve `suspicious_map`documentation Fixes #4793 changelog: none
2020-01-20Apply review commentYuki Okushi-2/+5
2020-01-20Improve `suspicious_map`documentationYuki Okushi-1/+1
2020-01-20Tweak wording in `assertions_on_constants`Yuki Okushi-1/+1
2020-01-20Split up `transmute` ui testYuki Okushi-213/+218
2020-01-20Add `skip_while_next` lintYuki Okushi-0/+53
2020-01-19Auto merge of #5056 - rust-lang:dissasociate-mut-key, r=flip1995bors-5/+31
Avoid mut_key on types of unknown layout This fixes #5020 by requiring a known layout for the key type before linting. Edit: This fixes #5043, too. changelog: none
2020-01-19Avoid mut_key on types of unknown layoutAndre Bogus-5/+31