diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-08-19 14:35:15 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-08-19 14:35:15 +0200 |
| commit | 934d259b8ca1237c3fb50be21b8bba5ec8e6a7ce (patch) | |
| tree | 7df67ed27f6ea6fa92d3e5a32e250a7b186ba5d6 /src | |
| parent | 9c20b2a8cc7588decb6de25ac6a7912dcef24d65 (diff) | |
| download | rust-934d259b8ca1237c3fb50be21b8bba5ec8e6a7ce.tar.gz rust-934d259b8ca1237c3fb50be21b8bba5ec8e6a7ce.zip | |
Fix invalid comparison for Class::Decoration in `is_equal_to`
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/html/highlight.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/highlight.rs b/src/librustdoc/html/highlight.rs index 9d8ee52a3fa..944cf088512 100644 --- a/src/librustdoc/html/highlight.rs +++ b/src/librustdoc/html/highlight.rs @@ -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, } } |
