Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
bc175421
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,发现更多精彩内容 >>
未验证
提交
bc175421
编写于
12月 05, 2017
作者:
J
Jeff Crocker
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update function interface fingerprint hash tests
上级
bf3246fa
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
108 addition
and
108 deletion
+108
-108
src/test/incremental/hashes/function_interfaces.rs
src/test/incremental/hashes/function_interfaces.rs
+108
-108
未找到文件。
src/test/incremental/hashes/function_interfaces.rs
浏览文件 @
bc175421
...
...
@@ -32,239 +32,239 @@
// Add Parameter ---------------------------------------------------------------
#[cfg(cfail1)]
fn
add_parameter
()
{}
pub
fn
add_parameter
()
{}
#[cfg(not(cfail1))]
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
fn
add_parameter
(
p
:
i32
)
{}
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_parameter
(
p
:
i32
)
{}
// Add Return Type -------------------------------------------------------------
#[cfg(cfail1)]
fn
add_return_type
()
{}
pub
fn
add_return_type
()
{}
#[cfg(not(cfail1))]
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
fn
add_return_type
()
->
()
{}
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
add_return_type
()
->
()
{}
// Change Parameter Type -------------------------------------------------------
#[cfg(cfail1)]
fn
type_of_parameter
(
p
:
i32
)
{}
pub
fn
type_of_parameter
(
p
:
i32
)
{}
#[cfg(not(cfail1))]
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
fn
type_of_parameter
(
p
:
i64
)
{}
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
type_of_parameter
(
p
:
i64
)
{}
// Change Parameter Type Reference ---------------------------------------------
#[cfg(cfail1)]
fn
type_of_parameter_ref
(
p
:
&
i32
)
{}
pub
fn
type_of_parameter_ref
(
p
:
&
i32
)
{}
#[cfg(not(cfail1))]
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
fn
type_of_parameter_ref
(
p
:
&
mut
i32
)
{}
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
type_of_parameter_ref
(
p
:
&
mut
i32
)
{}
// Change Parameter Order ------------------------------------------------------
#[cfg(cfail1)]
fn
order_of_parameters
(
p1
:
i32
,
p2
:
i64
)
{}
pub
fn
order_of_parameters
(
p1
:
i32
,
p2
:
i64
)
{}
#[cfg(not(cfail1))]
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
fn
order_of_parameters
(
p2
:
i64
,
p1
:
i32
)
{}
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
order_of_parameters
(
p2
:
i64
,
p1
:
i32
)
{}
// Unsafe ----------------------------------------------------------------------
#[cfg(cfail1)]
fn
make_unsafe
()
{}
pub
fn
make_unsafe
()
{}
#[cfg(not(cfail1))]
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
unsafe
fn
make_unsafe
()
{}
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
unsafe
fn
make_unsafe
()
{}
// Extern ----------------------------------------------------------------------
#[cfg(cfail1)]
fn
make_extern
()
{}
pub
fn
make_extern
()
{}
#[cfg(not(cfail1))]
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
extern
fn
make_extern
()
{}
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody, TypeckTables, FnSignature
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
extern
fn
make_extern
()
{}
// Extern C Extern Rust-Intrinsic ----------------------------------------------
#[cfg(cfail1)]
extern
"C"
fn
make_intrinsic
()
{}
pub
extern
"C"
fn
make_intrinsic
()
{}
#[cfg(not(cfail1))]
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
extern
"rust-intrinsic"
fn
make_intrinsic
()
{}
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody, TypeckTables, FnSignature
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
extern
"rust-intrinsic"
fn
make_intrinsic
()
{}
// Type Parameter --------------------------------------------------------------
#[cfg(cfail1)]
fn
type_parameter
()
{}
pub
fn
type_parameter
()
{}
#[cfg(not(cfail1))]
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
fn
type_parameter
<
T
>
()
{}
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody, GenericsOfItem, TypeOfItem, PredicatesOfItem
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
type_parameter
<
T
>
()
{}
// Lifetime Parameter ----------------------------------------------------------
#[cfg(cfail1)]
fn
lifetime_parameter
()
{}
pub
fn
lifetime_parameter
()
{}
#[cfg(not(cfail1))]
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
fn
lifetime_parameter
<
'a
>
()
{}
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody, GenericsOfItem
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
lifetime_parameter
<
'a
>
()
{}
// Trait Bound -----------------------------------------------------------------
#[cfg(cfail1)]
fn
trait_bound
<
T
>
()
{}
pub
fn
trait_bound
<
T
>
()
{}
#[cfg(not(cfail1))]
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
fn
trait_bound
<
T
:
Eq
>
()
{}
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody, PredicatesOfItem
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
trait_bound
<
T
:
Eq
>
()
{}
// Builtin Bound ---------------------------------------------------------------
#[cfg(cfail1)]
fn
builtin_bound
<
T
>
()
{}
pub
fn
builtin_bound
<
T
>
()
{}
#[cfg(not(cfail1))]
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
fn
builtin_bound
<
T
:
Send
>
()
{}
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody, PredicatesOfItem
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
builtin_bound
<
T
:
Send
>
()
{}
// Lifetime Bound --------------------------------------------------------------
#[cfg(cfail1)]
fn
lifetime_bound
<
'a
,
T
>
()
{}
pub
fn
lifetime_bound
<
'a
,
T
>
()
{}
#[cfg(not(cfail1))]
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
fn
lifetime_bound
<
'a
,
T
:
'a
>
()
{}
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody, GenericsOfItem, TypeOfItem, PredicatesOfItem
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
lifetime_bound
<
'a
,
T
:
'a
>
()
{}
// Second Trait Bound ----------------------------------------------------------
#[cfg(cfail1)]
fn
second_trait_bound
<
T
:
Eq
>
()
{}
pub
fn
second_trait_bound
<
T
:
Eq
>
()
{}
#[cfg(not(cfail1))]
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
fn
second_trait_bound
<
T
:
Eq
+
Clone
>
()
{}
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody, PredicatesOfItem
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
second_trait_bound
<
T
:
Eq
+
Clone
>
()
{}
// Second Builtin Bound --------------------------------------------------------
#[cfg(cfail1)]
fn
second_builtin_bound
<
T
:
Send
>
()
{}
pub
fn
second_builtin_bound
<
T
:
Send
>
()
{}
#[cfg(not(cfail1))]
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
fn
second_builtin_bound
<
T
:
Send
+
Sized
>
()
{}
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody, PredicatesOfItem
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
second_builtin_bound
<
T
:
Send
+
Sized
>
()
{}
// Second Lifetime Bound -------------------------------------------------------
#[cfg(cfail1)]
fn
second_lifetime_bound
<
'a
,
'b
,
T
:
'a
>
()
{}
pub
fn
second_lifetime_bound
<
'a
,
'b
,
T
:
'a
>
()
{}
#[cfg(not(cfail1))]
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
fn
second_lifetime_bound
<
'a
,
'b
,
T
:
'a
+
'b
>
()
{}
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody, GenericsOfItem, TypeOfItem, PredicatesOfItem
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
second_lifetime_bound
<
'a
,
'b
,
T
:
'a
+
'b
>
()
{}
// Inline ----------------------------------------------------------------------
#[cfg(cfail1)]
fn
inline
()
{}
pub
fn
inline
()
{}
#[cfg(not(cfail1))]
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
#[inline]
fn
inline
()
{}
pub
fn
inline
()
{}
// Inline Never ----------------------------------------------------------------
#[cfg(cfail1)]
#[inline(always)]
fn
inline_never
()
{}
pub
fn
inline_never
()
{}
#[cfg(not(cfail1))]
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
#[inline(never)]
fn
inline_never
()
{}
pub
fn
inline_never
()
{}
// No Mangle -------------------------------------------------------------------
#[cfg(cfail1)]
fn
no_mangle
()
{}
pub
fn
no_mangle
()
{}
#[cfg(not(cfail1))]
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
#[no_mangle]
fn
no_mangle
()
{}
pub
fn
no_mangle
()
{}
// Linkage ---------------------------------------------------------------------
#[cfg(cfail1)]
fn
linkage
()
{}
pub
fn
linkage
()
{}
#[cfg(not(cfail1))]
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
#[linkage=
"weak_odr"
]
fn
linkage
()
{}
pub
fn
linkage
()
{}
// Return Impl Trait -----------------------------------------------------------
#[cfg(cfail1)]
fn
return_impl_trait
()
->
i32
{
pub
fn
return_impl_trait
()
->
i32
{
0
}
#[cfg(not(cfail1))]
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
fn
return_impl_trait
()
->
impl
Clone
{
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody, TypeckTables, FnSignature
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
return_impl_trait
()
->
impl
Clone
{
0
}
...
...
@@ -272,32 +272,32 @@ fn return_impl_trait() -> impl Clone {
// Change Return Impl Trait ----------------------------------------------------
#[cfg(cfail1)]
fn
change_return_impl_trait
()
->
impl
Clone
{
pub
fn
change_return_impl_trait
()
->
impl
Clone
{
0u32
}
#[cfg(not(cfail1))]
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
fn
change_return_impl_trait
()
->
impl
Copy
{
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
change_return_impl_trait
()
->
impl
Copy
{
0u32
}
// Change Return Type Indirectly -----------------------------------------------
struct
ReferencedType1
;
struct
ReferencedType2
;
pub
struct
ReferencedType1
;
pub
struct
ReferencedType2
;
mod
change_return_type_indirectly
{
pub
mod
change_return_type_indirectly
{
#[cfg(cfail1)]
use
super
::
ReferencedType1
as
ReturnType
;
#[cfg(not(cfail1))]
use
super
::
ReferencedType2
as
ReturnType
;
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
fn
indirect_return_type
()
->
ReturnType
{
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
indirect_return_type
()
->
ReturnType
{
ReturnType
{}
}
}
...
...
@@ -305,44 +305,44 @@ fn indirect_return_type() -> ReturnType {
// Change Parameter Type Indirectly --------------------------------------------
mod
change_parameter_type_indirectly
{
pub
mod
change_parameter_type_indirectly
{
#[cfg(cfail1)]
use
super
::
ReferencedType1
as
ParameterType
;
#[cfg(not(cfail1))]
use
super
::
ReferencedType2
as
ParameterType
;
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
fn
indirect_parameter_type
(
p
:
ParameterType
)
{}
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
indirect_parameter_type
(
p
:
ParameterType
)
{}
}
// Change Trait Bound Indirectly -----------------------------------------------
trait
ReferencedTrait1
{}
trait
ReferencedTrait2
{}
pub
trait
ReferencedTrait1
{}
pub
trait
ReferencedTrait2
{}
mod
change_trait_bound_indirectly
{
pub
mod
change_trait_bound_indirectly
{
#[cfg(cfail1)]
use
super
::
ReferencedTrait1
as
Trait
;
#[cfg(not(cfail1))]
use
super
::
ReferencedTrait2
as
Trait
;
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
fn
indirect_trait_bound
<
T
:
Trait
>
(
p
:
T
)
{}
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody, PredicatesOfItem
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
indirect_trait_bound
<
T
:
Trait
>
(
p
:
T
)
{}
}
// Change Trait Bound Indirectly In Where Clause -------------------------------
mod
change_trait_bound_indirectly_in_where_clause
{
pub
mod
change_trait_bound_indirectly_in_where_clause
{
#[cfg(cfail1)]
use
super
::
ReferencedTrait1
as
Trait
;
#[cfg(not(cfail1))]
use
super
::
ReferencedTrait2
as
Trait
;
#[rustc_
dirty(label=
"Hir"
,
cfg=
"cfail2
"
)]
#[rustc_clean(
label=
"Hir"
,
cfg=
"cfail3"
)]
fn
indirect_trait_bound_where
<
T
>
(
p
:
T
)
where
T
:
Trait
{}
#[rustc_
clean(cfg=
"cfail2"
,
except=
"Hir, HirBody, PredicatesOfItem
"
)]
#[rustc_clean(cfg=
"cfail3"
)]
pub
fn
indirect_trait_bound_where
<
T
>
(
p
:
T
)
where
T
:
Trait
{}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录