rust-clippy/tests
Phil Hansch 1165176840
Rollup merge of #4842 - timbodeit:comparison-chain-false-positive-4827, r=flip1995
[comparison_chain] #4827 Check `core::cmp::Ord` is implemented

Only emit `comparison_chain` lint, if `cmp` is actually available on the type being compared. Don't emit lint in cases where only `PartialOrd` is implemented.

I haven't yet fully understood [Adjustments](https://doc.rust-lang.org/nightly/nightly-rustc/rustc/ty/adjustment/struct.Adjustment.html). I would appreciate, if someone could double check whether my usage of [expr_ty](https://doc.rust-lang.org/nightly/nightly-rustc/rustc/ty/struct.TypeckTables.html#method.expr_ty) in `clippy_lints/src/comparison_chain.rs:91` is correct or if there are cases where using [expr_ty_adjusted](https://doc.rust-lang.org/nightly/nightly-rustc/rustc/ty/struct.TypeckTables.html#method.expr_ty_adjusted) would lead to a different result when used with `utils::implements_trait`.

---

fixes #4827
changelog: [comparison_chain] Check `core::cmp::Ord` is implemented
2019-11-28 10:19:05 +01:00
..
auxiliary Remove all copyright license headers 2019-01-08 21:46:39 +01:00
ui Rollup merge of #4842 - timbodeit:comparison-chain-false-positive-4827, r=flip1995 2019-11-28 10:19:05 +01:00
ui-toml Add new lint: large stack array 2019-11-13 21:44:29 +03:00
compile-test.rs Rustup to rustc 1.41.0-nightly (a0d40f8bd 2019-11-18) 2019-11-18 23:49:58 -08:00
dogfood.rs tests: dogfood: run tests with debuginfo=0 reducing dogfood target dir size even further. 2019-09-11 21:29:07 +02:00
fmt.rs Enable rustfmt tests 2019-07-28 06:45:23 +02:00
matches.rs Remove all copyright license headers 2019-01-08 21:46:39 +01:00
missing-test-files.rs cargo fmt 2019-06-21 16:47:34 +02:00
needless_continue_helpers.rs Remove all copyright license headers 2019-01-08 21:46:39 +01:00
versioncheck.rs test(versioncheck): Use .no_deps() 2019-01-25 21:53:44 +01:00