ty::Ref(r, ty, mutbl) => {
self.push(match mutbl {
- hir::MutImmutable => "R",
- hir::MutMutable => "Q",
+ hir::Mutability::Immutable => "R",
+ hir::Mutability::Mutable => "Q",
});
if *r != ty::ReErased {
self = r.print(self)?;
ty::RawPtr(mt) => {
self.push(match mt.mutbl {
- hir::MutImmutable => "P",
- hir::MutMutable => "O",
+ hir::Mutability::Immutable => "P",
+ hir::Mutability::Mutable => "O",
});
self = mt.ty.print(self)?;
}
| DefPathData::Misc
| DefPathData::Impl
| DefPathData::MacroNs(_)
- | DefPathData::LifetimeNs(_)
- | DefPathData::GlobalMetaData(_) => {
+ | DefPathData::LifetimeNs(_) => {
bug!("symbol_names: unexpected DefPathData: {:?}", disambiguated_data.data)
}
};