Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
eaf39cbd
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,发现更多精彩内容 >>
提交
eaf39cbd
编写于
12月 13, 2021
作者:
L
LegionMammal978
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove `in_band_lifetimes` from `rustc_codegen_ssa`
See #91867 for more information.
上级
d594910a
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
16 addition
and
17 deletion
+16
-17
compiler/rustc_codegen_ssa/src/back/symbol_export.rs
compiler/rustc_codegen_ssa/src/back/symbol_export.rs
+1
-1
compiler/rustc_codegen_ssa/src/base.rs
compiler/rustc_codegen_ssa/src/base.rs
+1
-1
compiler/rustc_codegen_ssa/src/coverageinfo/map.rs
compiler/rustc_codegen_ssa/src/coverageinfo/map.rs
+7
-7
compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs
compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs
+3
-3
compiler/rustc_codegen_ssa/src/lib.rs
compiler/rustc_codegen_ssa/src/lib.rs
+0
-1
compiler/rustc_codegen_ssa/src/mir/analyze.rs
compiler/rustc_codegen_ssa/src/mir/analyze.rs
+1
-1
compiler/rustc_codegen_ssa/src/mir/operand.rs
compiler/rustc_codegen_ssa/src/mir/operand.rs
+1
-1
compiler/rustc_codegen_ssa/src/traits/type_.rs
compiler/rustc_codegen_ssa/src/traits/type_.rs
+2
-2
未找到文件。
compiler/rustc_codegen_ssa/src/back/symbol_export.rs
浏览文件 @
eaf39cbd
...
...
@@ -154,7 +154,7 @@ fn is_reachable_non_generic_provider_extern(tcx: TyCtxt<'_>, def_id: DefId) -> b
tcx
.reachable_non_generics
(
def_id
.krate
)
.contains_key
(
&
def_id
)
}
fn
exported_symbols_provider_local
(
fn
exported_symbols_provider_local
<
'tcx
>
(
tcx
:
TyCtxt
<
'tcx
>
,
cnum
:
CrateNum
,
)
->
&
'tcx
[(
ExportedSymbol
<
'tcx
>
,
SymbolExportLevel
)]
{
...
...
compiler/rustc_codegen_ssa/src/base.rs
浏览文件 @
eaf39cbd
...
...
@@ -486,7 +486,7 @@ fn get_argc_argv<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
pub
fn
codegen_crate
<
B
:
ExtraBackendMethods
>
(
backend
:
B
,
tcx
:
TyCtxt
<
'
tcx
>
,
tcx
:
TyCtxt
<
'
_
>
,
target_cpu
:
String
,
metadata
:
EncodedMetadata
,
need_metadata_module
:
bool
,
...
...
compiler/rustc_codegen_ssa/src/coverageinfo/map.rs
浏览文件 @
eaf39cbd
...
...
@@ -150,9 +150,9 @@ pub fn source_hash(&self) -> u64 {
/// Generate an array of CounterExpressions, and an iterator over all `Counter`s and their
/// associated `Regions` (from which the LLVM-specific `CoverageMapGenerator` will create
/// `CounterMappingRegion`s.
pub
fn
get_expressions_and_counter_regions
<
'a
>
(
&
'a
self
,
)
->
(
Vec
<
CounterExpression
>
,
impl
Iterator
<
Item
=
(
Counter
,
&
'a
CodeRegion
)
>
)
{
pub
fn
get_expressions_and_counter_regions
(
&
self
,
)
->
(
Vec
<
CounterExpression
>
,
impl
Iterator
<
Item
=
(
Counter
,
&
CodeRegion
)
>
)
{
assert
!
(
self
.source_hash
!=
0
||
!
self
.is_used
,
"No counters provided the source_hash for used function: {:?}"
,
...
...
@@ -168,7 +168,7 @@ pub fn get_expressions_and_counter_regions<'a>(
(
counter_expressions
,
counter_regions
)
}
fn
counter_regions
<
'a
>
(
&
'a
self
)
->
impl
Iterator
<
Item
=
(
Counter
,
&
'a
CodeRegion
)
>
{
fn
counter_regions
(
&
self
)
->
impl
Iterator
<
Item
=
(
Counter
,
&
CodeRegion
)
>
{
self
.counters
.iter_enumerated
()
.filter_map
(|(
index
,
entry
)|
{
// Option::map() will return None to filter out missing counters. This may happen
// if, for example, a MIR-instrumented counter is removed during an optimization.
...
...
@@ -177,8 +177,8 @@ fn counter_regions<'a>(&'a self) -> impl Iterator<Item = (Counter, &'a CodeRegio
}
fn
expressions_with_regions
(
&
'a
self
,
)
->
(
Vec
<
CounterExpression
>
,
impl
Iterator
<
Item
=
(
Counter
,
&
'a
CodeRegion
)
>
)
{
&
self
,
)
->
(
Vec
<
CounterExpression
>
,
impl
Iterator
<
Item
=
(
Counter
,
&
CodeRegion
)
>
)
{
let
mut
counter_expressions
=
Vec
::
with_capacity
(
self
.expressions
.len
());
let
mut
expression_regions
=
Vec
::
with_capacity
(
self
.expressions
.len
());
let
mut
new_indexes
=
IndexVec
::
from_elem_n
(
None
,
self
.expressions
.len
());
...
...
@@ -336,7 +336,7 @@ fn expressions_with_regions(
(
counter_expressions
,
expression_regions
.into_iter
())
}
fn
unreachable_regions
<
'a
>
(
&
'a
self
)
->
impl
Iterator
<
Item
=
(
Counter
,
&
'a
CodeRegion
)
>
{
fn
unreachable_regions
(
&
self
)
->
impl
Iterator
<
Item
=
(
Counter
,
&
CodeRegion
)
>
{
self
.unreachable_regions
.iter
()
.map
(|
region
|
(
Counter
::
zero
(),
region
))
}
...
...
compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs
浏览文件 @
eaf39cbd
...
...
@@ -376,7 +376,7 @@ fn push_debuginfo_type_name<'tcx>(
// format (natvis) is able to understand enums and render the active variant correctly in the
// debugger. For more information, look in `src/etc/natvis/intrinsic.natvis` and
// `EnumMemberDescriptionFactor::create_member_descriptions`.
fn
msvc_enum_fallback
(
fn
msvc_enum_fallback
<
'tcx
>
(
tcx
:
TyCtxt
<
'tcx
>
,
ty
:
Ty
<
'tcx
>
,
def
:
&
AdtDef
,
...
...
@@ -496,7 +496,7 @@ pub fn compute_debuginfo_vtable_name<'tcx>(
vtable_name
}
pub
fn
push_item_name
(
tcx
:
TyCtxt
<
'
tcx
>
,
def_id
:
DefId
,
qualified
:
bool
,
output
:
&
mut
String
)
{
pub
fn
push_item_name
(
tcx
:
TyCtxt
<
'
_
>
,
def_id
:
DefId
,
qualified
:
bool
,
output
:
&
mut
String
)
{
let
def_key
=
tcx
.def_key
(
def_id
);
if
qualified
{
if
let
Some
(
parent
)
=
def_key
.parent
{
...
...
@@ -509,7 +509,7 @@ pub fn push_item_name(tcx: TyCtxt<'tcx>, def_id: DefId, qualified: bool, output:
}
fn
push_unqualified_item_name
(
tcx
:
TyCtxt
<
'
tcx
>
,
tcx
:
TyCtxt
<
'
_
>
,
def_id
:
DefId
,
disambiguated_data
:
DisambiguatedDefPathData
,
output
:
&
mut
String
,
...
...
compiler/rustc_codegen_ssa/src/lib.rs
浏览文件 @
eaf39cbd
...
...
@@ -2,7 +2,6 @@
#![feature(bool_to_option)]
#![feature(box_patterns)]
#![feature(try_blocks)]
#![feature(in_band_lifetimes)]
#![feature(let_else)]
#![feature(once_cell)]
#![feature(nll)]
...
...
compiler/rustc_codegen_ssa/src/mir/analyze.rs
浏览文件 @
eaf39cbd
...
...
@@ -73,7 +73,7 @@ struct LocalAnalyzer<'mir, 'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> {
locals
:
IndexVec
<
mir
::
Local
,
LocalKind
>
,
}
impl
<
Bx
:
BuilderMethods
<
'a
,
'tcx
>>
LocalAnalyzer
<
'mir
,
'a
,
'tcx
,
Bx
>
{
impl
<
'mir
,
'a
,
'tcx
,
Bx
:
BuilderMethods
<
'a
,
'tcx
>>
LocalAnalyzer
<
'mir
,
'a
,
'tcx
,
Bx
>
{
fn
assign
(
&
mut
self
,
local
:
mir
::
Local
,
location
:
Location
)
{
let
kind
=
&
mut
self
.locals
[
local
];
match
*
kind
{
...
...
compiler/rustc_codegen_ssa/src/mir/operand.rs
浏览文件 @
eaf39cbd
...
...
@@ -47,7 +47,7 @@ pub struct OperandRef<'tcx, V> {
pub
layout
:
TyAndLayout
<
'tcx
>
,
}
impl
<
V
:
CodegenObject
>
fmt
::
Debug
for
OperandRef
<
'
tcx
,
V
>
{
impl
<
V
:
CodegenObject
>
fmt
::
Debug
for
OperandRef
<
'
_
,
V
>
{
fn
fmt
(
&
self
,
f
:
&
mut
fmt
::
Formatter
<
'_
>
)
->
fmt
::
Result
{
write!
(
f
,
"OperandRef({:?} @ {:?})"
,
self
.val
,
self
.layout
)
}
...
...
compiler/rustc_codegen_ssa/src/traits/type_.rs
浏览文件 @
eaf39cbd
...
...
@@ -97,7 +97,7 @@ fn type_has_metadata(&self, ty: Ty<'tcx>) -> bool {
}
}
impl
<
T
>
DerivedTypeMethods
<
'tcx
>
for
T
where
Self
:
BaseTypeMethods
<
'tcx
>
+
MiscMethods
<
'tcx
>
{}
impl
<
'tcx
,
T
>
DerivedTypeMethods
<
'tcx
>
for
T
where
Self
:
BaseTypeMethods
<
'tcx
>
+
MiscMethods
<
'tcx
>
{}
pub
trait
LayoutTypeMethods
<
'tcx
>
:
Backend
<
'tcx
>
{
fn
backend_type
(
&
self
,
layout
:
TyAndLayout
<
'tcx
>
)
->
Self
::
Type
;
...
...
@@ -135,4 +135,4 @@ fn store_arg(
pub
trait
TypeMethods
<
'tcx
>
:
DerivedTypeMethods
<
'tcx
>
+
LayoutTypeMethods
<
'tcx
>
{}
impl
<
T
>
TypeMethods
<
'tcx
>
for
T
where
Self
:
DerivedTypeMethods
<
'tcx
>
+
LayoutTypeMethods
<
'tcx
>
{}
impl
<
'tcx
,
T
>
TypeMethods
<
'tcx
>
for
T
where
Self
:
DerivedTypeMethods
<
'tcx
>
+
LayoutTypeMethods
<
'tcx
>
{}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录