diff options
| author | bors <bors@rust-lang.org> | 2024-02-29 14:33:37 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-29 14:33:37 +0000 |
| commit | a6606d1767bba67f8ec1a89f9b9c747522b04898 (patch) | |
| tree | 2aa16484e3029f8f223a982fff79fb0f1dcdd2fb | |
| parent | ef2acb6ff3fd955f43f49ed97ff73bfe98ff8122 (diff) | |
| parent | c061a9e84e6c61e604afdf341e38da04eca31087 (diff) | |
| download | rust-a6606d1767bba67f8ec1a89f9b9c747522b04898.tar.gz rust-a6606d1767bba67f8ec1a89f9b9c747522b04898.zip | |
Auto merge of #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`)
| -rw-r--r-- | crates/hir/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs index 6f621eb1225..944eca63543 100644 --- a/crates/hir/src/lib.rs +++ b/crates/hir/src/lib.rs @@ -2088,7 +2088,7 @@ impl From<hir_ty::Mutability> for Access { } } -#[derive(Clone, Debug)] +#[derive(Clone, PartialEq, Eq, Hash, Debug)] pub struct Param { func: Function, /// The index in parameter list, including self parameter. |
