mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-03-04 07:17:19 +00:00
fill in lint description for DERIVE_ORD_XOR_PARTIAL_ORD
This commit is contained in:
parent
ca03f2b650
commit
12a6eee045
1 changed files with 2 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
||||||
use crate::utils::paths;
|
use crate::utils::paths;
|
||||||
use crate::utils::{
|
use crate::utils::{
|
||||||
get_trait_def_id, is_automatically_derived, is_copy, match_path, span_lint_and_help, span_lint_and_note,
|
get_trait_def_id, is_automatically_derived, is_copy, match_path, span_lint_and_help, span_lint_and_note, span_lint_and_then,
|
||||||
span_lint_and_then,
|
|
||||||
};
|
};
|
||||||
use if_chain::if_chain;
|
use if_chain::if_chain;
|
||||||
use rustc_hir::def_id::DefId;
|
use rustc_hir::def_id::DefId;
|
||||||
|
@ -92,7 +91,7 @@ declare_clippy_lint! {
|
||||||
/// ```
|
/// ```
|
||||||
pub DERIVE_ORD_XOR_PARTIAL_ORD,
|
pub DERIVE_ORD_XOR_PARTIAL_ORD,
|
||||||
correctness,
|
correctness,
|
||||||
"default lint description"
|
"deriving `Ord` but implementing `PartialOrd` explicitly"
|
||||||
}
|
}
|
||||||
|
|
||||||
declare_clippy_lint! {
|
declare_clippy_lint! {
|
||||||
|
|
Loading…
Add table
Reference in a new issue