Refactor how MIR represents composite debuginfo.
This commit is contained in:
parent
429a9258f1
commit
26c48e6f95
17 changed files with 223 additions and 244 deletions
|
@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue