rustc_ast/
ptr.rs

1/// A pointer type that uniquely owns a heap allocation of type T.
2///
3/// This used to be its own type, but now it's just a typedef for `Box` and we are planning to
4/// remove it soon.
5pub type P<T> = Box<T>;
6
7/// Construct a `P<T>` from a `T` value.
8#[allow(non_snake_case)]
9pub fn P<T>(value: T) -> P<T> {
10    Box::new(value)
11}