diff options
author | Aleksey Kladov <[email protected]> | 2019-05-21 11:18:30 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-05-21 12:14:31 +0100 |
commit | 0efb5364c35636d5e985e23bd11965f574cbd9da (patch) | |
tree | 9ae85eafb717fa3255545b48645d5e8acd73eedc /crates/ra_hir/src/name.rs | |
parent | 8b6f02d0d6f587c344cda98d64eef784a58e0249 (diff) |
sort hash maps for tests
Diffstat (limited to 'crates/ra_hir/src/name.rs')
-rw-r--r-- | crates/ra_hir/src/name.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/name.rs b/crates/ra_hir/src/name.rs index 9a999e66c..e3a82cf03 100644 --- a/crates/ra_hir/src/name.rs +++ b/crates/ra_hir/src/name.rs | |||
@@ -5,7 +5,7 @@ use ra_syntax::{ast, SmolStr}; | |||
5 | /// `Name` is a wrapper around string, which is used in hir for both references | 5 | /// `Name` is a wrapper around string, which is used in hir for both references |
6 | /// and declarations. In theory, names should also carry hygiene info, but we are | 6 | /// and declarations. In theory, names should also carry hygiene info, but we are |
7 | /// not there yet! | 7 | /// not there yet! |
8 | #[derive(Clone, PartialEq, Eq, Hash)] | 8 | #[derive(Clone, PartialEq, Eq, Hash, PartialOrd, Ord)] |
9 | pub struct Name { | 9 | pub struct Name { |
10 | text: SmolStr, | 10 | text: SmolStr, |
11 | } | 11 | } |