Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
b25261f4
R
Rust
项目概览
int
/
Rust
接近 1 年 前同步成功
通知
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,发现更多精彩内容 >>
未验证
提交
b25261f4
编写于
9月 16, 2020
作者:
D
Dylan DPC
提交者:
GitHub
9月 16, 2020
浏览文件
操作
浏览文件
下载
差异文件
Rollup merge of #76714 - camelid:patch-3, r=jonas-schievink
Small docs improvements @rustbot modify labels: T-doc T-compiler
上级
7e202fc1
5c1043a7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
11 addition
and
11 deletion
+11
-11
compiler/rustc_middle/src/mir/mod.rs
compiler/rustc_middle/src/mir/mod.rs
+2
-2
compiler/rustc_middle/src/ty/context.rs
compiler/rustc_middle/src/ty/context.rs
+2
-2
compiler/rustc_middle/src/ty/sty.rs
compiler/rustc_middle/src/ty/sty.rs
+7
-7
未找到文件。
compiler/rustc_middle/src/mir/mod.rs
浏览文件 @
b25261f4
...
...
@@ -2285,8 +2285,8 @@ fn fmt(&self, fmt: &mut Formatter<'_>) -> fmt::Result {
/// Constants
///
/// Two constants are equal if they are the same constant. Note that
/// this does not necessarily mean that they are
"=="
in Rust -- in
/// particular one must be wary of `NaN`!
/// this does not necessarily mean that they are
`==`
in Rust -- in
/// particular
,
one must be wary of `NaN`!
#[derive(Clone,
Copy,
PartialEq,
TyEncodable,
TyDecodable,
HashStable)]
pub
struct
Constant
<
'tcx
>
{
...
...
compiler/rustc_middle/src/ty/context.rs
浏览文件 @
b25261f4
...
...
@@ -66,8 +66,8 @@
use
std
::
ops
::{
Bound
,
Deref
};
use
std
::
sync
::
Arc
;
/// A type that is not publicly constructable. This prevents people from making
`TyKind::Error`
/// except through
`tcx.err*()`, which are in this module
.
/// A type that is not publicly constructable. This prevents people from making
[`TyKind::Error`]s
/// except through
the error-reporting functions on a [`tcx`][TyCtxt]
.
#[derive(Copy,
Clone,
Debug,
Eq,
Hash,
PartialEq,
PartialOrd,
Ord)]
#[derive(TyEncodable,
TyDecodable,
HashStable)]
pub
struct
DelaySpanBugEmitted
(());
...
...
compiler/rustc_middle/src/ty/sty.rs
浏览文件 @
b25261f4
...
...
@@ -1233,13 +1233,13 @@ pub fn to_const(self, tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> &'tcx ty::Const<'tcx>
/// particular, imagine a type like this:
///
/// for<'a> fn(for<'b> fn(&'b isize, &'a isize), &'a char)
/// ^ ^ |
|
|
/// | | |
|
|
/// | +------------+ 0
|
|
/// |
|
|
/// +--------------------------------
+ 1
|
/// | |
/// +------------------------------------------+ 0
/// ^ ^ |
|
|
/// | | |
|
|
/// | +------------+ 0
|
|
/// |
|
|
/// +--------------------------------
--+ 1
|
/// |
|
/// +------------------------------------------
----
+ 0
///
/// In this type, there are two binders (the outer fn and the inner
/// fn). We need to be able to determine, for any given region, which
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录