exp-stuff-dirty

This commit is contained in:
ouz-a 2022-04-28 01:03:07 +03:00
parent 0e7915d11f
commit f1c5f34f76
34 changed files with 65 additions and 141 deletions

View file

@ -1079,6 +1079,8 @@ pub enum LocalInfo<'tcx> {
/// A temporary created during the creation of an aggregate
/// (e.g. a temporary for `foo` in `MyStruct { my_field: foo }`)
AggregateTemp,
/// A temporary created during the pass `Derefer` to avoid it's retagging
Temp,
}
impl<'tcx> LocalDecl<'tcx> {
@ -1178,6 +1180,10 @@ impl<'tcx> LocalDecl<'tcx> {
}
}
pub fn temp(mut self) {
self.local_info = Some(Box::new(LocalInfo::Temp));
}
/// Converts `self` into same `LocalDecl` except tagged as internal.
#[inline]
pub fn internal(mut self) -> Self {