| commit | 5804bb726605efa4bc997c82ac31c87c80a0f837 | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Sun Dec 06 21:06:15 2020 -0800 |
| committer | David Tolnay <dtolnay@gmail.com> | Sun Dec 06 21:06:27 2020 -0800 |
| tree | 9792104052dcdc923049f05de39dc472c7e4c72e | |
| parent | 4f705dc799382bac3bfcc03940a8d28df82c1880 [diff] [blame] |
Use ResolvableName as resolutions map key
diff --git a/syntax/mod.rs b/syntax/mod.rs index 12b269e..da1dbf8 100644 --- a/syntax/mod.rs +++ b/syntax/mod.rs
@@ -228,7 +228,8 @@ // Wrapper for a type which needs to be resolved before it can be printed in // C++. -#[derive(Clone, PartialEq, Hash)] +#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] +#[repr(transparent)] pub struct ResolvableName { pub rust: Ident, }