]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_hir/src/errors.rs
Rollup merge of #103772 - compiler-errors:better-strict-coherence-err, r=davidtwco
[rust.git] / compiler / rustc_hir / src / errors.rs
1 use crate::LangItem;
2
3 #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, Encodable, Decodable)]
4 pub struct LangItemError(pub LangItem);
5
6 impl ToString for LangItemError {
7     fn to_string(&self) -> String {
8         format!("requires `{}` lang_item", self.0.name())
9     }
10 }