From 82d609c8dfab1b7a1a77de54c1ac27f73778cf10 Mon Sep 17 00:00:00 2001 From: Nathan Stocks Date: Wed, 24 Aug 2022 17:06:18 -0600 Subject: [PATCH] have LangItemError derive everything LangItem does --- compiler/rustc_hir/src/errors.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_hir/src/errors.rs b/compiler/rustc_hir/src/errors.rs index 7ed09d3f293..e593ed1044a 100644 --- a/compiler/rustc_hir/src/errors.rs +++ b/compiler/rustc_hir/src/errors.rs @@ -1,5 +1,6 @@ use crate::LangItem; +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, Encodable, Decodable)] pub struct LangItemError(pub LangItem); impl ToString for LangItemError {