1
Fork 0

rustdoc: Give primitive types stability attributes

This is especially important for i128/u128 to make it clear they are
unstable in the docs.
This commit is contained in:
Oliver Middleton 2017-01-15 09:08:29 +00:00
parent 4f0508af90
commit f48f3d7584
2 changed files with 24 additions and 2 deletions

View file

@ -150,8 +150,8 @@ impl<'a, 'tcx> Clean<Crate> for visit_ast::RustdocVisitor<'a, 'tcx> {
name: Some(prim.to_url_str().to_string()),
attrs: attrs.clone(),
visibility: Some(Public),
stability: None,
deprecation: None,
stability: get_stability(cx, def_id),
deprecation: get_deprecation(cx, def_id),
def_id: def_id,
inner: PrimitiveItem(prim),
}