Use == to compare OpaqueTyOrigin values

This commit is contained in:
Santiago Pastorino
2021-07-15 12:42:18 -03:00
parent 000b945cea
commit 5cefdbdab5
2 changed files with 2 additions and 2 deletions

View File

@@ -2264,7 +2264,7 @@ pub struct OpaqueTy<'hir> {
}
/// From whence the opaque type came.
#[derive(Copy, Clone, Encodable, Decodable, Debug, HashStable_Generic)]
#[derive(Copy, Clone, PartialEq, Eq, Encodable, Decodable, Debug, HashStable_Generic)]
pub enum OpaqueTyOrigin {
/// `-> impl Trait`
FnReturn,