{"ast_node_type":"function","tokens":[{"end":76,"kind":"keyword","start":0,"text":"pub(crate)"}]}
    pub(crate) fn cast_pointer_to(self, layout: TyAndLayout<'tcx>) -> Self {
        assert!(matches!(self.layout().ty.kind(), ty::Ref(..) | ty::RawPtr(..) | ty::FnPtr(..)));