rust/compiler/rustc_hir/src/errors.rs
2022-08-25 11:06:45 -06:00

11 lines
272 B
Rust

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())
}
}