Gives statics separate addr_of_static (PointerId) and static_tys (LTy) information, analogous to addr_of_local and local_tys. Previously they had only a single LTy based on tcx.static_ptr_ty(did), which gives somewhat weird results (it's either a RawPtr or a Ref depending on whether or not the static is declared as mut).
Gives statics separate
addr_of_static
(PointerId
) andstatic_tys
(LTy
) information, analogous toaddr_of_local
andlocal_tys
. Previously they had only a singleLTy
based ontcx.static_ptr_ty(did)
, which gives somewhat weird results (it's either aRawPtr
or aRef
depending on whether or not the static is declared as mut).