1
Fork 0

Implement IntoDiagnosticArg for hir::ConstContext

This commit is contained in:
Michael Goulet 2022-06-28 22:09:59 -07:00
parent 1c4afbd1de
commit ff9fd36aa4
4 changed files with 16 additions and 0 deletions

View file

@ -1595,6 +1595,9 @@ impl fmt::Display for ConstContext {
}
}
// NOTE: `IntoDiagnosticArg` impl for `ConstContext` lives in `rustc_errors`
// due to a cyclical dependency between hir that crate.
/// A literal.
pub type Lit = Spanned<LitKind>;