Save source & target types in hir's expr_adjustments
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user