1
Fork 0

Refactor how MIR represents composite debuginfo.

This commit is contained in:
Camille GILLOT 2023-08-26 16:58:42 +00:00
parent 429a9258f1
commit 26c48e6f95
17 changed files with 223 additions and 244 deletions

View file

@ -87,11 +87,6 @@ impl<'tcx> MutVisitor<'tcx> for Replacer<'_, 'tcx> {
var_debug_info.value = VarDebugInfoContents::Const(self.make_zst(place_ty))
}
}
VarDebugInfoContents::Composite { ty, fragments: _ } => {
if self.known_to_be_zst(ty) {
var_debug_info.value = VarDebugInfoContents::Const(self.make_zst(ty))
}
}
}
}