about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2019-11-25Rustup to rust-lang/rust#64856flip1995-27/+26
2019-11-25Rustup to rust-lang/rust#66671flip1995-48/+48
2019-11-24[comparison_chain] #4827 Check `core::cmp::Ord` is implementedTim Bodeit-2/+113
Only emit lint, if `cmp` is actually available on the type being compared. Don't emit lint in cases where only `PartialOrd` is implemented.
2019-11-23Auto merge of #4840 - flip1995:rollup-jqk3a3i, r=flip1995bors-294/+549
Rollup of 5 pull requests Successful merges: - #4730 (Fix check_infinite_loop (while_immutable_condition) by checking for break or return inside loop body) - #4766 (Fix false positive in derive_hash_xor_eq) - #4811 (Literal Representation Restructure) - #4820 (doc: fix the comment above the lint function) - #4830 (use more efficient code to generate repeated string) Failed merges: r? @ghost changelog: none
2019-11-23Rollup merge of #4830 - lzutao:str-repeat, r=flip1995Philipp Krones-1/+1
use more efficient code to generate repeated string see https://rust.godbolt.org/z/z9vrFP for comparison changelog: none
2019-11-23Rollup merge of #4820 - guanqun:comment-fix, r=flip1995Philipp Krones-1/+1
doc: fix the comment above the lint function it's a simple comment fix. --- changelog: none
2019-11-23Rollup merge of #4811 - mikerite:lit_repr_20191113, r=flip1995Philipp Krones-266/+393
Literal Representation Restructure This pull request restructures the literal_representation module to be easier to understand and maintain. I split the changes into a lot of commits to make reviewing easier. changelog: none
2019-11-23Rollup merge of #4766 - phansch:fix_fp_in_derive_hash_xor_eq, r=flip1995Philipp Krones-13/+45
Fix false positive in derive_hash_xor_eq This fixes a false positive in derive_hash_xor_eq where the lint was triggering on user-defined traits called `Hash`. changelog: Fix false positive in `derive_hash_xor_eq` Fixes #4658
2019-11-23Rollup merge of #4730 - yerke:fix-check_infinite_loop, r=flip1995Philipp Krones-13/+109
Fix check_infinite_loop (while_immutable_condition) by checking for break or return inside loop body changelog: Fix check_infinite_loop (while_immutable_condition) by checking for break or return inside loop body fixes #4648
2019-11-23Auto merge of #4839 - flip1995:rollup-new-lints, r=flip1995bors-4/+786
Rollup of 4 Pull requests with new lints Rollup of pull requests - #4816 (New lint: zst_offset) - #4814 (New lint: Implement ifs_same_cond_fn) - #4807 (Add `large_stack_arrays` lint) - #4806 (Issue/4623) changelog: add [`zst_offset`] lint changelog: New lint: [`ifs_same_cond_fn`] cahngelog: Add new lint [large_stack_arrays] changelog: added lint [`tabs_in_doc_comments`]
2019-11-23Fix falloutflip1995-2/+3
2019-11-23Run update_lintsflip1995-12/+12
2019-11-23Merge remote-tracking branch 'FlorianRohm/issue/4623' into rollup-new-lintsflip1995-0/+328
2019-11-23Merge remote-tracking branch 'Areredify/large_stack_arrays' into ↵flip1995-1/+148
rollup-new-lints
2019-11-23Merge remote-tracking branch 'popzxc/if-same-cond-fn' into rollup-new-lintsflip1995-1/+242
2019-11-23Merge remote-tracking branch 'upstream/zst-offset' into rollup-new-lintsflip1995-2/+67
2019-11-23Auto merge of #4825 - Manishearth:rustup, r=flip1995bors-182/+132
Rustup to rustc 1.41.0-nightly (35ef33a8 2019-11-21) I don't have the right fix for the fmtstr tests, and I'm also hitting problems caused by https://github.com/messense/rustc-test/issues/3 List of rustups: - rust-lang/rust#66271 (syntax: Keep string literals in ABIs and `asm!` more precisely) - rust-lang/rust#65355 (Stabilize `!` in Rust 1.41.0) - rust-lang/rust#66515 (Reduce size of `hir::Expr` by boxing more of `hir::InlineAsm`) - rust-lang/rust#66389 (Specific labels when referring to "expected" and "found" types) - rust-lang/rust#66074 ([mir-opt] Turn on the `ConstProp` pass by default) changelog: none
2019-11-23Disable chalk integration test. Output too largeflip1995-2/+3
2019-11-23Temporarily disable serde integration testflip1995-2/+3
ICEs because of rustc, not Clippy
2019-11-23Add comment for mir_opt_level=0flip1995-0/+4
2019-11-22fix check_infinite_loop by checking for break or return inside loop bodyYerkebulan Tulibergenov-13/+109
2019-11-22Set mir_opt_level=0flip1995-56/+27
This introduces some FNs. But a building Clippy is more important for now
2019-11-22Rustup to rust-lang/rust#66389flip1995-2/+2
2019-11-22Rustup to rust-lang/rust#66515flip1995-6/+8
Fixes #4835
2019-11-22Remove never_type featureflip1995-41/+34
Stablized in rust-lang/rust#65355
2019-11-20Implement if_same_cond_fn lintIgor Aleksanov-3/+244
Run ./util/dev Revert changelog entry Rename lint to same_functions_in_if_condition and add a doc example Add testcases with different arg in fn invocation
2019-11-19add a good example for the approx_const lintJohannes Schilling-0/+6
2019-11-19Add suggested good cases in docs for lifetimes lintJohannes Schilling-0/+12
2019-11-19use usize::fromlzutao-1/+1
Co-Authored-By: Mateusz Mikuła <mati865@users.noreply.github.com>
2019-11-19use more efficient code to generate repeated stringLzu Tao-1/+1
see https://rust.godbolt.org/z/z9vrFP for comparison
2019-11-19Rustup to rustc 1.41.0-nightly (d1da8023d 2019-11-19)Manish Goregaokar-29/+28
2019-11-18Rustup to rustc 1.41.0-nightly (a0d40f8bd 2019-11-18)Manish Goregaokar-59/+38
2019-11-15New lint: zst_offsetAndre Bogus-2/+67
2019-11-16doc: fix the comment above the lint functionGuanqun Lu-1/+1
2019-11-15register new lint "tabs in doc comments" and update readmeFlorian Rohm-2/+15
2019-11-15add new lint tabs in doc commentsFlorian Rohm-0/+315
2019-11-14Auto merge of #4815 - JohnTitor:rustup, r=matthiaskrgrbors-2/+2
Rustup rust-lang/rust#66233 changelog: none
2019-11-14Rustup rust-lang/rust#66233Yuki Okushi-2/+2
2019-11-14literal repr: ignore more warnings in macrosMichael Wright-23/+81
2019-11-14literal representation: simplificationMichael Wright-2/+14
Simplify calculation in grouping. Add test case to ensure `count()` can't be zero in that branch.
2019-11-13Add new lint: large stack arrayAreredify-3/+150
added documentation minor style fix change as to ::from add ignore to doc include threshold in lint message/make suggestion more apparent/use Scalar api instead of matching style fix shange snippet_opt to snippet
2019-11-13Auto merge of #4810 - Areredify:4716-fix, r=flip1995bors-2/+2
clippy-driver display help on empty command line arguments changelog: fixes #4716, now displaying help if clippy-driver is run with no arguments.
2019-11-13Auto merge of #4794 - rust-lang:no-must-use-impls, r=flip1995bors-10/+7
no more must-use-candidate impls This should help with #4779. changelog: don't trigger [`must_use_candidate`] on trait impls
2019-11-13literal representation restructure 12Michael Wright-9/+17
Export function for formatting literals and remove crate visibility from other items.
2019-11-13literal representation restructure 11Michael Wright-15/+15
Rename `grouping_hint` to `format` and use the term consistently.
2019-11-13literal representation restructure 10Michael Wright-23/+23
Rename DigitInfo to NumericLiteral
2019-11-13literal representation restructure 9Michael Wright-77/+86
Only store valid suffixes (and not mistyped suffixes) in DigitInfo. Check for mistyped suffixes later and not when DigitInfo is created. This opens the door to more sophisticated mistyped suffix checks later.
2019-11-13literal representation restructure 8Michael Wright-29/+37
Store the digit parts directly in DigitInfo since we need them anyway.
2019-11-13literal representation restructure 7Michael Wright-39/+28
Replace `do_lint` with `get_group_size`. Return `None` if there are no groups.
2019-11-13literal representation restructure 6Michael Wright-40/+35
Add `group_digits` helper function.