summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_hir/src/errors.rs
blob: e593ed1044a5818e1f4cdb7765bd9bd75cb393d9 (plain)
1
2
3
4
5
6
7
8
9
10
use crate::LangItem;

#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, Encodable, Decodable)]
pub struct LangItemError(pub LangItem);

impl ToString for LangItemError {
    fn to_string(&self) -> String {
        format!("requires `{}` lang_item", self.0.name())
    }
}