Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
3c30415e
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,发现更多精彩内容 >>
提交
3c30415e
编写于
7月 01, 2018
作者:
N
Niko Matsakis
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename `graph` to `control_flow_graph::implementation`
上级
28c483b9
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
16 addition
and
12 deletion
+16
-12
src/librustc/cfg/construct.rs
src/librustc/cfg/construct.rs
+2
-2
src/librustc/cfg/mod.rs
src/librustc/cfg/mod.rs
+1
-1
src/librustc/dep_graph/query.rs
src/librustc/dep_graph/query.rs
+3
-1
src/librustc/infer/lexical_region_resolve/mod.rs
src/librustc/infer/lexical_region_resolve/mod.rs
+5
-5
src/librustc/middle/dataflow.rs
src/librustc/middle/dataflow.rs
+1
-1
src/librustc_data_structures/control_flow_graph/implementation/mod.rs
..._data_structures/control_flow_graph/implementation/mod.rs
+0
-0
src/librustc_data_structures/control_flow_graph/implementation/tests.rs
...ata_structures/control_flow_graph/implementation/tests.rs
+0
-0
src/librustc_data_structures/control_flow_graph/mod.rs
src/librustc_data_structures/control_flow_graph/mod.rs
+1
-0
src/librustc_data_structures/lib.rs
src/librustc_data_structures/lib.rs
+0
-1
src/librustc_incremental/assert_dep_graph.rs
src/librustc_incremental/assert_dep_graph.rs
+3
-1
未找到文件。
src/librustc/cfg/construct.rs
浏览文件 @
3c30415e
...
...
@@ -8,11 +8,11 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use
rustc_data_structures
::
graph
;
use
cfg
::
*
;
use
middle
::
region
;
use
ty
::{
self
,
TyCtxt
}
;
use
rustc_data_structures
::
control_flow_graph
::
implementation
as
graph
;
use
syntax
::
ptr
::
P
;
use
ty
::{
self
,
TyCtxt
};
use
hir
::{
self
,
PatKind
};
use
hir
::
def_id
::
DefId
;
...
...
src/librustc/cfg/mod.rs
浏览文件 @
3c30415e
...
...
@@ -11,7 +11,7 @@
//! Module that constructs a control-flow graph representing an item.
//! Uses `Graph` as the underlying representation.
use
rustc_data_structures
::
graph
;
use
rustc_data_structures
::
control_flow_graph
::
implementation
as
graph
;
use
ty
::
TyCtxt
;
use
hir
;
use
hir
::
def_id
::
DefId
;
...
...
src/librustc/dep_graph/query.rs
浏览文件 @
3c30415e
...
...
@@ -9,7 +9,9 @@
// except according to those terms.
use
rustc_data_structures
::
fx
::
FxHashMap
;
use
rustc_data_structures
::
graph
::{
Direction
,
INCOMING
,
Graph
,
NodeIndex
,
OUTGOING
};
use
rustc_data_structures
::
control_flow_graph
::
implementation
::{
Direction
,
INCOMING
,
Graph
,
NodeIndex
,
OUTGOING
};
use
super
::
DepNode
;
...
...
src/librustc/infer/lexical_region_resolve/mod.rs
浏览文件 @
3c30415e
...
...
@@ -20,7 +20,7 @@
use
middle
::
free_region
::
RegionRelations
;
use
rustc_data_structures
::
indexed_vec
::{
Idx
,
IndexVec
};
use
rustc_data_structures
::
fx
::
FxHashSet
;
use
rustc_data_structures
::
graph
::{
self
,
Direction
,
NodeIndex
,
OUTGOING
};
use
rustc_data_structures
::
control_flow_graph
::
implementation
::{
Graph
,
Direction
,
NodeIndex
,
INCOMING
,
OUTGOING
};
use
std
::
fmt
;
use
std
::
u32
;
use
ty
::{
self
,
TyCtxt
};
...
...
@@ -99,7 +99,7 @@ struct RegionAndOrigin<'tcx> {
origin
:
SubregionOrigin
<
'tcx
>
,
}
type
RegionGraph
<
'tcx
>
=
graph
::
Graph
<
(),
Constraint
<
'tcx
>>
;
type
RegionGraph
<
'tcx
>
=
Graph
<
(),
Constraint
<
'tcx
>>
;
struct
LexicalResolver
<
'cx
,
'gcx
:
'tcx
,
'tcx
:
'cx
>
{
region_rels
:
&
'cx
RegionRelations
<
'cx
,
'gcx
,
'tcx
>
,
...
...
@@ -501,7 +501,7 @@ fn collect_var_errors(
fn
construct_graph
(
&
self
)
->
RegionGraph
<
'tcx
>
{
let
num_vars
=
self
.num_vars
();
let
mut
graph
=
graph
::
Graph
::
new
();
let
mut
graph
=
Graph
::
new
();
for
_
in
0
..
num_vars
{
graph
.add_node
(());
...
...
@@ -550,9 +550,9 @@ fn collect_error_for_expanding_node(
// Errors in expanding nodes result from a lower-bound that is
// not contained by an upper-bound.
let
(
mut
lower_bounds
,
lower_dup
)
=
self
.collect_concrete_regions
(
graph
,
node_idx
,
graph
::
INCOMING
,
dup_vec
);
self
.collect_concrete_regions
(
graph
,
node_idx
,
INCOMING
,
dup_vec
);
let
(
mut
upper_bounds
,
upper_dup
)
=
self
.collect_concrete_regions
(
graph
,
node_idx
,
graph
::
OUTGOING
,
dup_vec
);
self
.collect_concrete_regions
(
graph
,
node_idx
,
OUTGOING
,
dup_vec
);
if
lower_dup
||
upper_dup
{
return
;
...
...
src/librustc/middle/dataflow.rs
浏览文件 @
3c30415e
...
...
@@ -22,7 +22,7 @@
use
std
::
usize
;
use
syntax
::
print
::
pprust
::
PrintState
;
use
rustc_data_structures
::
graph
::
OUTGOING
;
use
rustc_data_structures
::
control_flow_graph
::
implementation
::
OUTGOING
;
use
util
::
nodemap
::
FxHashMap
;
use
hir
;
...
...
src/librustc_data_structures/
graph
/mod.rs
→
src/librustc_data_structures/
control_flow_graph/implementation
/mod.rs
浏览文件 @
3c30415e
文件已移动
src/librustc_data_structures/
graph
/tests.rs
→
src/librustc_data_structures/
control_flow_graph/implementation
/tests.rs
浏览文件 @
3c30415e
文件已移动
src/librustc_data_structures/control_flow_graph/mod.rs
浏览文件 @
3c30415e
...
...
@@ -11,6 +11,7 @@
use
super
::
indexed_vec
::
Idx
;
pub
mod
dominators
;
pub
mod
implementation
;
pub
mod
iterate
;
mod
reference
;
...
...
src/librustc_data_structures/lib.rs
浏览文件 @
3c30415e
...
...
@@ -59,7 +59,6 @@
pub
mod
base_n
;
pub
mod
bitslice
;
pub
mod
bitvec
;
pub
mod
graph
;
pub
mod
indexed_set
;
pub
mod
indexed_vec
;
pub
mod
obligation_forest
;
...
...
src/librustc_incremental/assert_dep_graph.rs
浏览文件 @
3c30415e
...
...
@@ -49,7 +49,9 @@
use
rustc
::
hir
::
def_id
::
DefId
;
use
rustc
::
ty
::
TyCtxt
;
use
rustc_data_structures
::
fx
::
FxHashSet
;
use
rustc_data_structures
::
graph
::{
Direction
,
INCOMING
,
OUTGOING
,
NodeIndex
};
use
rustc_data_structures
::
control_flow_graph
::
implementation
::{
Direction
,
INCOMING
,
OUTGOING
,
NodeIndex
};
use
rustc
::
hir
;
use
rustc
::
hir
::
intravisit
::{
self
,
NestedVisitorMap
,
Visitor
};
use
rustc
::
ich
::{
ATTR_IF_THIS_CHANGED
,
ATTR_THEN_THIS_WOULD_NEED
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录