rustdoc: fix fallout from using ptr::P.
syntax: implement in-place folding of P<T> and Vec<T>.