rustdoc: Add a primitive page for raw pointers

Closes #15318
This commit is contained in:
Alex Crichton
2015-04-06 15:58:23 -07:00
parent c9c7be78db
commit 9ad133b4a1
10 changed files with 90 additions and 5 deletions

View File

@@ -491,7 +491,8 @@ impl fmt::Display for clean::Type {
}
clean::Bottom => f.write_str("!"),
clean::RawPointer(m, ref t) => {
write!(f, "*{}{}", RawMutableSpace(m), **t)
primitive_link(f, clean::PrimitiveType::PrimitiveRawPointer,
&format!("*{}{}", RawMutableSpace(m), **t))
}
clean::BorrowedRef{ lifetime: ref l, mutability, type_: ref ty} => {
let lt = match *l {