diff options
| author | varkor <github@varkor.com> | 2018-08-22 01:35:55 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2018-08-22 16:08:49 +0100 |
| commit | 8a5dccde2adca594db2ecd684484410139842c29 (patch) | |
| tree | e20a0973374adff0a06f2f54d171dc21ff0dcb3b /src/librustdoc/passes | |
| parent | 04fa5d3adbb8212f5b4e87e3bbd7b74bb7c9ec65 (diff) | |
| download | rust-8a5dccde2adca594db2ecd684484410139842c29.tar.gz rust-8a5dccde2adca594db2ecd684484410139842c29.zip | |
Remove Ty prefix from Ty{Bool|Char|Int|Uint|Float|Str}
Diffstat (limited to 'src/librustdoc/passes')
| -rw-r--r-- | src/librustdoc/passes/collect_intra_doc_links.rs | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/librustdoc/passes/collect_intra_doc_links.rs b/src/librustdoc/passes/collect_intra_doc_links.rs index 64efea4f42f..cced30d1a0c 100644 --- a/src/librustdoc/passes/collect_intra_doc_links.rs +++ b/src/librustdoc/passes/collect_intra_doc_links.rs @@ -567,23 +567,23 @@ fn handle_variant(cx: &DocContext, def: Def) -> Result<(Def, Option<String>), () } const PRIMITIVES: &[(&str, Def)] = &[ - ("u8", Def::PrimTy(hir::PrimTy::TyUint(syntax::ast::UintTy::U8))), - ("u16", Def::PrimTy(hir::PrimTy::TyUint(syntax::ast::UintTy::U16))), - ("u32", Def::PrimTy(hir::PrimTy::TyUint(syntax::ast::UintTy::U32))), - ("u64", Def::PrimTy(hir::PrimTy::TyUint(syntax::ast::UintTy::U64))), - ("u128", Def::PrimTy(hir::PrimTy::TyUint(syntax::ast::UintTy::U128))), - ("usize", Def::PrimTy(hir::PrimTy::TyUint(syntax::ast::UintTy::Usize))), - ("i8", Def::PrimTy(hir::PrimTy::TyInt(syntax::ast::IntTy::I8))), - ("i16", Def::PrimTy(hir::PrimTy::TyInt(syntax::ast::IntTy::I16))), - ("i32", Def::PrimTy(hir::PrimTy::TyInt(syntax::ast::IntTy::I32))), - ("i64", Def::PrimTy(hir::PrimTy::TyInt(syntax::ast::IntTy::I64))), - ("i128", Def::PrimTy(hir::PrimTy::TyInt(syntax::ast::IntTy::I128))), - ("isize", Def::PrimTy(hir::PrimTy::TyInt(syntax::ast::IntTy::Isize))), - ("f32", Def::PrimTy(hir::PrimTy::TyFloat(syntax::ast::FloatTy::F32))), - ("f64", Def::PrimTy(hir::PrimTy::TyFloat(syntax::ast::FloatTy::F64))), - ("str", Def::PrimTy(hir::PrimTy::TyStr)), - ("bool", Def::PrimTy(hir::PrimTy::TyBool)), - ("char", Def::PrimTy(hir::PrimTy::TyChar)), + ("u8", Def::PrimTy(hir::PrimTy::Uint(syntax::ast::UintTy::U8))), + ("u16", Def::PrimTy(hir::PrimTy::Uint(syntax::ast::UintTy::U16))), + ("u32", Def::PrimTy(hir::PrimTy::Uint(syntax::ast::UintTy::U32))), + ("u64", Def::PrimTy(hir::PrimTy::Uint(syntax::ast::UintTy::U64))), + ("u128", Def::PrimTy(hir::PrimTy::Uint(syntax::ast::UintTy::U128))), + ("usize", Def::PrimTy(hir::PrimTy::Uint(syntax::ast::UintTy::Usize))), + ("i8", Def::PrimTy(hir::PrimTy::Int(syntax::ast::IntTy::I8))), + ("i16", Def::PrimTy(hir::PrimTy::Int(syntax::ast::IntTy::I16))), + ("i32", Def::PrimTy(hir::PrimTy::Int(syntax::ast::IntTy::I32))), + ("i64", Def::PrimTy(hir::PrimTy::Int(syntax::ast::IntTy::I64))), + ("i128", Def::PrimTy(hir::PrimTy::Int(syntax::ast::IntTy::I128))), + ("isize", Def::PrimTy(hir::PrimTy::Int(syntax::ast::IntTy::Isize))), + ("f32", Def::PrimTy(hir::PrimTy::Float(syntax::ast::FloatTy::F32))), + ("f64", Def::PrimTy(hir::PrimTy::Float(syntax::ast::FloatTy::F64))), + ("str", Def::PrimTy(hir::PrimTy::Str)), + ("bool", Def::PrimTy(hir::PrimTy::Bool)), + ("char", Def::PrimTy(hir::PrimTy::Char)), ]; fn is_primitive(path_str: &str, is_val: bool) -> Option<Def> { |
