Make RawPtr take Ty and Mutbl separately

This commit is contained in:
Michael Goulet
2024-03-21 17:33:10 -04:00
parent ff0c31e6b9
commit 7be0dbe772
36 changed files with 111 additions and 112 deletions

View File

@@ -361,12 +361,12 @@ impl<'tcx> Printer<'tcx> for SymbolMangler<'tcx> {
ty.print(self)?;
}
ty::RawPtr(mt) => {
self.push(match mt.mutbl {
ty::RawPtr(ty, mutbl) => {
self.push(match mutbl {
hir::Mutability::Not => "P",
hir::Mutability::Mut => "O",
});
mt.ty.print(self)?;
ty.print(self)?;
}
ty::Array(ty, len) => {