Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
e203b3ab
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,发现更多精彩内容 >>
提交
e203b3ab
编写于
3月 06, 2018
作者:
M
Michael Woerister
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove the (inaccurate) symbol_export_level query.
上级
8d95c869
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
4 addition
and
9 deletion
+4
-9
src/librustc/dep_graph/dep_node.rs
src/librustc/dep_graph/dep_node.rs
+0
-2
src/librustc/ty/maps/mod.rs
src/librustc/ty/maps/mod.rs
+0
-1
src/librustc/ty/maps/plumbing.rs
src/librustc/ty/maps/plumbing.rs
+0
-1
src/librustc_mir/monomorphize/partitioning.rs
src/librustc_mir/monomorphize/partitioning.rs
+2
-1
src/librustc_trans/back/symbol_export.rs
src/librustc_trans/back/symbol_export.rs
+2
-4
未找到文件。
src/librustc/dep_graph/dep_node.rs
浏览文件 @
e203b3ab
...
@@ -648,8 +648,6 @@ pub fn fingerprint_needed_for_crate_hash(self) -> bool {
...
@@ -648,8 +648,6 @@ pub fn fingerprint_needed_for_crate_hash(self) -> bool {
[]
InstanceDefSizeEstimate
{
instance_def
:
InstanceDef
<
'tcx
>
},
[]
InstanceDefSizeEstimate
{
instance_def
:
InstanceDef
<
'tcx
>
},
[]
GetSymbolExportLevel
(
DefId
),
[]
WasmCustomSections
(
CrateNum
),
[]
WasmCustomSections
(
CrateNum
),
[
input
]
Features
,
[
input
]
Features
,
...
...
src/librustc/ty/maps/mod.rs
浏览文件 @
e203b3ab
...
@@ -390,7 +390,6 @@
...
@@ -390,7 +390,6 @@
[]
fn
collect_and_partition_translation_items
:
[]
fn
collect_and_partition_translation_items
:
collect_and_partition_translation_items_node
(
CrateNum
)
collect_and_partition_translation_items_node
(
CrateNum
)
->
(
Arc
<
DefIdSet
>
,
Arc
<
Vec
<
Arc
<
CodegenUnit
<
'tcx
>>>>
),
->
(
Arc
<
DefIdSet
>
,
Arc
<
Vec
<
Arc
<
CodegenUnit
<
'tcx
>>>>
),
[]
fn
symbol_export_level
:
GetSymbolExportLevel
(
DefId
)
->
SymbolExportLevel
,
[]
fn
is_translated_item
:
IsTranslatedItem
(
DefId
)
->
bool
,
[]
fn
is_translated_item
:
IsTranslatedItem
(
DefId
)
->
bool
,
[]
fn
codegen_unit
:
CodegenUnit
(
InternedString
)
->
Arc
<
CodegenUnit
<
'tcx
>>
,
[]
fn
codegen_unit
:
CodegenUnit
(
InternedString
)
->
Arc
<
CodegenUnit
<
'tcx
>>
,
[]
fn
compile_codegen_unit
:
CompileCodegenUnit
(
InternedString
)
->
Stats
,
[]
fn
compile_codegen_unit
:
CompileCodegenUnit
(
InternedString
)
->
Stats
,
...
...
src/librustc/ty/maps/plumbing.rs
浏览文件 @
e203b3ab
...
@@ -1087,7 +1087,6 @@ pub fn force_from_dep_node<'a, 'gcx, 'lcx>(tcx: TyCtxt<'a, 'gcx, 'lcx>,
...
@@ -1087,7 +1087,6 @@ pub fn force_from_dep_node<'a, 'gcx, 'lcx>(tcx: TyCtxt<'a, 'gcx, 'lcx>,
DepKind
::
TargetFeaturesWhitelist
=>
{
force!
(
target_features_whitelist
,
LOCAL_CRATE
);
}
DepKind
::
TargetFeaturesWhitelist
=>
{
force!
(
target_features_whitelist
,
LOCAL_CRATE
);
}
DepKind
::
GetSymbolExportLevel
=>
{
force!
(
symbol_export_level
,
def_id!
());
}
DepKind
::
Features
=>
{
force!
(
features_query
,
LOCAL_CRATE
);
}
DepKind
::
Features
=>
{
force!
(
features_query
,
LOCAL_CRATE
);
}
DepKind
::
ProgramClausesFor
=>
{
force!
(
program_clauses_for
,
def_id!
());
}
DepKind
::
ProgramClausesFor
=>
{
force!
(
program_clauses_for
,
def_id!
());
}
...
...
src/librustc_mir/monomorphize/partitioning.rs
浏览文件 @
e203b3ab
...
@@ -328,7 +328,8 @@ fn place_root_translation_items<'a, 'tcx, I>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
...
@@ -328,7 +328,8 @@ fn place_root_translation_items<'a, 'tcx, I>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
let
mut
can_be_internalized
=
true
;
let
mut
can_be_internalized
=
true
;
let
default_visibility
=
|
id
:
DefId
|
{
let
default_visibility
=
|
id
:
DefId
|
{
if
tcx
.sess.target.target.options.default_hidden_visibility
&&
if
tcx
.sess.target.target.options.default_hidden_visibility
&&
tcx
.symbol_export_level
(
id
)
!=
SymbolExportLevel
::
C
tcx
.reachable_non_generics
(
id
.krate
)
.get
(
&
id
)
.cloned
()
!=
Some
(
SymbolExportLevel
::
C
)
{
{
Visibility
::
Hidden
Visibility
::
Hidden
}
else
{
}
else
{
...
...
src/librustc_trans/back/symbol_export.rs
浏览文件 @
e203b3ab
...
@@ -146,7 +146,7 @@ fn reachable_non_generics_provider<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
...
@@ -146,7 +146,7 @@ fn reachable_non_generics_provider<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
SymbolExportLevel
::
Rust
SymbolExportLevel
::
Rust
}
}
}
else
{
}
else
{
tcx
.symbol_export_level
(
def_id
)
symbol_export_level
(
tcx
,
def_id
)
};
};
debug!
(
"EXPORTED SYMBOL (local): {} ({:?})"
,
debug!
(
"EXPORTED SYMBOL (local): {} ({:?})"
,
tcx
.symbol_name
(
Instance
::
mono
(
tcx
,
def_id
)),
tcx
.symbol_name
(
Instance
::
mono
(
tcx
,
def_id
)),
...
@@ -314,17 +314,15 @@ pub fn provide(providers: &mut Providers) {
...
@@ -314,17 +314,15 @@ pub fn provide(providers: &mut Providers) {
providers
.reachable_non_generics
=
reachable_non_generics_provider
;
providers
.reachable_non_generics
=
reachable_non_generics_provider
;
providers
.is_reachable_non_generic
=
is_reachable_non_generic_provider_local
;
providers
.is_reachable_non_generic
=
is_reachable_non_generic_provider_local
;
providers
.exported_symbols
=
exported_symbols_provider_local
;
providers
.exported_symbols
=
exported_symbols_provider_local
;
providers
.symbol_export_level
=
symbol_export_level_provider
;
providers
.upstream_monomorphizations
=
upstream_monomorphizations_provider
;
providers
.upstream_monomorphizations
=
upstream_monomorphizations_provider
;
}
}
pub
fn
provide_extern
(
providers
:
&
mut
Providers
)
{
pub
fn
provide_extern
(
providers
:
&
mut
Providers
)
{
providers
.is_reachable_non_generic
=
is_reachable_non_generic_provider_extern
;
providers
.is_reachable_non_generic
=
is_reachable_non_generic_provider_extern
;
providers
.symbol_export_level
=
symbol_export_level_provider
;
providers
.upstream_monomorphizations_for
=
upstream_monomorphizations_for_provider
;
providers
.upstream_monomorphizations_for
=
upstream_monomorphizations_for_provider
;
}
}
fn
symbol_export_level
_provider
(
tcx
:
TyCtxt
,
sym_def_id
:
DefId
)
->
SymbolExportLevel
{
fn
symbol_export_level
(
tcx
:
TyCtxt
,
sym_def_id
:
DefId
)
->
SymbolExportLevel
{
// We export anything that's not mangled at the "C" layer as it probably has
// We export anything that's not mangled at the "C" layer as it probably has
// to do with ABI concerns. We do not, however, apply such treatment to
// to do with ABI concerns. We do not, however, apply such treatment to
// special symbols in the standard library for various plumbing between
// special symbols in the standard library for various plumbing between
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录