Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
652b3b71
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,发现更多精彩内容 >>
提交
652b3b71
编写于
2月 21, 2018
作者:
N
Niko Matsakis
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
random reformatting
上级
0037cca2
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
17 deletion
+16
-17
src/librustc_mir/borrow_check/nll/type_check/liveness.rs
src/librustc_mir/borrow_check/nll/type_check/liveness.rs
+3
-7
src/librustc_mir/borrow_check/nll/type_check/mod.rs
src/librustc_mir/borrow_check/nll/type_check/mod.rs
+13
-10
未找到文件。
src/librustc_mir/borrow_check/nll/type_check/liveness.rs
浏览文件 @
652b3b71
...
...
@@ -105,8 +105,7 @@ fn add_liveness_constraints(&mut self, bb: BasicBlock) {
for
live_local
in
live_locals
{
debug!
(
"add_liveness_constraints: location={:?} live_local={:?}"
,
location
,
live_local
location
,
live_local
);
self
.flow_inits
.each_state_bit
(|
mpi_init
|
{
...
...
@@ -157,8 +156,7 @@ fn push_type_live_constraint<T>(&mut self, value: T, location: Location, cause:
{
debug!
(
"push_type_live_constraint(live_ty={:?}, location={:?})"
,
value
,
location
value
,
location
);
self
.tcx
.for_each_free_region
(
&
value
,
|
live_region
|
{
...
...
@@ -182,9 +180,7 @@ fn add_drop_live_constraint(
)
{
debug!
(
"add_drop_live_constraint(dropped_local={:?}, dropped_ty={:?}, location={:?})"
,
dropped_local
,
dropped_ty
,
location
dropped_local
,
dropped_ty
,
location
);
// If we end visiting the same type twice (usually due to a cycle involving
...
...
src/librustc_mir/borrow_check/nll/type_check/mod.rs
浏览文件 @
652b3b71
...
...
@@ -243,8 +243,7 @@ fn sanitize_type(&mut self, parent: &dyn fmt::Debug, ty: Ty<'tcx>) -> Ty<'tcx> {
fn
sanitize_constant
(
&
mut
self
,
constant
:
&
Constant
<
'tcx
>
,
location
:
Location
)
{
debug!
(
"sanitize_constant(constant={:?}, location={:?})"
,
constant
,
location
constant
,
location
);
let
expected_ty
=
match
constant
.literal
{
...
...
@@ -678,8 +677,10 @@ fn fully_perform_op<OP, R>(
let
data
=
self
.infcx
.take_and_reset_region_constraints
();
if
!
data
.is_empty
()
{
debug!
(
"fully_perform_op: constraints generated at {:?} are {:#?}"
,
locations
,
data
);
debug!
(
"fully_perform_op: constraints generated at {:?} are {:#?}"
,
locations
,
data
);
self
.constraints
.outlives_sets
.push
(
OutlivesSet
{
locations
,
data
});
...
...
@@ -1137,12 +1138,16 @@ fn check_iscleanup(&mut self, mir: &Mir<'tcx>, block_data: &BasicBlockData<'tcx>
}
TerminatorKind
::
FalseUnwind
{
real_target
,
unwind
unwind
,
}
=>
{
self
.assert_iscleanup
(
mir
,
block_data
,
real_target
,
is_cleanup
);
if
let
Some
(
unwind
)
=
unwind
{
if
is_cleanup
{
span_mirbug!
(
self
,
block_data
,
"cleanup in cleanup block via false unwind"
);
span_mirbug!
(
self
,
block_data
,
"cleanup in cleanup block via false unwind"
);
}
self
.assert_iscleanup
(
mir
,
block_data
,
unwind
,
true
);
}
...
...
@@ -1435,8 +1440,7 @@ fn prove_aggregate_predicates(
debug!
(
"prove_aggregate_predicates(aggregate_kind={:?}, location={:?})"
,
aggregate_kind
,
location
aggregate_kind
,
location
);
let
instantiated_predicates
=
match
aggregate_kind
{
...
...
@@ -1502,8 +1506,7 @@ fn prove_trait_ref(&mut self, trait_ref: ty::TraitRef<'tcx>, location: Location)
fn
prove_predicates
(
&
mut
self
,
predicates
:
&
[
ty
::
Predicate
<
'tcx
>
],
location
:
Location
)
{
debug!
(
"prove_predicates(predicates={:?}, location={:?})"
,
predicates
,
location
predicates
,
location
);
self
.fully_perform_op
(
location
.at_self
(),
|
this
|
{
let
cause
=
this
.misc
(
this
.last_span
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录