Save source & target types in hir's expr_adjustments

This commit is contained in:
Maybe Waffle 2022-12-20 19:33:27 +00:00
parent 927d56a67d
commit 91a89efcf2
3 changed files with 42 additions and 19 deletions

View file

@ -3691,6 +3691,13 @@ impl From<ItemInNs> for ScopeDef {
}
}
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Adjustment {
pub source: Type,
pub target: Type,
pub kind: Adjust,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub enum Adjust {
/// Go from ! to any type.