Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
c0b60c42
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,发现更多精彩内容 >>
提交
c0b60c42
编写于
2月 12, 2020
作者:
J
John Kåre Alsaker
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Replace `HirBody` with `hir_owner_items` in tests
上级
739a1ef1
变更
33
隐藏空白更改
内联
并排
Showing
33 changed file
with
356 addition
and
355 deletion
+356
-355
src/librustc_incremental/persist/dirty_clean.rs
src/librustc_incremental/persist/dirty_clean.rs
+3
-2
src/librustc_metadata/rmeta/decoder/cstore_impl.rs
src/librustc_metadata/rmeta/decoder/cstore_impl.rs
+1
-1
src/test/incremental/hashes/call_expressions.rs
src/test/incremental/hashes/call_expressions.rs
+11
-11
src/test/incremental/hashes/closure_expressions.rs
src/test/incremental/hashes/closure_expressions.rs
+6
-6
src/test/incremental/hashes/consts.rs
src/test/incremental/hashes/consts.rs
+9
-9
src/test/incremental/hashes/enum_constructors.rs
src/test/incremental/hashes/enum_constructors.rs
+15
-15
src/test/incremental/hashes/enum_defs.rs
src/test/incremental/hashes/enum_defs.rs
+27
-27
src/test/incremental/hashes/exported_vs_not.rs
src/test/incremental/hashes/exported_vs_not.rs
+4
-4
src/test/incremental/hashes/for_loops.rs
src/test/incremental/hashes/for_loops.rs
+11
-11
src/test/incremental/hashes/function_interfaces.rs
src/test/incremental/hashes/function_interfaces.rs
+24
-24
src/test/incremental/hashes/if_expressions.rs
src/test/incremental/hashes/if_expressions.rs
+8
-8
src/test/incremental/hashes/indexing_expressions.rs
src/test/incremental/hashes/indexing_expressions.rs
+14
-14
src/test/incremental/hashes/inherent_impls.rs
src/test/incremental/hashes/inherent_impls.rs
+26
-26
src/test/incremental/hashes/inline_asm.rs
src/test/incremental/hashes/inline_asm.rs
+6
-6
src/test/incremental/hashes/let_expressions.rs
src/test/incremental/hashes/let_expressions.rs
+12
-12
src/test/incremental/hashes/loop_expressions.rs
src/test/incremental/hashes/loop_expressions.rs
+8
-8
src/test/incremental/hashes/match_expressions.rs
src/test/incremental/hashes/match_expressions.rs
+13
-13
src/test/incremental/hashes/panic_exprs.rs
src/test/incremental/hashes/panic_exprs.rs
+9
-9
src/test/incremental/hashes/statics.rs
src/test/incremental/hashes/statics.rs
+13
-13
src/test/incremental/hashes/struct_constructors.rs
src/test/incremental/hashes/struct_constructors.rs
+9
-9
src/test/incremental/hashes/struct_defs.rs
src/test/incremental/hashes/struct_defs.rs
+42
-42
src/test/incremental/hashes/trait_defs.rs
src/test/incremental/hashes/trait_defs.rs
+4
-4
src/test/incremental/hashes/trait_impls.rs
src/test/incremental/hashes/trait_impls.rs
+4
-4
src/test/incremental/hashes/type_defs.rs
src/test/incremental/hashes/type_defs.rs
+16
-16
src/test/incremental/hashes/unary_and_binary_exprs.rs
src/test/incremental/hashes/unary_and_binary_exprs.rs
+28
-28
src/test/incremental/hashes/while_let_loops.rs
src/test/incremental/hashes/while_let_loops.rs
+9
-9
src/test/incremental/hashes/while_loops.rs
src/test/incremental/hashes/while_loops.rs
+9
-9
src/test/incremental/ich_method_call_trait_scope.rs
src/test/incremental/ich_method_call_trait_scope.rs
+2
-2
src/test/incremental/ich_nested_items.rs
src/test/incremental/ich_nested_items.rs
+2
-2
src/test/incremental/ich_resolve_results.rs
src/test/incremental/ich_resolve_results.rs
+4
-4
src/test/incremental/source_loc_macros.rs
src/test/incremental/source_loc_macros.rs
+5
-5
src/test/incremental/spans_significant_w_debuginfo.rs
src/test/incremental/spans_significant_w_debuginfo.rs
+1
-1
src/test/incremental/string_constant.rs
src/test/incremental/string_constant.rs
+1
-1
未找到文件。
src/librustc_incremental/persist/dirty_clean.rs
浏览文件 @
c0b60c42
...
...
@@ -53,8 +53,9 @@
/// DepNodes for Hir, which is pretty much everything
const
BASE_HIR
:
&
[
&
str
]
=
&
[
// Hir and HirBody should be computed for all nodes
"Hir"
,
"HirBody"
,
// hir_owner and hir_owner_items should be computed for all nodes
label_strs
::
hir_owner
,
label_strs
::
hir_owner_items
,
];
/// `impl` implementation of struct/trait
...
...
src/librustc_metadata/rmeta/decoder/cstore_impl.rs
浏览文件 @
c0b60c42
...
...
@@ -142,7 +142,7 @@ fn into_args(self) -> (DefId, DefId) {
cdata
.get_deprecation
(
def_id
.index
)
.map
(
DeprecationEntry
::
external
)
}
item_attrs
=>
{
cdata
.get_item_attrs
(
def_id
.index
,
tcx
.sess
)
}
// FIXME(#38501) We've skipped a `read` on the `
HirBody
` of
// FIXME(#38501) We've skipped a `read` on the `
hir_owner_items
` of
// a `fn` when encoding, so the dep-tracking wouldn't work.
// This is only used by rustdoc anyway, which shouldn't have
// incremental recompilation ever enabled.
...
...
src/test/incremental/hashes/call_expressions.rs
浏览文件 @
c0b60c42
...
...
@@ -25,7 +25,7 @@ pub fn change_callee_function() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_callee_function
()
{
callee2
(
1
,
2
)
...
...
@@ -40,7 +40,7 @@ pub fn change_argument_function() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_argument_function
()
{
callee1
(
1
,
3
)
...
...
@@ -57,8 +57,8 @@ mod change_callee_indirectly_function {
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
pub
fn
change_callee_indirectly_function
()
{
...
...
@@ -81,7 +81,7 @@ pub fn change_callee_method() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_callee_method
()
{
let
s
=
Struct
;
...
...
@@ -98,7 +98,7 @@ pub fn change_argument_method() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_argument_method
()
{
let
s
=
Struct
;
...
...
@@ -115,7 +115,7 @@ pub fn change_ufcs_callee_method() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_ufcs_callee_method
()
{
let
s
=
Struct
;
...
...
@@ -132,7 +132,7 @@ pub fn change_argument_method_ufcs() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_argument_method_ufcs
()
{
let
s
=
Struct
;
...
...
@@ -149,9 +149,9 @@ pub fn change_to_ufcs() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
// One might think this would be expanded in the
HirBody
/Mir, but it actually
// One might think this would be expanded in the
hir_owner_items
/Mir, but it actually
// results in slightly different Hir/Mir.
pub
fn
change_to_ufcs
()
{
let
s
=
Struct
;
...
...
@@ -171,7 +171,7 @@ pub mod change_ufcs_callee_indirectly {
#[cfg(not(cfail1))]
use
super
::
Struct2
as
Struct
;
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
...
...
src/test/incremental/hashes/closure_expressions.rs
浏览文件 @
c0b60c42
...
...
@@ -21,7 +21,7 @@ pub fn change_closure_body() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_closure_body
()
{
let
_
=
||
3u32
;
...
...
@@ -37,7 +37,7 @@ pub fn add_parameter() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_parameter
()
{
let
x
=
0u32
;
...
...
@@ -53,7 +53,7 @@ pub fn change_parameter_pattern() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_parameter_pattern
()
{
let
_
=
|(
x
,):
(
u32
,)|
x
;
...
...
@@ -68,7 +68,7 @@ pub fn add_move() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_move
()
{
let
_
=
move
||
1
;
...
...
@@ -84,7 +84,7 @@ pub fn add_type_ascription_to_parameter() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_type_ascription_to_parameter
()
{
let
closure
=
|
x
:
u32
|
x
+
1u32
;
...
...
@@ -101,7 +101,7 @@ pub fn change_parameter_type() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_parameter_type
()
{
let
closure
=
|
x
:
u16
|
(
x
as
u64
)
+
1
;
...
...
src/test/incremental/hashes/consts.rs
浏览文件 @
c0b60c42
...
...
@@ -19,7 +19,7 @@
const
CONST_VISIBILITY
:
u8
=
0
;
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
const
CONST_VISIBILITY
:
u8
=
0
;
...
...
@@ -29,7 +29,7 @@
const
CONST_CHANGE_TYPE_1
:
i32
=
0
;
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
const
CONST_CHANGE_TYPE_1
:
u32
=
0
;
...
...
@@ -39,13 +39,13 @@
const
CONST_CHANGE_TYPE_2
:
Option
<
u32
>
=
None
;
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
const
CONST_CHANGE_TYPE_2
:
Option
<
u64
>
=
None
;
// Change value between simple literals
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
const
CONST_CHANGE_VALUE_1
:
i16
=
{
#[cfg(cfail1)]
...
...
@@ -57,7 +57,7 @@
// Change value between expressions
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
const
CONST_CHANGE_VALUE_2
:
i16
=
{
#[cfg(cfail1)]
...
...
@@ -67,7 +67,7 @@
{
1
+
2
}
};
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
const
CONST_CHANGE_VALUE_3
:
i16
=
{
#[cfg(cfail1)]
...
...
@@ -77,7 +77,7 @@
{
2
*
3
}
};
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
const
CONST_CHANGE_VALUE_4
:
i16
=
{
#[cfg(cfail1)]
...
...
@@ -99,11 +99,11 @@ mod const_change_type_indirectly {
#[cfg(not(cfail1))]
use
super
::
ReferencedType2
as
Type
;
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
const
CONST_CHANGE_TYPE_INDIRECTLY_1
:
Type
=
Type
;
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
const
CONST_CHANGE_TYPE_INDIRECTLY_2
:
Option
<
Type
>
=
None
;
}
src/test/incremental/hashes/enum_constructors.rs
浏览文件 @
c0b60c42
...
...
@@ -34,7 +34,7 @@ pub fn change_field_value_struct_like() -> Enum {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_field_value_struct_like
()
->
Enum
{
Enum
::
Struct
{
...
...
@@ -57,7 +57,7 @@ pub fn change_field_order_struct_like() -> Enum {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
// FIXME(michaelwoerister):Interesting. I would have thought that that changes the MIR. And it
// would if it were not all constants
...
...
@@ -96,7 +96,7 @@ pub fn change_constructor_path_struct_like() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,optimized_mir,mir_built,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,optimized_mir,mir_built,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_constructor_path_struct_like
()
{
let
_
=
Enum2
::
Struct
{
...
...
@@ -119,7 +119,7 @@ pub fn change_constructor_variant_struct_like() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_constructor_variant_struct_like
()
{
let
_
=
Enum2
::
Struct2
{
...
...
@@ -139,7 +139,7 @@ pub mod change_constructor_path_indirectly_struct_like {
#[rustc_clean(
cfg=
"cfail2"
,
except=
"fn_sig,Hir,
HirBody
,optimized_mir,mir_built,
\
except=
"fn_sig,Hir,
hir_owner_items
,optimized_mir,mir_built,
\
typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
...
...
@@ -161,7 +161,7 @@ pub mod change_constructor_variant_indirectly_struct_like {
#[cfg(not(cfail1))]
use
super
::
Enum2
::
Struct2
as
Variant
;
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
function
()
->
Enum2
{
Variant
{
...
...
@@ -180,7 +180,7 @@ pub fn change_field_value_tuple_like() -> Enum {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_field_value_tuple_like
()
->
Enum
{
Enum
::
Tuple
(
0
,
1
,
3
)
...
...
@@ -197,7 +197,7 @@ pub fn change_constructor_path_tuple_like() {
#[cfg(not(cfail1))]
#[rustc_clean(
cfg=
"cfail2"
,
except=
"
HirBody
,optimized_mir,mir_built,typeck_tables_of"
except=
"
hir_owner_items
,optimized_mir,mir_built,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_constructor_path_tuple_like
()
{
...
...
@@ -215,7 +215,7 @@ pub fn change_constructor_variant_tuple_like() {
#[cfg(not(cfail1))]
#[rustc_clean(
cfg=
"cfail2"
,
except=
"
HirBody
,optimized_mir,mir_built,typeck_tables_of"
except=
"
hir_owner_items
,optimized_mir,mir_built,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_constructor_variant_tuple_like
()
{
...
...
@@ -232,7 +232,7 @@ pub mod change_constructor_path_indirectly_tuple_like {
#[rustc_clean(
cfg=
"cfail2"
,
except=
"fn_sig,Hir,
HirBody
,optimized_mir,mir_built,
\
except=
"fn_sig,Hir,
hir_owner_items
,optimized_mir,mir_built,
\
typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
...
...
@@ -251,7 +251,7 @@ pub mod change_constructor_variant_indirectly_tuple_like {
#[cfg(not(cfail1))]
use
super
::
Enum2
::
Tuple2
as
Variant
;
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,optimized_mir,mir_built,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,optimized_mir,mir_built,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
function
()
->
Enum2
{
Variant
(
0
,
1
,
2
)
...
...
@@ -278,7 +278,7 @@ pub fn change_constructor_path_c_like() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,optimized_mir,mir_built,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,optimized_mir,mir_built,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_constructor_path_c_like
()
{
let
_
=
Clike2
::
B
;
...
...
@@ -293,7 +293,7 @@ pub fn change_constructor_variant_c_like() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_constructor_variant_c_like
()
{
let
_
=
Clike
::
C
;
...
...
@@ -309,7 +309,7 @@ pub mod change_constructor_path_indirectly_c_like {
#[rustc_clean(
cfg=
"cfail2"
,
except=
"fn_sig,Hir,
HirBody
,optimized_mir,mir_built,
\
except=
"fn_sig,Hir,
hir_owner_items
,optimized_mir,mir_built,
\
typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
...
...
@@ -328,7 +328,7 @@ pub mod change_constructor_variant_indirectly_c_like {
#[cfg(not(cfail1))]
use
super
::
Clike
::
B
as
Variant
;
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
function
()
->
Clike
{
Variant
...
...
src/test/incremental/hashes/enum_defs.rs
浏览文件 @
c0b60c42
...
...
@@ -26,7 +26,7 @@
enum
EnumVisibility
{
A
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
enum
EnumVisibility
{
A
...
...
@@ -42,7 +42,7 @@ enum EnumChangeNameCStyleVariant {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
EnumChangeNameCStyleVariant
{
Variant1
,
...
...
@@ -59,7 +59,7 @@ enum EnumChangeNameTupleStyleVariant {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
EnumChangeNameTupleStyleVariant
{
Variant1
,
...
...
@@ -76,7 +76,7 @@ enum EnumChangeNameStructStyleVariant {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
EnumChangeNameStructStyleVariant
{
Variant1
,
...
...
@@ -93,7 +93,7 @@ enum EnumChangeValueCStyleVariant0 {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
EnumChangeValueCStyleVariant0
{
Variant1
,
...
...
@@ -109,7 +109,7 @@ enum EnumChangeValueCStyleVariant1 {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
EnumChangeValueCStyleVariant1
{
Variant1
,
...
...
@@ -125,7 +125,7 @@ enum EnumAddCStyleVariant {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
EnumAddCStyleVariant
{
Variant1
,
...
...
@@ -142,7 +142,7 @@ enum EnumRemoveCStyleVariant {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
EnumRemoveCStyleVariant
{
Variant1
,
...
...
@@ -157,7 +157,7 @@ enum EnumAddTupleStyleVariant {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
EnumAddTupleStyleVariant
{
Variant1
,
...
...
@@ -174,7 +174,7 @@ enum EnumRemoveTupleStyleVariant {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
EnumRemoveTupleStyleVariant
{
Variant1
,
...
...
@@ -189,7 +189,7 @@ enum EnumAddStructStyleVariant {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
EnumAddStructStyleVariant
{
Variant1
,
...
...
@@ -206,7 +206,7 @@ enum EnumRemoveStructStyleVariant {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
EnumRemoveStructStyleVariant
{
Variant1
,
...
...
@@ -221,7 +221,7 @@ enum EnumChangeFieldTypeTupleStyleVariant {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
EnumChangeFieldTypeTupleStyleVariant
{
Variant1
(
u32
,
...
...
@@ -238,7 +238,7 @@ enum EnumChangeFieldTypeStructStyleVariant {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
EnumChangeFieldTypeStructStyleVariant
{
Variant1
,
...
...
@@ -257,7 +257,7 @@ enum EnumChangeFieldNameStructStyleVariant {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
EnumChangeFieldNameStructStyleVariant
{
Variant1
{
a
:
u32
,
c
:
u32
},
...
...
@@ -272,7 +272,7 @@ enum EnumChangeOrderTupleStyleVariant {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
EnumChangeOrderTupleStyleVariant
{
Variant1
(
...
...
@@ -289,7 +289,7 @@ enum EnumChangeFieldOrderStructStyleVariant {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
EnumChangeFieldOrderStructStyleVariant
{
Variant1
{
b
:
f32
,
a
:
u32
},
...
...
@@ -304,7 +304,7 @@ enum EnumAddFieldTupleStyleVariant {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
EnumAddFieldTupleStyleVariant
{
Variant1
(
u32
,
u32
,
u32
),
...
...
@@ -319,7 +319,7 @@ enum EnumAddFieldStructStyleVariant {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
EnumAddFieldStructStyleVariant
{
Variant1
{
a
:
u32
,
b
:
u32
,
c
:
u32
},
...
...
@@ -335,7 +335,7 @@ enum EnumAddMustUse {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
#[must_use]
enum
EnumAddMustUse
{
...
...
@@ -353,7 +353,7 @@ enum EnumAddReprC {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
#[repr(C)]
enum
EnumAddReprC
{
...
...
@@ -531,7 +531,7 @@ enum EnumSwapUsageTypeParameters<A, B> {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
EnumSwapUsageTypeParameters
<
A
,
B
>
{
Variant1
{
...
...
@@ -552,7 +552,7 @@ enum EnumSwapUsageLifetimeParameters<'a, 'b> {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
EnumSwapUsageLifetimeParameters
<
'a
,
'b
>
{
Variant1
{
...
...
@@ -577,7 +577,7 @@ mod change_field_type_indirectly_tuple_style {
#[cfg(not(cfail1))]
use
super
::
ReferencedType2
as
FieldType
;
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
TupleStyle
{
Variant1
(
...
...
@@ -595,7 +595,7 @@ mod change_field_type_indirectly_struct_style {
#[cfg(not(cfail1))]
use
super
::
ReferencedType2
as
FieldType
;
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
StructStyle
{
Variant1
{
...
...
@@ -618,7 +618,7 @@ mod change_trait_bound_indirectly {
#[cfg(not(cfail1))]
use
super
::
ReferencedTrait2
as
Trait
;
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,predicates_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,predicates_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
Enum
<
T
:
Trait
>
{
Variant1
(
T
)
...
...
@@ -634,7 +634,7 @@ mod change_trait_bound_indirectly_where {
#[cfg(not(cfail1))]
use
super
::
ReferencedTrait2
as
Trait
;
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,predicates_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,predicates_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
enum
Enum
<
T
>
where
T
:
Trait
{
Variant1
(
T
)
...
...
src/test/incremental/hashes/exported_vs_not.rs
浏览文件 @
c0b60c42
...
...
@@ -7,7 +7,7 @@
#![crate_type=
"rlib"
]
// Case 1: The function body is not exported to metadata. If the body changes,
// the hash of the
HirBody
node should change, but not the hash of
// the hash of the
hir_owner_items
node should change, but not the hash of
// either the Hir or the Metadata node.
#[cfg(cfail1)]
...
...
@@ -16,7 +16,7 @@ pub fn body_not_exported_to_metadata() -> u32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
body_not_exported_to_metadata
()
->
u32
{
2
...
...
@@ -35,7 +35,7 @@ pub fn body_exported_to_metadata_because_of_inline() -> u32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
#[inline]
pub
fn
body_exported_to_metadata_because_of_inline
()
->
u32
{
...
...
@@ -55,7 +55,7 @@ pub fn body_exported_to_metadata_because_of_generic() -> u32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
#[inline]
pub
fn
body_exported_to_metadata_because_of_generic
()
->
u32
{
...
...
src/test/incremental/hashes/for_loops.rs
浏览文件 @
c0b60c42
...
...
@@ -25,7 +25,7 @@ pub fn change_loop_body() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_loop_body
()
{
let
mut
_
x
=
0
;
...
...
@@ -48,7 +48,7 @@ pub fn change_iteration_variable_name() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_iteration_variable_name
()
{
let
mut
_
x
=
0
;
...
...
@@ -71,7 +71,7 @@ pub fn change_iteration_variable_pattern() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_iteration_variable_pattern
()
{
let
mut
_
x
=
0
;
...
...
@@ -94,7 +94,7 @@ pub fn change_iterable() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, promoted_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, promoted_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_iterable
()
{
let
mut
_
x
=
0
;
...
...
@@ -116,7 +116,7 @@ pub fn add_break() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_break
()
{
let
mut
_
x
=
0
;
...
...
@@ -139,7 +139,7 @@ pub fn add_loop_label() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_loop_label
()
{
let
mut
_
x
=
0
;
...
...
@@ -162,7 +162,7 @@ pub fn add_loop_label_to_break() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_loop_label_to_break
()
{
let
mut
_
x
=
0
;
...
...
@@ -187,7 +187,7 @@ pub fn change_break_label() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_break_label
()
{
let
mut
_
x
=
0
;
...
...
@@ -212,7 +212,7 @@ pub fn add_loop_label_to_continue() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_loop_label_to_continue
()
{
let
mut
_
x
=
0
;
...
...
@@ -237,7 +237,7 @@ pub fn change_continue_label() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_continue_label
()
{
let
mut
_
x
=
0
;
...
...
@@ -262,7 +262,7 @@ pub fn change_continue_to_break() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_continue_to_break
()
{
let
mut
_
x
=
0
;
...
...
src/test/incremental/hashes/function_interfaces.rs
浏览文件 @
c0b60c42
...
...
@@ -23,7 +23,7 @@ pub fn add_parameter() {}
#[cfg(not(cfail1))]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
, mir_built, optimized_mir, typeck_tables_of, fn_sig"
)]
except
=
"Hir,
hir_owner_items
, mir_built, optimized_mir, typeck_tables_of, fn_sig"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
pub
fn
add_parameter
(
p
:
i32
)
{}
...
...
@@ -34,7 +34,7 @@ pub fn add_parameter(p: i32) {}
pub
fn
add_return_type
()
{}
#[cfg(not(cfail1))]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
pub
fn
add_return_type
()
->
()
{}
...
...
@@ -46,7 +46,7 @@ pub fn type_of_parameter(p: i32) {}
#[cfg(not(cfail1))]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
, mir_built, optimized_mir, typeck_tables_of, fn_sig"
)]
except
=
"Hir,
hir_owner_items
, mir_built, optimized_mir, typeck_tables_of, fn_sig"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
pub
fn
type_of_parameter
(
p
:
i64
)
{}
...
...
@@ -58,7 +58,7 @@ pub fn type_of_parameter_ref(p: &i32) {}
#[cfg(not(cfail1))]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
, mir_built, optimized_mir, typeck_tables_of, fn_sig"
)]
except
=
"Hir,
hir_owner_items
, mir_built, optimized_mir, typeck_tables_of, fn_sig"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
pub
fn
type_of_parameter_ref
(
p
:
&
mut
i32
)
{}
...
...
@@ -70,7 +70,7 @@ pub fn order_of_parameters(p1: i32, p2: i64) {}
#[cfg(not(cfail1))]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
, mir_built, optimized_mir, typeck_tables_of, fn_sig"
)]
except
=
"Hir,
hir_owner_items
, mir_built, optimized_mir, typeck_tables_of, fn_sig"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
pub
fn
order_of_parameters
(
p2
:
i64
,
p1
:
i32
)
{}
...
...
@@ -82,7 +82,7 @@ pub fn make_unsafe() {}
#[cfg(not(cfail1))]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
, mir_built, optimized_mir, typeck_tables_of, fn_sig"
)]
except
=
"Hir,
hir_owner_items
, mir_built, optimized_mir, typeck_tables_of, fn_sig"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
pub
unsafe
fn
make_unsafe
()
{}
...
...
@@ -93,7 +93,7 @@ pub unsafe fn make_unsafe() {}
pub
fn
make_extern
()
{}
#[cfg(not(cfail1))]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
, typeck_tables_of, fn_sig"
)]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
hir_owner_items
, typeck_tables_of, fn_sig"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
pub
extern
"C"
fn
make_extern
()
{}
...
...
@@ -105,7 +105,7 @@ pub fn type_parameter() {}
#[cfg(not(cfail1))]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
, generics_of, type_of, predicates_of"
)]
except
=
"Hir,
hir_owner_items
, generics_of, type_of, predicates_of"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
pub
fn
type_parameter
<
T
>
()
{}
...
...
@@ -116,7 +116,7 @@ pub fn type_parameter<T>() {}
pub
fn
lifetime_parameter
()
{}
#[cfg(not(cfail1))]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
, generics_of"
)]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
hir_owner_items
, generics_of"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
pub
fn
lifetime_parameter
<
'a
>
()
{}
...
...
@@ -127,7 +127,7 @@ pub fn lifetime_parameter<'a>() {}
pub
fn
trait_bound
<
T
>
()
{}
#[cfg(not(cfail1))]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
, predicates_of"
)]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
hir_owner_items
, predicates_of"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
pub
fn
trait_bound
<
T
:
Eq
>
()
{}
...
...
@@ -138,7 +138,7 @@ pub fn trait_bound<T: Eq>() {}
pub
fn
builtin_bound
<
T
>
()
{}
#[cfg(not(cfail1))]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
, predicates_of"
)]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
hir_owner_items
, predicates_of"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
pub
fn
builtin_bound
<
T
:
Send
>
()
{}
...
...
@@ -150,7 +150,7 @@ pub fn lifetime_bound<'a, T>() {}
#[cfg(not(cfail1))]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
, generics_of, type_of, predicates_of"
)]
except
=
"Hir,
hir_owner_items
, generics_of, type_of, predicates_of"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
pub
fn
lifetime_bound
<
'a
,
T
:
'a
>
()
{}
...
...
@@ -161,7 +161,7 @@ pub fn lifetime_bound<'a, T: 'a>() {}
pub
fn
second_trait_bound
<
T
:
Eq
>
()
{}
#[cfg(not(cfail1))]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
, predicates_of"
)]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
hir_owner_items
, predicates_of"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
pub
fn
second_trait_bound
<
T
:
Eq
+
Clone
>
()
{}
...
...
@@ -172,7 +172,7 @@ pub fn second_trait_bound<T: Eq + Clone>() {}
pub
fn
second_builtin_bound
<
T
:
Send
>
()
{}
#[cfg(not(cfail1))]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
, predicates_of"
)]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
hir_owner_items
, predicates_of"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
pub
fn
second_builtin_bound
<
T
:
Send
+
Sized
>
()
{}
...
...
@@ -184,7 +184,7 @@ pub fn second_lifetime_bound<'a, 'b, T: 'a>() {}
#[cfg(not(cfail1))]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
, generics_of, type_of, predicates_of"
)]
except
=
"Hir,
hir_owner_items
, generics_of, type_of, predicates_of"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
pub
fn
second_lifetime_bound
<
'a
,
'b
,
T
:
'a
+
'b
>
()
{}
...
...
@@ -195,7 +195,7 @@ pub fn second_lifetime_bound<'a, 'b, T: 'a + 'b>() {}
pub
fn
inline
()
{}
#[cfg(not(cfail1))]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
#[inline]
pub
fn
inline
()
{}
...
...
@@ -208,7 +208,7 @@ pub fn inline() {}
pub
fn
inline_never
()
{}
#[cfg(not(cfail1))]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
#[inline(never)]
pub
fn
inline_never
()
{}
...
...
@@ -220,7 +220,7 @@ pub fn inline_never() {}
pub
fn
no_mangle
()
{}
#[cfg(not(cfail1))]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
#[no_mangle]
pub
fn
no_mangle
()
{}
...
...
@@ -232,7 +232,7 @@ pub fn no_mangle() {}
pub
fn
linkage
()
{}
#[cfg(not(cfail1))]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
#[linkage
=
"weak_odr"
]
pub
fn
linkage
()
{}
...
...
@@ -246,7 +246,7 @@ pub fn return_impl_trait() -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
, typeck_tables_of, fn_sig"
)]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
hir_owner_items
, typeck_tables_of, fn_sig"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
pub
fn
return_impl_trait
()
->
impl
Clone
{
0
...
...
@@ -280,7 +280,7 @@ pub mod change_return_type_indirectly {
use
super
::
ReferencedType2
as
ReturnType
;
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
, mir_built, optimized_mir, typeck_tables_of, fn_sig"
)]
except
=
"Hir,
hir_owner_items
, mir_built, optimized_mir, typeck_tables_of, fn_sig"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
pub
fn
indirect_return_type
()
->
ReturnType
{
ReturnType
{}
...
...
@@ -297,7 +297,7 @@ pub mod change_parameter_type_indirectly {
use
super
::
ReferencedType2
as
ParameterType
;
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
, mir_built, optimized_mir, typeck_tables_of, fn_sig"
)]
except
=
"Hir,
hir_owner_items
, mir_built, optimized_mir, typeck_tables_of, fn_sig"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
pub
fn
indirect_parameter_type
(
p
:
ParameterType
)
{}
}
...
...
@@ -314,7 +314,7 @@ pub mod change_trait_bound_indirectly {
#[cfg(not(cfail1))]
use
super
::
ReferencedTrait2
as
Trait
;
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
, predicates_of"
)]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
hir_owner_items
, predicates_of"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
pub
fn
indirect_trait_bound
<
T
:
Trait
>
(
p
:
T
)
{}
}
...
...
@@ -328,7 +328,7 @@ pub mod change_trait_bound_indirectly_in_where_clause {
#[cfg(not(cfail1))]
use
super
::
ReferencedTrait2
as
Trait
;
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
HirBody
, predicates_of"
)]
#[rustc_clean(cfg
=
"cfail2"
,
except
=
"Hir,
hir_owner_items
, predicates_of"
)]
#[rustc_clean(cfg
=
"cfail3"
)]
pub
fn
indirect_trait_bound_where
<
T
>
(
p
:
T
)
where
...
...
src/test/incremental/hashes/if_expressions.rs
浏览文件 @
c0b60c42
...
...
@@ -25,7 +25,7 @@ pub fn change_condition(x: bool) -> u32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_condition
(
x
:
bool
)
->
u32
{
if
!
x
{
...
...
@@ -46,7 +46,7 @@ pub fn change_then_branch(x: bool) -> u32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_then_branch
(
x
:
bool
)
->
u32
{
if
x
{
...
...
@@ -69,7 +69,7 @@ pub fn change_else_branch(x: bool) -> u32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_else_branch
(
x
:
bool
)
->
u32
{
if
x
{
...
...
@@ -94,7 +94,7 @@ pub fn add_else_branch(x: bool) -> u32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_else_branch
(
x
:
bool
)
->
u32
{
let
mut
ret
=
1
;
...
...
@@ -120,7 +120,7 @@ pub fn change_condition_if_let(x: Option<u32>) -> u32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_condition_if_let
(
x
:
Option
<
u32
>
)
->
u32
{
if
let
Some
(
_
)
=
x
{
...
...
@@ -143,7 +143,7 @@ pub fn change_then_branch_if_let(x: Option<u32>) -> u32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_then_branch_if_let
(
x
:
Option
<
u32
>
)
->
u32
{
if
let
Some
(
x
)
=
x
{
...
...
@@ -166,7 +166,7 @@ pub fn change_else_branch_if_let(x: Option<u32>) -> u32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_else_branch_if_let
(
x
:
Option
<
u32
>
)
->
u32
{
if
let
Some
(
x
)
=
x
{
...
...
@@ -191,7 +191,7 @@ pub fn add_else_branch_if_let(x: Option<u32>) -> u32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_else_branch_if_let
(
x
:
Option
<
u32
>
)
->
u32
{
let
mut
ret
=
1
;
...
...
src/test/incremental/hashes/indexing_expressions.rs
浏览文件 @
c0b60c42
...
...
@@ -22,8 +22,8 @@ fn change_simple_index(slice: &[u32]) -> u32 {
#[cfg(not(cfail1))]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
fn
change_simple_index
(
slice
:
&
[
u32
])
->
u32
{
slice
[
4
]
}
...
...
@@ -39,8 +39,8 @@ fn change_lower_bound(slice: &[u32]) -> &[u32] {
#[cfg(not(cfail1))]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
fn
change_lower_bound
(
slice
:
&
[
u32
])
->
&
[
u32
]
{
&
slice
[
2
..
5
]
}
...
...
@@ -56,8 +56,8 @@ fn change_upper_bound(slice: &[u32]) -> &[u32] {
#[cfg(not(cfail1))]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
fn
change_upper_bound
(
slice
:
&
[
u32
])
->
&
[
u32
]
{
&
slice
[
3
..
7
]
}
...
...
@@ -73,8 +73,8 @@ fn add_lower_bound(slice: &[u32]) -> &[u32] {
#[cfg(not(cfail1))]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
fn
add_lower_bound
(
slice
:
&
[
u32
])
->
&
[
u32
]
{
&
slice
[
3
..
4
]
}
...
...
@@ -90,8 +90,8 @@ fn add_upper_bound(slice: &[u32]) -> &[u32] {
#[cfg(not(cfail1))]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
fn
add_upper_bound
(
slice
:
&
[
u32
])
->
&
[
u32
]
{
&
slice
[
3
..
7
]
}
...
...
@@ -107,8 +107,8 @@ fn change_mutability(slice: &mut [u32]) -> u32 {
#[cfg(not(cfail1))]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
fn
change_mutability
(
slice
:
&
mut
[
u32
])
->
u32
{
(
&
slice
[
3
..
5
])[
0
]
}
...
...
@@ -124,8 +124,8 @@ fn exclusive_to_inclusive_range(slice: &[u32]) -> &[u32] {
#[cfg(not(cfail1))]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
fn
exclusive_to_inclusive_range
(
slice
:
&
[
u32
])
->
&
[
u32
]
{
&
slice
[
3
..=
7
]
}
src/test/incremental/hashes/inherent_impls.rs
浏览文件 @
c0b60c42
...
...
@@ -23,7 +23,7 @@ pub fn method_name() { }
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,associated_item_def_ids"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,associated_item_def_ids"
)]
#[rustc_clean(cfg=
"cfail3"
)]
impl
Foo
{
#[rustc_clean(cfg=
"cfail3"
)]
...
...
@@ -44,7 +44,7 @@ pub fn method_body() { }
impl
Foo
{
#[rustc_clean(
cfg=
"cfail2"
,
except=
"
HirBody
,optimized_mir,promoted_mir,mir_built,typeck_tables_of"
except=
"
hir_owner_items
,optimized_mir,promoted_mir,mir_built,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
method_body
()
{
...
...
@@ -68,7 +68,7 @@ pub fn method_body_inlined() { }
impl
Foo
{
#[rustc_clean(
cfg=
"cfail2"
,
except=
"
HirBody
,optimized_mir,promoted_mir,mir_built,typeck_tables_of"
except=
"
hir_owner_items
,optimized_mir,promoted_mir,mir_built,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
#[inline]
...
...
@@ -85,10 +85,10 @@ pub fn method_privacy() { }
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
impl
Foo
{
#[rustc_clean(cfg=
"cfail2"
,
except=
"associated_item,Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"associated_item,Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
fn
method_privacy
()
{
}
}
...
...
@@ -100,7 +100,7 @@ pub fn method_selfness() { }
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
impl
Foo
{
#[rustc_dirty(cfg=
"cfail2"
,
except=
"type_of,predicates_of,promoted_mir"
)]
...
...
@@ -120,7 +120,7 @@ pub fn method_selfmutness(&self) { }
impl
Foo
{
#[rustc_clean(
cfg=
"cfail2"
,
except=
"Hir,
HirBody
,fn_sig,typeck_tables_of,optimized_mir,mir_built"
except=
"Hir,
hir_owner_items
,fn_sig,typeck_tables_of,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
method_selfmutness
(
&
mut
self
)
{
}
...
...
@@ -135,7 +135,7 @@ pub fn add_method_to_impl1(&self) { }
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,associated_item_def_ids"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,associated_item_def_ids"
)]
#[rustc_clean(cfg=
"cfail3"
)]
impl
Foo
{
#[rustc_clean(cfg=
"cfail2"
)]
...
...
@@ -160,7 +160,7 @@ pub fn add_method_parameter(&self) { }
impl
Foo
{
#[rustc_clean(
cfg=
"cfail2"
,
except=
"Hir,
HirBody
,fn_sig,typeck_tables_of,optimized_mir,mir_built"
except=
"Hir,
hir_owner_items
,fn_sig,typeck_tables_of,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_method_parameter
(
&
self
,
_
:
i32
)
{
}
...
...
@@ -178,7 +178,7 @@ pub fn change_method_parameter_name(&self, a: i64) { }
#[rustc_clean(cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
impl
Foo
{
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_method_parameter_name
(
&
self
,
b
:
i64
)
{
}
}
...
...
@@ -197,7 +197,7 @@ pub fn change_method_return_type(&self) -> u16 { 0 }
impl
Foo
{
#[rustc_clean(
cfg=
"cfail2"
,
except=
"Hir,
HirBody
,fn_sig,optimized_mir,mir_built,typeck_tables_of"
)]
except=
"Hir,
hir_owner_items
,fn_sig,optimized_mir,mir_built,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_method_return_type
(
&
self
)
->
u8
{
0
}
}
...
...
@@ -214,7 +214,7 @@ pub fn make_method_inline(&self) -> u8 { 0 }
#[rustc_clean(cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
impl
Foo
{
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
#[inline]
pub
fn
make_method_inline
(
&
self
)
->
u8
{
0
}
...
...
@@ -232,7 +232,7 @@ pub fn change_method_parameter_order(&self, a: i64, b: i64) { }
#[rustc_clean(cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
impl
Foo
{
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_method_parameter_order
(
&
self
,
b
:
i64
,
a
:
i64
)
{
}
}
...
...
@@ -251,7 +251,7 @@ pub fn make_method_unsafe(&self) { }
impl
Foo
{
#[rustc_clean(
cfg=
"cfail2"
,
except=
"Hir,
HirBody
,fn_sig,typeck_tables_of,optimized_mir,mir_built"
except=
"Hir,
hir_owner_items
,fn_sig,typeck_tables_of,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
unsafe
fn
make_method_unsafe
(
&
self
)
{
}
...
...
@@ -269,7 +269,7 @@ pub fn make_method_extern(&self) { }
#[rustc_clean(cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
impl
Foo
{
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,fn_sig,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,fn_sig,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
extern
fn
make_method_extern
(
&
self
)
{
}
}
...
...
@@ -286,7 +286,7 @@ pub extern "C" fn change_method_calling_convention(&self) { }
#[rustc_clean(cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
impl
Foo
{
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,fn_sig,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,fn_sig,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
extern
"system"
fn
change_method_calling_convention
(
&
self
)
{
}
}
...
...
@@ -312,7 +312,7 @@ impl Foo {
// if we lower generics before the body, then the `HirId` for
// things in the body will be affected. So if you start to see
// `typeck_tables_of` appear dirty, that might be the cause. -nmatsakis
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_lifetime_parameter_to_method
<
'a
>
(
&
self
)
{
}
}
...
...
@@ -340,7 +340,7 @@ impl Foo {
// appear dirty, that might be the cause. -nmatsakis
#[rustc_clean(
cfg=
"cfail2"
,
except=
"Hir,
HirBody
,generics_of,predicates_of,type_of"
,
except=
"Hir,
hir_owner_items
,generics_of,predicates_of,type_of"
,
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_type_parameter_to_method
<
T
>
(
&
self
)
{
}
...
...
@@ -360,7 +360,7 @@ pub fn add_lifetime_bound_to_lifetime_param_of_method<'a, 'b>(&self) { }
impl
Foo
{
#[rustc_clean(
cfg=
"cfail2"
,
except=
"Hir,
HirBody
,generics_of,predicates_of,type_of,typeck_tables_of"
except=
"Hir,
hir_owner_items
,generics_of,predicates_of,type_of,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_lifetime_bound_to_lifetime_param_of_method
<
'a
,
'b
:
'a
>
(
&
self
)
{
}
...
...
@@ -387,7 +387,7 @@ impl Foo {
// generics before the body, then the `HirId` for things in the
// body will be affected. So if you start to see `typeck_tables_of`
// appear dirty, that might be the cause. -nmatsakis
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,generics_of,predicates_of,
\
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,generics_of,predicates_of,
\
type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_lifetime_bound_to_type_param_of_method
<
'a
,
T
:
'a
>
(
&
self
)
{
}
...
...
@@ -414,7 +414,7 @@ impl Foo {
// generics before the body, then the `HirId` for things in the
// body will be affected. So if you start to see `typeck_tables_of`
// appear dirty, that might be the cause. -nmatsakis
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,predicates_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,predicates_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_trait_bound_to_type_param_of_method
<
T
:
Clone
>
(
&
self
)
{
}
}
...
...
@@ -431,7 +431,7 @@ pub fn add_no_mangle_to_method(&self) { }
#[rustc_clean(cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
impl
Foo
{
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
#[no_mangle]
pub
fn
add_no_mangle_to_method
(
&
self
)
{
}
...
...
@@ -448,7 +448,7 @@ pub fn add_type_parameter_to_impl(&self) { }
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,generics_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,generics_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
impl
<
T
>
Bar
<
T
>
{
#[rustc_clean(
...
...
@@ -468,7 +468,7 @@ pub fn change_impl_self_type(&self) { }
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
impl
Bar
<
u64
>
{
#[rustc_clean(cfg=
"cfail2"
,
except=
"fn_sig,optimized_mir,mir_built,typeck_tables_of"
)]
...
...
@@ -485,7 +485,7 @@ pub fn add_lifetime_bound_to_impl_parameter(&self) { }
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
impl
<
T
:
'static
>
Bar
<
T
>
{
#[rustc_clean(cfg=
"cfail2"
)]
...
...
@@ -502,7 +502,7 @@ pub fn add_trait_bound_to_impl_parameter(&self) { }
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
impl
<
T
:
Clone
>
Bar
<
T
>
{
#[rustc_clean(cfg=
"cfail2"
)]
...
...
src/test/incremental/hashes/inline_asm.rs
浏览文件 @
c0b60c42
...
...
@@ -33,7 +33,7 @@ pub fn change_template(a: i32) -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
#[cfg(any(target_arch
=
"x86"
,
target_arch
=
"x86_64"
))]
pub
fn
change_template
(
a
:
i32
)
->
i32
{
...
...
@@ -69,7 +69,7 @@ pub fn change_output(a: i32) -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
#[cfg(any(target_arch
=
"x86"
,
target_arch
=
"x86_64"
))]
pub
fn
change_output
(
a
:
i32
)
->
i32
{
...
...
@@ -105,7 +105,7 @@ pub fn change_input(_a: i32, _b: i32) -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
#[cfg(any(target_arch
=
"x86"
,
target_arch
=
"x86_64"
))]
pub
fn
change_input
(
_
a
:
i32
,
_
b
:
i32
)
->
i32
{
...
...
@@ -140,7 +140,7 @@ pub fn change_input_constraint(_a: i32, _b: i32) -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
#[cfg(any(target_arch
=
"x86"
,
target_arch
=
"x86_64"
))]
pub
fn
change_input_constraint
(
_
a
:
i32
,
_
b
:
i32
)
->
i32
{
...
...
@@ -175,7 +175,7 @@ pub fn change_clobber(_a: i32) -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
#[cfg(any(target_arch
=
"x86"
,
target_arch
=
"x86_64"
))]
pub
fn
change_clobber
(
_
a
:
i32
)
->
i32
{
...
...
@@ -210,7 +210,7 @@ pub fn change_options(_a: i32) -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
#[cfg(any(target_arch
=
"x86"
,
target_arch
=
"x86_64"
))]
pub
fn
change_options
(
_
a
:
i32
)
->
i32
{
...
...
src/test/incremental/hashes/let_expressions.rs
浏览文件 @
c0b60c42
...
...
@@ -22,7 +22,7 @@ pub fn change_name() {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_name
()
{
let
_
y
=
2u64
;
...
...
@@ -38,7 +38,7 @@ pub fn add_type() {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,typeck_tables_of,mir_built,optimized_mir"
)]
except=
"
hir_owner_items
,typeck_tables_of,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_type
()
{
let
_
x
:
u32
=
2u32
;
...
...
@@ -54,7 +54,7 @@ pub fn change_type() {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,typeck_tables_of,mir_built,optimized_mir"
)]
except=
"
hir_owner_items
,typeck_tables_of,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_type
()
{
let
_
x
:
u8
=
2
;
...
...
@@ -70,7 +70,7 @@ pub fn change_mutability_of_reference_type() {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,typeck_tables_of,mir_built,optimized_mir"
)]
except=
"
hir_owner_items
,typeck_tables_of,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_mutability_of_reference_type
()
{
let
_
x
:
&
mut
u64
;
...
...
@@ -86,7 +86,7 @@ pub fn change_mutability_of_slot() {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,typeck_tables_of,mir_built,optimized_mir"
)]
except=
"
hir_owner_items
,typeck_tables_of,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_mutability_of_slot
()
{
let
_
x
:
u64
=
0
;
...
...
@@ -102,7 +102,7 @@ pub fn change_simple_binding_to_pattern() {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,typeck_tables_of,mir_built,optimized_mir"
)]
except=
"
hir_owner_items
,typeck_tables_of,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_simple_binding_to_pattern
()
{
let
(
_
a
,
_
b
)
=
(
0u8
,
'x'
);
...
...
@@ -118,7 +118,7 @@ pub fn change_name_in_pattern() {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_name_in_pattern
()
{
let
(
_
a
,
_
c
)
=
(
1u8
,
'y'
);
...
...
@@ -134,7 +134,7 @@ pub fn add_ref_in_pattern() {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,typeck_tables_of,mir_built,optimized_mir"
)]
except=
"
hir_owner_items
,typeck_tables_of,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_ref_in_pattern
()
{
let
(
ref
_
a
,
_
b
)
=
(
1u8
,
'y'
);
...
...
@@ -150,7 +150,7 @@ pub fn add_amp_in_pattern() {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,typeck_tables_of,mir_built,optimized_mir"
)]
except=
"
hir_owner_items
,typeck_tables_of,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_amp_in_pattern
()
{
let
(
&
_
a
,
_
b
)
=
(
&
1u8
,
'y'
);
...
...
@@ -166,7 +166,7 @@ pub fn change_mutability_of_binding_in_pattern() {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,typeck_tables_of,mir_built,optimized_mir"
)]
except=
"
hir_owner_items
,typeck_tables_of,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_mutability_of_binding_in_pattern
()
{
let
(
mut
_
a
,
_
b
)
=
(
99u8
,
'q'
);
...
...
@@ -182,7 +182,7 @@ pub fn add_initializer() {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,typeck_tables_of,mir_built,optimized_mir"
)]
except=
"
hir_owner_items
,typeck_tables_of,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_initializer
()
{
let
_
x
:
i16
=
3i16
;
...
...
@@ -198,7 +198,7 @@ pub fn change_initializer() {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_initializer
()
{
let
_
x
=
5u16
;
...
...
src/test/incremental/hashes/loop_expressions.rs
浏览文件 @
c0b60c42
...
...
@@ -25,7 +25,7 @@ pub fn change_loop_body() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_loop_body
()
{
let
mut
_
x
=
0
;
...
...
@@ -47,7 +47,7 @@ pub fn add_break() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_break
()
{
let
mut
_
x
=
0
;
...
...
@@ -70,7 +70,7 @@ pub fn add_loop_label() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_loop_label
()
{
let
mut
_
x
=
0
;
...
...
@@ -93,7 +93,7 @@ pub fn add_loop_label_to_break() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_loop_label_to_break
()
{
let
mut
_
x
=
0
;
...
...
@@ -118,7 +118,7 @@ pub fn change_break_label() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_break_label
()
{
let
mut
_
x
=
0
;
...
...
@@ -143,7 +143,7 @@ pub fn add_loop_label_to_continue() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_loop_label_to_continue
()
{
let
mut
_
x
=
0
;
...
...
@@ -168,7 +168,7 @@ pub fn change_continue_label() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_continue_label
()
{
let
mut
_
x
=
0
;
...
...
@@ -193,7 +193,7 @@ pub fn change_continue_to_break() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_continue_to_break
()
{
let
mut
_
x
=
0
;
...
...
src/test/incremental/hashes/match_expressions.rs
浏览文件 @
c0b60c42
...
...
@@ -26,7 +26,7 @@ pub fn add_arm(x: u32) -> u32 {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir,typeck_tables_of"
)]
except=
"
hir_owner_items
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_arm
(
x
:
u32
)
->
u32
{
match
x
{
...
...
@@ -51,7 +51,7 @@ pub fn change_order_of_arms(x: u32) -> u32 {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_order_of_arms
(
x
:
u32
)
->
u32
{
match
x
{
...
...
@@ -75,7 +75,7 @@ pub fn add_guard_clause(x: u32, y: bool) -> u32 {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir,typeck_tables_of"
)]
except=
"
hir_owner_items
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_guard_clause
(
x
:
u32
,
y
:
bool
)
->
u32
{
match
x
{
...
...
@@ -99,7 +99,7 @@ pub fn change_guard_clause(x: u32, y: bool) -> u32 {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir,typeck_tables_of"
)]
except=
"
hir_owner_items
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_guard_clause
(
x
:
u32
,
y
:
bool
)
->
u32
{
match
x
{
...
...
@@ -123,7 +123,7 @@ pub fn add_at_binding(x: u32) -> u32 {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir,typeck_tables_of"
)]
except=
"
hir_owner_items
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_at_binding
(
x
:
u32
)
->
u32
{
match
x
{
...
...
@@ -147,7 +147,7 @@ pub fn change_name_of_at_binding(x: u32) -> u32 {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_name_of_at_binding
(
x
:
u32
)
->
u32
{
match
x
{
...
...
@@ -170,7 +170,7 @@ pub fn change_simple_name_to_pattern(x: u32) -> u32 {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir,typeck_tables_of"
)]
except=
"
hir_owner_items
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_simple_name_to_pattern
(
x
:
u32
)
->
u32
{
match
(
x
,
x
&
1
)
{
...
...
@@ -193,7 +193,7 @@ pub fn change_name_in_pattern(x: u32) -> u32 {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_name_in_pattern
(
x
:
u32
)
->
u32
{
match
(
x
,
x
&
1
)
{
...
...
@@ -216,7 +216,7 @@ pub fn change_mutability_of_binding_in_pattern(x: u32) -> u32 {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir,typeck_tables_of"
)]
except=
"
hir_owner_items
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_mutability_of_binding_in_pattern
(
x
:
u32
)
->
u32
{
match
(
x
,
x
&
1
)
{
...
...
@@ -238,7 +238,7 @@ pub fn add_ref_to_binding_in_pattern(x: u32) -> u32 {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir,typeck_tables_of"
)]
except=
"
hir_owner_items
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_ref_to_binding_in_pattern
(
x
:
u32
)
->
u32
{
match
(
x
,
x
&
1
)
{
...
...
@@ -260,7 +260,7 @@ pub fn add_amp_to_binding_in_pattern(x: u32) -> u32 {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir,typeck_tables_of"
)]
except=
"
hir_owner_items
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_amp_to_binding_in_pattern
(
x
:
u32
)
->
u32
{
match
(
&
x
,
x
&
1
)
{
...
...
@@ -283,7 +283,7 @@ pub fn change_rhs_of_arm(x: u32) -> u32 {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_rhs_of_arm
(
x
:
u32
)
->
u32
{
match
x
{
...
...
@@ -307,7 +307,7 @@ pub fn add_alternative_to_arm(x: u32) -> u32 {
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir,typeck_tables_of"
)]
except=
"
hir_owner_items
,mir_built,optimized_mir,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_alternative_to_arm
(
x
:
u32
)
->
u32
{
match
x
{
...
...
src/test/incremental/hashes/panic_exprs.rs
浏览文件 @
c0b60c42
...
...
@@ -18,7 +18,7 @@
// Indexing expression
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
indexing
(
slice
:
&
[
u8
])
->
u8
{
#[cfg(cfail1)]
...
...
@@ -33,7 +33,7 @@ pub fn indexing(slice: &[u8]) -> u8 {
// Arithmetic overflow plus
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
arithmetic_overflow_plus
(
val
:
i32
)
->
i32
{
#[cfg(cfail1)]
...
...
@@ -48,7 +48,7 @@ pub fn arithmetic_overflow_plus(val: i32) -> i32 {
// Arithmetic overflow minus
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
arithmetic_overflow_minus
(
val
:
i32
)
->
i32
{
#[cfg(cfail1)]
...
...
@@ -63,7 +63,7 @@ pub fn arithmetic_overflow_minus(val: i32) -> i32 {
// Arithmetic overflow mult
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
arithmetic_overflow_mult
(
val
:
i32
)
->
i32
{
#[cfg(cfail1)]
...
...
@@ -78,7 +78,7 @@ pub fn arithmetic_overflow_mult(val: i32) -> i32 {
// Arithmetic overflow negation
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
arithmetic_overflow_negation
(
val
:
i32
)
->
i32
{
#[cfg(cfail1)]
...
...
@@ -93,7 +93,7 @@ pub fn arithmetic_overflow_negation(val: i32) -> i32 {
// Division by zero
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
division_by_zero
(
val
:
i32
)
->
i32
{
#[cfg(cfail1)]
...
...
@@ -107,7 +107,7 @@ pub fn division_by_zero(val: i32) -> i32 {
}
// Division by zero
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
mod_by_zero
(
val
:
i32
)
->
i32
{
#[cfg(cfail1)]
...
...
@@ -122,7 +122,7 @@ pub fn mod_by_zero(val: i32) -> i32 {
// shift left
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
shift_left
(
val
:
i32
,
shift
:
usize
)
->
i32
{
#[cfg(cfail1)]
...
...
@@ -137,7 +137,7 @@ pub fn shift_left(val: i32, shift: usize) -> i32 {
// shift right
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
shift_right
(
val
:
i32
,
shift
:
usize
)
->
i32
{
#[cfg(cfail1)]
...
...
src/test/incremental/hashes/statics.rs
浏览文件 @
c0b60c42
...
...
@@ -21,7 +21,7 @@
static
STATIC_VISIBILITY
:
u8
=
0
;
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
static
STATIC_VISIBILITY
:
u8
=
0
;
...
...
@@ -31,7 +31,7 @@
static
STATIC_MUTABILITY
:
u8
=
0
;
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
static
mut
STATIC_MUTABILITY
:
u8
=
0
;
...
...
@@ -41,7 +41,7 @@
static
STATIC_LINKAGE
:
u8
=
0
;
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
#[linkage=
"weak_odr"
]
static
STATIC_LINKAGE
:
u8
=
0
;
...
...
@@ -52,7 +52,7 @@
static
STATIC_NO_MANGLE
:
u8
=
0
;
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
#[no_mangle]
static
STATIC_NO_MANGLE
:
u8
=
0
;
...
...
@@ -63,7 +63,7 @@
static
STATIC_THREAD_LOCAL
:
u8
=
0
;
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
#[thread_local]
static
STATIC_THREAD_LOCAL
:
u8
=
0
;
...
...
@@ -74,7 +74,7 @@
static
STATIC_CHANGE_TYPE_1
:
i16
=
0
;
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
static
STATIC_CHANGE_TYPE_1
:
u64
=
0
;
...
...
@@ -84,13 +84,13 @@
static
STATIC_CHANGE_TYPE_2
:
Option
<
i8
>
=
None
;
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
static
STATIC_CHANGE_TYPE_2
:
Option
<
u16
>
=
None
;
// Change value between simple literals
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
static
STATIC_CHANGE_VALUE_1
:
i16
=
{
#[cfg(cfail1)]
...
...
@@ -102,7 +102,7 @@
// Change value between expressions
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
static
STATIC_CHANGE_VALUE_2
:
i16
=
{
#[cfg(cfail1)]
...
...
@@ -112,7 +112,7 @@
{
1
+
2
}
};
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
static
STATIC_CHANGE_VALUE_3
:
i16
=
{
#[cfg(cfail1)]
...
...
@@ -122,7 +122,7 @@
{
2
*
3
}
};
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
static
STATIC_CHANGE_VALUE_4
:
i16
=
{
#[cfg(cfail1)]
...
...
@@ -144,11 +144,11 @@ mod static_change_type_indirectly {
#[cfg(not(cfail1))]
use
super
::
ReferencedType2
as
Type
;
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
static
STATIC_CHANGE_TYPE_INDIRECTLY_1
:
Type
=
Type
;
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
,type_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
,type_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
static
STATIC_CHANGE_TYPE_INDIRECTLY_2
:
Option
<
Type
>
=
None
;
}
src/test/incremental/hashes/struct_constructors.rs
浏览文件 @
c0b60c42
...
...
@@ -31,7 +31,7 @@ pub fn change_field_value_regular_struct() -> RegularStruct {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_field_value_regular_struct
()
->
RegularStruct
{
RegularStruct
{
...
...
@@ -54,7 +54,7 @@ pub fn change_field_order_regular_struct() -> RegularStruct {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_field_order_regular_struct
()
->
RegularStruct
{
RegularStruct
{
...
...
@@ -82,7 +82,7 @@ pub fn add_field_regular_struct() -> RegularStruct {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,optimized_mir,mir_built,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,optimized_mir,mir_built,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_field_regular_struct
()
->
RegularStruct
{
let
struct1
=
RegularStruct
{
...
...
@@ -117,7 +117,7 @@ pub fn change_field_label_regular_struct() -> RegularStruct {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,optimized_mir,mir_built,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,optimized_mir,mir_built,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_field_label_regular_struct
()
->
RegularStruct
{
let
struct1
=
RegularStruct
{
...
...
@@ -152,7 +152,7 @@ pub fn change_constructor_path_regular_struct() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_constructor_path_regular_struct
()
{
let
_
=
RegularStruct2
{
...
...
@@ -173,7 +173,7 @@ pub mod change_constructor_path_indirectly_regular_struct {
#[rustc_clean(
cfg=
"cfail2"
,
except=
"fn_sig,Hir,
HirBody
,optimized_mir,mir_built,typeck_tables_of"
except=
"fn_sig,Hir,
hir_owner_items
,optimized_mir,mir_built,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
function
()
->
Struct
{
...
...
@@ -196,7 +196,7 @@ pub fn change_field_value_tuple_struct() -> TupleStruct {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,optimized_mir,mir_built"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_field_value_tuple_struct
()
->
TupleStruct
{
TupleStruct
(
0
,
1
,
3
)
...
...
@@ -213,7 +213,7 @@ pub fn change_constructor_path_tuple_struct() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
,mir_built,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
,mir_built,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_constructor_path_tuple_struct
()
{
let
_
=
TupleStruct2
(
0
,
1
,
2
);
...
...
@@ -230,7 +230,7 @@ pub mod change_constructor_path_indirectly_tuple_struct {
#[rustc_clean(
cfg=
"cfail2"
,
except=
"fn_sig,Hir,
HirBody
,optimized_mir,mir_built,typeck_tables_of"
except=
"fn_sig,Hir,
hir_owner_items
,optimized_mir,mir_built,typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
function
()
->
Struct
{
...
...
src/test/incremental/hashes/struct_defs.rs
浏览文件 @
c0b60c42
...
...
@@ -25,12 +25,12 @@
#[cfg(not(cfail1))]
#[rustc_dirty(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"type_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail3"
)]
...
...
@@ -42,12 +42,12 @@
#[cfg(not(cfail1))]
#[rustc_dirty(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"type_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail3"
)]
...
...
@@ -62,12 +62,12 @@
#[cfg(not(cfail1))]
#[rustc_dirty(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail3"
)]
...
...
@@ -85,12 +85,12 @@ struct TupleStructFieldType(
#[cfg(not(cfail1))]
#[rustc_dirty(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"type_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail3"
)]
...
...
@@ -107,12 +107,12 @@ struct TupleStructAddField(
#[cfg(not(cfail1))]
#[rustc_dirty(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"type_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail3"
)]
...
...
@@ -126,12 +126,12 @@ struct RecordStructFieldType { x: f32 }
#[cfg(not(cfail1))]
#[rustc_dirty(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail3"
)]
...
...
@@ -149,12 +149,12 @@ struct RecordStructFieldName { x: f32 }
#[cfg(not(cfail1))]
#[rustc_dirty(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"type_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail3"
)]
...
...
@@ -168,12 +168,12 @@ struct RecordStructAddField { x: f32 }
#[cfg(not(cfail1))]
#[rustc_dirty(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"type_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail3"
)]
...
...
@@ -189,12 +189,12 @@ struct RecordStructFieldVisibility { x: f32 }
#[cfg(not(cfail1))]
#[rustc_dirty(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"type_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail3"
)]
...
...
@@ -210,12 +210,12 @@ struct RecordStructFieldVisibility {
#[cfg(not(cfail1))]
#[rustc_dirty(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"type_of"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"generics_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail3"
)]
...
...
@@ -229,12 +229,12 @@ struct RecordStructFieldVisibility {
#[cfg(not(cfail1))]
#[rustc_dirty(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"predicates_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail3"
)]
...
...
@@ -248,12 +248,12 @@ struct AddLifetimeParameterBound<'a, 'b: 'a>(
#[cfg(not(cfail1))]
#[rustc_dirty(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"predicates_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail3"
)]
...
...
@@ -270,12 +270,12 @@ struct AddLifetimeParameterBoundWhereClause<'a, 'b>(
#[cfg(not(cfail1))]
#[rustc_dirty(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"type_of"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"generics_of"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"predicates_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail3"
)]
...
...
@@ -294,12 +294,12 @@ struct AddTypeParameter<T1, T2>(
#[cfg(not(cfail1))]
#[rustc_dirty(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"predicates_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail3"
)]
...
...
@@ -313,12 +313,12 @@ struct AddTypeParameterBound<T: Send>(
#[cfg(not(cfail1))]
#[rustc_dirty(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"predicates_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail3"
)]
...
...
@@ -333,12 +333,12 @@ struct AddTypeParameterBoundWhereClause<T>(
// addresses taken into account by the hashing algorithm).
// Note: there is no #[cfg(...)], so this is ALWAYS compiled
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail3"
)]
...
...
@@ -352,12 +352,12 @@ struct AddTypeParameterBoundWhereClause<T>(
#[cfg(not(cfail1))]
#[rustc_dirty(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail3"
)]
...
...
@@ -374,12 +374,12 @@ mod tuple_struct_change_field_type_indirectly {
use
super
::
ReferencedType2
as
FieldType
;
#[rustc_dirty(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail3"
)]
...
...
@@ -397,12 +397,12 @@ mod record_struct_change_field_type_indirectly {
use
super
::
ReferencedType2
as
FieldType
;
#[rustc_dirty(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail3"
)]
...
...
@@ -425,12 +425,12 @@ mod change_trait_bound_indirectly {
use
super
::
ReferencedTrait2
as
Trait
;
#[rustc_dirty(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"predicates_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail3"
)]
...
...
@@ -445,12 +445,12 @@ mod change_trait_bound_indirectly_in_where_clause {
use
super
::
ReferencedTrait2
as
Trait
;
#[rustc_dirty(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"predicates_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"type_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"generics_of"
,
cfg=
"cfail3"
)]
#[rustc_clean(label=
"predicates_of"
,
cfg=
"cfail3"
)]
...
...
src/test/incremental/hashes/trait_defs.rs
浏览文件 @
c0b60c42
...
...
@@ -140,8 +140,8 @@ trait TraitChangeMethodParameterName {
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
fn
with_default
(
y
:
i32
)
{}
}
...
...
@@ -260,8 +260,8 @@ fn method(self) {}
trait
TraitChangeModeSelfOwnToMut
:
Sized
{
#[rustc_dirty(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
fn
method
(
mut
self
)
{}
}
...
...
src/test/incremental/hashes/trait_impls.rs
浏览文件 @
c0b60c42
...
...
@@ -64,8 +64,8 @@ fn method_name() { }
impl
ChangeMethodBodyTrait
for
Foo
{
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
fn
method_name
()
{
()
}
...
...
@@ -91,8 +91,8 @@ fn method_name() { }
impl
ChangeMethodBodyTraitInlined
for
Foo
{
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail3"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail3"
)]
#[inline]
fn
method_name
()
{
panic!
()
...
...
src/test/incremental/hashes/type_defs.rs
浏览文件 @
c0b60c42
...
...
@@ -24,7 +24,7 @@
type
ChangePrimitiveType
=
i32
;
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
type
ChangePrimitiveType
=
i64
;
...
...
@@ -35,7 +35,7 @@
type
ChangeMutability
=
&
'static
i32
;
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
type
ChangeMutability
=
&
'static
mut
i32
;
...
...
@@ -46,7 +46,7 @@
type
ChangeLifetime
<
'a
>
=
(
&
'static
i32
,
&
'a
i32
);
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
type
ChangeLifetime
<
'a
>
=
(
&
'a
i32
,
&
'a
i32
);
...
...
@@ -60,7 +60,7 @@
type
ChangeTypeStruct
=
Struct1
;
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
type
ChangeTypeStruct
=
Struct2
;
...
...
@@ -71,7 +71,7 @@
type
ChangeTypeTuple
=
(
u32
,
u64
);
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
type
ChangeTypeTuple
=
(
u32
,
i64
);
...
...
@@ -91,7 +91,7 @@ enum Enum2 {
type
ChangeTypeEnum
=
Enum1
;
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
type
ChangeTypeEnum
=
Enum2
;
...
...
@@ -102,7 +102,7 @@ enum Enum2 {
type
AddTupleField
=
(
i32
,
i64
);
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
type
AddTupleField
=
(
i32
,
i64
,
i16
);
...
...
@@ -113,7 +113,7 @@ enum Enum2 {
type
ChangeNestedTupleField
=
(
i32
,
(
i64
,
i16
));
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
type
ChangeNestedTupleField
=
(
i32
,
(
i64
,
i8
));
...
...
@@ -124,7 +124,7 @@ enum Enum2 {
type
AddTypeParam
<
T1
>
=
(
T1
,
T1
);
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
type
AddTypeParam
<
T1
,
T2
>
=
(
T1
,
T2
);
...
...
@@ -135,7 +135,7 @@ enum Enum2 {
type
AddTypeParamBound
<
T1
>
=
(
T1
,
u32
);
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
type
AddTypeParamBound
<
T1
:
Clone
>
=
(
T1
,
u32
);
...
...
@@ -146,7 +146,7 @@ enum Enum2 {
type
AddTypeParamBoundWhereClause
<
T1
>
where
T1
:
Clone
=
(
T1
,
u32
);
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
type
AddTypeParamBoundWhereClause
<
T1
>
where
T1
:
Clone
+
Copy
=
(
T1
,
u32
);
...
...
@@ -157,7 +157,7 @@ enum Enum2 {
type
AddLifetimeParam
<
'a
>
=
(
&
'a
u32
,
&
'a
u32
);
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
type
AddLifetimeParam
<
'a
,
'b
>
=
(
&
'a
u32
,
&
'b
u32
);
...
...
@@ -168,7 +168,7 @@ enum Enum2 {
type
AddLifetimeParamBound
<
'a
,
'b
>
=
(
&
'a
u32
,
&
'b
u32
);
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
type
AddLifetimeParamBound
<
'a
,
'b
:
'a
>
=
(
&
'a
u32
,
&
'b
u32
);
...
...
@@ -181,7 +181,7 @@ enum Enum2 {
=
(
&
'a
u32
,
&
'b
u32
,
&
'c
u32
);
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
type
AddLifetimeParamBoundWhereClause
<
'a
,
'b
,
'c
>
where
'b
:
'a
,
...
...
@@ -200,7 +200,7 @@ mod change_trait_bound_indirectly {
#[cfg(not(cfail1))]
use
super
::
ReferencedTrait2
as
Trait
;
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
type
ChangeTraitBoundIndirectly
<
T
:
Trait
>
=
(
T
,
u32
);
}
...
...
@@ -214,7 +214,7 @@ mod change_trait_bound_indirectly_in_where_clause {
#[cfg(not(cfail1))]
use
super
::
ReferencedTrait2
as
Trait
;
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"Hir,
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
type
ChangeTraitBoundIndirectly
<
T
>
where
T
:
Trait
=
(
T
,
u32
);
}
src/test/incremental/hashes/unary_and_binary_exprs.rs
浏览文件 @
c0b60c42
...
...
@@ -21,7 +21,7 @@ pub fn const_negation() -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
const_negation
()
->
i32
{
-
1
...
...
@@ -36,7 +36,7 @@ pub fn const_bitwise_not() -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
const_bitwise_not
()
->
i32
{
!
99
...
...
@@ -51,7 +51,7 @@ pub fn var_negation(x: i32, y: i32) -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
var_negation
(
x
:
i32
,
y
:
i32
)
->
i32
{
-
y
...
...
@@ -66,7 +66,7 @@ pub fn var_bitwise_not(x: i32, y: i32) -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
var_bitwise_not
(
x
:
i32
,
y
:
i32
)
->
i32
{
!
y
...
...
@@ -81,7 +81,7 @@ pub fn var_deref(x: &i32, y: &i32) -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built,typeck_tables_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built,typeck_tables_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
var_deref
(
x
:
&
i32
,
y
:
&
i32
)
->
i32
{
*
y
...
...
@@ -96,7 +96,7 @@ pub fn first_const_add() -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
first_const_add
()
->
i32
{
2
+
3
...
...
@@ -111,7 +111,7 @@ pub fn second_const_add() -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
second_const_add
()
->
i32
{
1
+
3
...
...
@@ -126,7 +126,7 @@ pub fn first_var_add(a: i32, b: i32) -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
first_var_add
(
a
:
i32
,
b
:
i32
)
->
i32
{
b
+
2
...
...
@@ -141,7 +141,7 @@ pub fn second_var_add(a: i32, b: i32) -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
second_var_add
(
a
:
i32
,
b
:
i32
)
->
i32
{
1
+
b
...
...
@@ -156,7 +156,7 @@ pub fn plus_to_minus(a: i32) -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
plus_to_minus
(
a
:
i32
)
->
i32
{
1
-
a
...
...
@@ -171,7 +171,7 @@ pub fn plus_to_mult(a: i32) -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
plus_to_mult
(
a
:
i32
)
->
i32
{
1
*
a
...
...
@@ -186,7 +186,7 @@ pub fn plus_to_div(a: i32) -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
plus_to_div
(
a
:
i32
)
->
i32
{
1
/
a
...
...
@@ -201,7 +201,7 @@ pub fn plus_to_mod(a: i32) -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
plus_to_mod
(
a
:
i32
)
->
i32
{
1
%
a
...
...
@@ -216,7 +216,7 @@ pub fn and_to_or(a: bool, b: bool) -> bool {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
and_to_or
(
a
:
bool
,
b
:
bool
)
->
bool
{
a
||
b
...
...
@@ -231,7 +231,7 @@ pub fn bitwise_and_to_bitwise_or(a: i32) -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
bitwise_and_to_bitwise_or
(
a
:
i32
)
->
i32
{
1
|
a
...
...
@@ -246,7 +246,7 @@ pub fn bitwise_and_to_bitwise_xor(a: i32) -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
bitwise_and_to_bitwise_xor
(
a
:
i32
)
->
i32
{
1
^
a
...
...
@@ -261,7 +261,7 @@ pub fn bitwise_and_to_lshift(a: i32) -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
bitwise_and_to_lshift
(
a
:
i32
)
->
i32
{
a
<<
1
...
...
@@ -276,7 +276,7 @@ pub fn bitwise_and_to_rshift(a: i32) -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
bitwise_and_to_rshift
(
a
:
i32
)
->
i32
{
a
>>
1
...
...
@@ -291,7 +291,7 @@ pub fn eq_to_uneq(a: i32) -> bool {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
eq_to_uneq
(
a
:
i32
)
->
bool
{
a
!=
1
...
...
@@ -306,7 +306,7 @@ pub fn eq_to_lt(a: i32) -> bool {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
eq_to_lt
(
a
:
i32
)
->
bool
{
a
<
1
...
...
@@ -321,7 +321,7 @@ pub fn eq_to_gt(a: i32) -> bool {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
eq_to_gt
(
a
:
i32
)
->
bool
{
a
>
1
...
...
@@ -336,7 +336,7 @@ pub fn eq_to_le(a: i32) -> bool {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
eq_to_le
(
a
:
i32
)
->
bool
{
a
<=
1
...
...
@@ -351,7 +351,7 @@ pub fn eq_to_ge(a: i32) -> bool {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
eq_to_ge
(
a
:
i32
)
->
bool
{
a
>=
1
...
...
@@ -368,7 +368,7 @@ pub fn type_cast(a: u8) -> u64 {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built,typeck_tables_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built,typeck_tables_of"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
type_cast
(
a
:
u8
)
->
u64
{
let
b
=
a
as
u32
;
...
...
@@ -385,7 +385,7 @@ pub fn value_cast(a: u32) -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
value_cast
(
a
:
u32
)
->
i32
{
2
as
i32
...
...
@@ -403,7 +403,7 @@ pub fn place() -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
place
()
->
i32
{
let
mut
x
=
10
;
...
...
@@ -423,7 +423,7 @@ pub fn rvalue() -> i32 {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
rvalue
()
->
i32
{
let
mut
x
=
10
;
...
...
@@ -440,7 +440,7 @@ pub fn index_to_slice(s: &[u8], i: usize, j: usize) -> u8 {
}
#[cfg(not(cfail1))]
#[rustc_clean(except=
"
HirBody
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(except=
"
hir_owner_items
,optimized_mir,mir_built"
,
cfg=
"cfail2"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
index_to_slice
(
s
:
&
[
u8
],
i
:
usize
,
j
:
usize
)
->
u8
{
s
[
j
]
...
...
src/test/incremental/hashes/while_let_loops.rs
浏览文件 @
c0b60c42
...
...
@@ -25,7 +25,7 @@ pub fn change_loop_body() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_loop_body
()
{
let
mut
_
x
=
0
;
...
...
@@ -48,7 +48,7 @@ pub fn change_loop_condition() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_loop_condition
()
{
let
mut
_
x
=
0
;
...
...
@@ -70,7 +70,7 @@ pub fn add_break() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_break
()
{
let
mut
_
x
=
0
;
...
...
@@ -93,7 +93,7 @@ pub fn add_loop_label() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_loop_label
()
{
let
mut
_
x
=
0
;
...
...
@@ -116,7 +116,7 @@ pub fn add_loop_label_to_break() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_loop_label_to_break
()
{
let
mut
_
x
=
0
;
...
...
@@ -141,7 +141,7 @@ pub fn change_break_label() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_break_label
()
{
let
mut
_
x
=
0
;
...
...
@@ -166,7 +166,7 @@ pub fn add_loop_label_to_continue() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_loop_label_to_continue
()
{
let
mut
_
x
=
0
;
...
...
@@ -191,7 +191,7 @@ pub fn change_continue_label() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_continue_label
()
{
let
mut
_
x
=
0
;
...
...
@@ -216,7 +216,7 @@ pub fn change_continue_to_break() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_continue_to_break
()
{
let
mut
_
x
=
0
;
...
...
src/test/incremental/hashes/while_loops.rs
浏览文件 @
c0b60c42
...
...
@@ -25,7 +25,7 @@ pub fn change_loop_body() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_loop_body
()
{
let
mut
_
x
=
0
;
...
...
@@ -48,7 +48,7 @@ pub fn change_loop_condition() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_loop_condition
()
{
let
mut
_
x
=
0
;
...
...
@@ -70,7 +70,7 @@ pub fn add_break() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir, typeck_tables_of"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_break
()
{
let
mut
_
x
=
0
;
...
...
@@ -93,7 +93,7 @@ pub fn add_loop_label() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_loop_label
()
{
let
mut
_
x
=
0
;
...
...
@@ -116,7 +116,7 @@ pub fn add_loop_label_to_break() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_loop_label_to_break
()
{
let
mut
_
x
=
0
;
...
...
@@ -141,7 +141,7 @@ pub fn change_break_label() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_break_label
()
{
let
mut
_
x
=
0
;
...
...
@@ -166,7 +166,7 @@ pub fn add_loop_label_to_continue() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_loop_label_to_continue
()
{
let
mut
_
x
=
0
;
...
...
@@ -191,7 +191,7 @@ pub fn change_continue_label() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_continue_label
()
{
let
mut
_
x
=
0
;
...
...
@@ -216,7 +216,7 @@ pub fn change_continue_to_break() {
}
#[cfg(not(cfail1))]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
HirBody
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail2"
,
except=
"
hir_owner_items
, mir_built, optimized_mir"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_continue_to_break
()
{
let
mut
_
x
=
0
;
...
...
src/test/incremental/ich_method_call_trait_scope.rs
浏览文件 @
c0b60c42
...
...
@@ -27,14 +27,14 @@ mod mod3 {
use
Trait2
;
#[rustc_clean(label=
"Hir"
,
cfg=
"rpass2"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"rpass2"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"rpass2"
)]
#[rustc_dirty(label=
"typeck_tables_of"
,
cfg=
"rpass2"
)]
fn
bar
()
{
()
.method
();
}
#[rustc_clean(label=
"Hir"
,
cfg=
"rpass2"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"rpass2"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"rpass2"
)]
#[rustc_clean(label=
"typeck_tables_of"
,
cfg=
"rpass2"
)]
fn
baz
()
{
22
;
// no method call, traits in scope don't matter
...
...
src/test/incremental/ich_nested_items.rs
浏览文件 @
c0b60c42
...
...
@@ -8,13 +8,13 @@
#![feature(rustc_attrs)]
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
pub
fn
foo
()
{
#[cfg(cfail1)]
pub
fn
baz
()
{
}
// order is different...
#[rustc_clean(label=
"Hir"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
pub
fn
bar
()
{
}
// but that doesn't matter.
#[cfg(cfail2)]
...
...
src/test/incremental/ich_resolve_results.rs
浏览文件 @
c0b60c42
...
...
@@ -29,17 +29,17 @@ mod mod3 {
use
mod2
::
Foo
;
#[rustc_clean(label=
"Hir"
,
cfg=
"rpass2"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"rpass2"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"rpass2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"rpass3"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"rpass3"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"rpass3"
)]
fn
in_expr
()
{
Foo
(
0
);
}
#[rustc_clean(label=
"Hir"
,
cfg=
"rpass2"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"rpass2"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"rpass2"
)]
#[rustc_clean(label=
"Hir"
,
cfg=
"rpass3"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"rpass3"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"rpass3"
)]
fn
in_type
()
{
test
::
<
Foo
>
();
}
...
...
src/test/incremental/source_loc_macros.rs
浏览文件 @
c0b60c42
...
...
@@ -8,25 +8,25 @@
#![feature(rustc_attrs)]
#[rustc_clean(label=
"Hir"
,
cfg=
"rpass2"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"rpass2"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"rpass2"
)]
fn
line_same
()
{
let
_
=
line!
();
}
#[rustc_clean(label=
"Hir"
,
cfg=
"rpass2"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"rpass2"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"rpass2"
)]
fn
col_same
()
{
let
_
=
column!
();
}
#[rustc_clean(label=
"Hir"
,
cfg=
"rpass2"
)]
#[rustc_clean(label=
"
HirBody
"
,
cfg=
"rpass2"
)]
#[rustc_clean(label=
"
hir_owner_items
"
,
cfg=
"rpass2"
)]
fn
file_same
()
{
let
_
=
file!
();
}
#[rustc_clean(label=
"Hir"
,
cfg=
"rpass2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"rpass2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"rpass2"
)]
fn
line_different
()
{
#[cfg(rpass1)]
{
...
...
@@ -39,7 +39,7 @@ fn line_different() {
}
#[rustc_clean(label=
"Hir"
,
cfg=
"rpass2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"rpass2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"rpass2"
)]
fn
col_different
()
{
#[cfg(rpass1)]
{
...
...
src/test/incremental/spans_significant_w_debuginfo.rs
浏览文件 @
c0b60c42
...
...
@@ -13,5 +13,5 @@ pub fn main() {}
#[cfg(rpass2)]
#[rustc_dirty(label=
"Hir"
,
cfg=
"rpass2"
)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"rpass2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"rpass2"
)]
pub
fn
main
()
{}
src/test/incremental/string_constant.rs
浏览文件 @
c0b60c42
...
...
@@ -18,7 +18,7 @@ pub fn x() {
}
#[cfg(cfail2)]
#[rustc_dirty(label=
"
HirBody
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"
hir_owner_items
"
,
cfg=
"cfail2"
)]
#[rustc_dirty(label=
"optimized_mir"
,
cfg=
"cfail2"
)]
pub
fn
x
()
{
println!
(
"{}"
,
"2"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录