mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-27 22:34:14 +00:00
Fix invalid comparison for Class::Decoration in is_equal_to
This commit is contained in:
parent
9c20b2a8cc
commit
934d259b8c
@ -291,8 +291,8 @@ impl Class {
|
||||
match (self, other) {
|
||||
(Self::Self_(_), Self::Self_(_))
|
||||
| (Self::Macro(_), Self::Macro(_))
|
||||
| (Self::Ident(_), Self::Ident(_))
|
||||
| (Self::Decoration(_), Self::Decoration(_)) => true,
|
||||
| (Self::Ident(_), Self::Ident(_)) => true,
|
||||
(Self::Decoration(c1), Self::Decoration(c2)) => c1 == c2,
|
||||
(x, y) => x == y,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user