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:
parent
4f0508af90
commit
f48f3d7584
2 changed files with 24 additions and 2 deletions
|
@ -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),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue