rustdoc: Support for "array" primitive

Impls on `clean::Type::FixedVector` are now collected in the array
primitive page instead of the slice primitive page.

Also add a primitive docs for arrays to `std`.
This commit is contained in:
Tom Jakubowski 2015-03-23 14:01:28 -07:00
parent b0aad7dd4f
commit 2df8830642
6 changed files with 38 additions and 10 deletions

View file

@ -486,7 +486,7 @@ impl fmt::Display for clean::Type {
primitive_link(f, clean::Slice, &format!("[{}]", **t))
}
clean::FixedVector(ref t, ref s) => {
primitive_link(f, clean::Slice,
primitive_link(f, clean::PrimitiveType::Array,
&format!("[{}; {}]", **t, *s))
}
clean::Bottom => f.write_str("!"),