Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit a6606d1

Browse files
committed
Auto merge of rust-lang#16698 - regexident:param-derives, r=Veykril
Derive `PartialEq`, `Eq` & `Hash` for `hir::Param` Since `hir::SelfParam`, as well as all members of `hir::Param` already implement `PartialEq`, `Eq` & `Hash` it seems reasonable to also make `hir::Param` implement those. (the change is motivated by an outside use of the `ra_ap_hir` crate that would benefit from being able to collect params in a `HashSet`)
2 parents ef2acb6 + c061a9e commit a6606d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/hir/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2088,7 +2088,7 @@ impl From<hir_ty::Mutability> for Access {
20882088
}
20892089
}
20902090

2091-
#[derive(Clone, Debug)]
2091+
#[derive(Clone, PartialEq, Eq, Hash, Debug)]
20922092
pub struct Param {
20932093
func: Function,
20942094
/// The index in parameter list, including self parameter.

0 commit comments

Comments
 (0)