Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
85ec0918
R
Rust
项目概览
int
/
Rust
12 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
85ec0918
编写于
11月 21, 2016
作者:
E
est31
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Make rustdoc aware of the primitive i128 type
Many thanks to ollie27 for spotting all the places.
上级
9e992138
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
26 addition
and
0 deletion
+26
-0
src/librustdoc/clean/inline.rs
src/librustdoc/clean/inline.rs
+2
-0
src/librustdoc/clean/mod.rs
src/librustdoc/clean/mod.rs
+2
-0
src/libstd/primitive_docs.rs
src/libstd/primitive_docs.rs
+22
-0
未找到文件。
src/librustdoc/clean/inline.rs
浏览文件 @
85ec0918
...
...
@@ -268,11 +268,13 @@ pub fn build_impls(cx: &DocContext, did: DefId) -> Vec<clean::Item> {
tcx
.lang_items
.i16_impl
(),
tcx
.lang_items
.i32_impl
(),
tcx
.lang_items
.i64_impl
(),
tcx
.lang_items
.i128_impl
(),
tcx
.lang_items
.usize_impl
(),
tcx
.lang_items
.u8_impl
(),
tcx
.lang_items
.u16_impl
(),
tcx
.lang_items
.u32_impl
(),
tcx
.lang_items
.u64_impl
(),
tcx
.lang_items
.u128_impl
(),
tcx
.lang_items
.f32_impl
(),
tcx
.lang_items
.f64_impl
(),
tcx
.lang_items
.char_impl
(),
...
...
src/librustdoc/clean/mod.rs
浏览文件 @
85ec0918
...
...
@@ -1595,11 +1595,13 @@ fn from_str(s: &str) -> Option<PrimitiveType> {
"i16"
=>
Some
(
PrimitiveType
::
I16
),
"i32"
=>
Some
(
PrimitiveType
::
I32
),
"i64"
=>
Some
(
PrimitiveType
::
I64
),
"i128"
=>
Some
(
PrimitiveType
::
I128
),
"usize"
=>
Some
(
PrimitiveType
::
Usize
),
"u8"
=>
Some
(
PrimitiveType
::
U8
),
"u16"
=>
Some
(
PrimitiveType
::
U16
),
"u32"
=>
Some
(
PrimitiveType
::
U32
),
"u64"
=>
Some
(
PrimitiveType
::
U64
),
"u128"
=>
Some
(
PrimitiveType
::
U128
),
"bool"
=>
Some
(
PrimitiveType
::
Bool
),
"char"
=>
Some
(
PrimitiveType
::
Char
),
"str"
=>
Some
(
PrimitiveType
::
Str
),
...
...
src/libstd/primitive_docs.rs
浏览文件 @
85ec0918
...
...
@@ -597,6 +597,17 @@ mod prim_i32 { }
///
mod
prim_i64
{
}
#[doc(primitive
=
"i128"
)]
//
/// The 128-bit signed integer type.
///
/// *[See also the `std::i128` module](i128/index.html).*
///
/// However, please note that examples are shared between primitive integer
/// types. So it's normal if you see usage of types like `i8` in there.
///
mod
prim_i128
{
}
#[doc(primitive
=
"u8"
)]
//
/// The 8-bit unsigned integer type.
...
...
@@ -641,6 +652,17 @@ mod prim_u32 { }
///
mod
prim_u64
{
}
#[doc(primitive
=
"u128"
)]
//
/// The 128-bit unsigned integer type.
///
/// *[See also the `std::u128` module](u128/index.html).*
///
/// However, please note that examples are shared between primitive integer
/// types. So it's normal if you see usage of types like `u8` in there.
///
mod
prim_u128
{
}
#[doc(primitive
=
"isize"
)]
//
/// The pointer-sized signed integer type.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录