fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "TypeContents({:t})", self.bits)
}
+ #[cfg(not(stage0))]
+ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+ write!(f, "TypeContents({:b})", self.bits)
+ }
}
-pub fn type_interior_is_unsafe(cx: &ctxt, t: ty::t) -> bool {
- type_contents(cx, t).interior_unsafe()
+pub fn type_interior_is_unsafe<'tcx>(cx: &ctxt<'tcx>, ty: Ty<'tcx>) -> bool {
+ type_contents(cx, ty).interior_unsafe()
}
-pub fn type_contents(cx: &ctxt, ty: t) -> TypeContents {
+pub fn type_contents<'tcx>(cx: &ctxt<'tcx>, ty: Ty<'tcx>) -> TypeContents {
return memoized(&cx.tc_cache, ty, |ty| {
tc_ty(cx, ty, &mut FnvHashMap::new())
});