Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
af63afc0
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,发现更多精彩内容 >>
未验证
提交
af63afc0
编写于
3月 04, 2021
作者:
S
Santiago Pastorino
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Bump mir-opt-level from 2 to 3 in tests
上级
705813c8
变更
39
隐藏空白更改
内联
并排
Showing
39 changed file
with
41 addition
and
41 deletion
+41
-41
src/test/codegen/issue-59352.rs
src/test/codegen/issue-59352.rs
+2
-2
src/test/codegen/naked-noinline.rs
src/test/codegen/naked-noinline.rs
+1
-1
src/test/codegen/try_identity.rs
src/test/codegen/try_identity.rs
+1
-1
src/test/mir-opt/const_prop/issue-66971.rs
src/test/mir-opt/const_prop/issue-66971.rs
+1
-1
src/test/mir-opt/const_prop/issue-67019.rs
src/test/mir-opt/const_prop/issue-67019.rs
+1
-1
src/test/mir-opt/issues/issue-59352.rs
src/test/mir-opt/issues/issue-59352.rs
+1
-1
src/test/mir-opt/simplify-arm-identity.rs
src/test/mir-opt/simplify-arm-identity.rs
+1
-1
src/test/mir-opt/simplify-arm.rs
src/test/mir-opt/simplify-arm.rs
+1
-1
src/test/ui/const_prop/inline_spans.rs
src/test/ui/const_prop/inline_spans.rs
+1
-1
src/test/ui/const_prop/inline_spans_lint_attribute.rs
src/test/ui/const_prop/inline_spans_lint_attribute.rs
+1
-1
src/test/ui/consts/issue-67529.rs
src/test/ui/consts/issue-67529.rs
+1
-1
src/test/ui/consts/issue-67641.rs
src/test/ui/consts/issue-67641.rs
+1
-1
src/test/ui/consts/issue-67862.rs
src/test/ui/consts/issue-67862.rs
+1
-1
src/test/ui/consts/trait_specialization.rs
src/test/ui/consts/trait_specialization.rs
+1
-1
src/test/ui/dest-prop/skeptic-miscompile.rs
src/test/ui/dest-prop/skeptic-miscompile.rs
+1
-1
src/test/ui/issues/issue-50865-private-impl-trait/auxiliary/lib.rs
...ui/issues/issue-50865-private-impl-trait/auxiliary/lib.rs
+1
-1
src/test/ui/issues/issue-77002.rs
src/test/ui/issues/issue-77002.rs
+1
-1
src/test/ui/mir/auxiliary/issue_76375_aux.rs
src/test/ui/mir/auxiliary/issue_76375_aux.rs
+1
-1
src/test/ui/mir/issue-66851.rs
src/test/ui/mir/issue-66851.rs
+1
-1
src/test/ui/mir/issue-67710-inline-projection.rs
src/test/ui/mir/issue-67710-inline-projection.rs
+1
-1
src/test/ui/mir/issue-68841.rs
src/test/ui/mir/issue-68841.rs
+1
-1
src/test/ui/mir/issue-71793-inline-args-storage.rs
src/test/ui/mir/issue-71793-inline-args-storage.rs
+1
-1
src/test/ui/mir/issue-75053.rs
src/test/ui/mir/issue-75053.rs
+1
-1
src/test/ui/mir/issue-76248.rs
src/test/ui/mir/issue-76248.rs
+1
-1
src/test/ui/mir/issue-76375.rs
src/test/ui/mir/issue-76375.rs
+1
-1
src/test/ui/mir/issue-77911.rs
src/test/ui/mir/issue-77911.rs
+1
-1
src/test/ui/mir/issue-78496.rs
src/test/ui/mir/issue-78496.rs
+1
-1
src/test/ui/mir/issue66339.rs
src/test/ui/mir/issue66339.rs
+1
-1
src/test/ui/mir/mir-inlining/array-clone-with-generic-size.rs
...test/ui/mir/mir-inlining/array-clone-with-generic-size.rs
+1
-1
src/test/ui/mir/mir-inlining/ice-issue-45493.rs
src/test/ui/mir/mir-inlining/ice-issue-45493.rs
+1
-1
src/test/ui/mir/mir-inlining/ice-issue-45885.rs
src/test/ui/mir/mir-inlining/ice-issue-45885.rs
+1
-1
src/test/ui/mir/mir-inlining/ice-issue-68347.rs
src/test/ui/mir/mir-inlining/ice-issue-68347.rs
+1
-1
src/test/ui/mir/mir-inlining/ice-issue-77306-1.rs
src/test/ui/mir/mir-inlining/ice-issue-77306-1.rs
+1
-1
src/test/ui/mir/mir-inlining/ice-issue-77306-2.rs
src/test/ui/mir/mir-inlining/ice-issue-77306-2.rs
+1
-1
src/test/ui/mir/mir-inlining/ice-issue-77564.rs
src/test/ui/mir/mir-inlining/ice-issue-77564.rs
+1
-1
src/test/ui/mir/mir-inlining/inline-instrument-coverage-fail.rs
...st/ui/mir/mir-inlining/inline-instrument-coverage-fail.rs
+2
-2
src/test/ui/mir/mir-inlining/no-trait-method-issue-40473.rs
src/test/ui/mir/mir-inlining/no-trait-method-issue-40473.rs
+1
-1
src/test/ui/mir/mir-inlining/var-debuginfo-issue-67586.rs
src/test/ui/mir/mir-inlining/var-debuginfo-issue-67586.rs
+1
-1
src/test/ui/mir/mir_const_prop_tuple_field_reorder.rs
src/test/ui/mir/mir_const_prop_tuple_field_reorder.rs
+1
-1
未找到文件。
src/test/codegen/issue-59352.rs
浏览文件 @
af63afc0
...
...
@@ -5,8 +5,8 @@
// Once the optimizer can do that, mir-opt/issues/issue-59352.rs will need to be updated and this
// test case should be removed as it will become redundant.
// mir-opt-level=
2
enables inlining and enables LLVM to optimize away the unreachable panic call.
// compile-flags: -O -Z mir-opt-level=
2
// mir-opt-level=
3
enables inlining and enables LLVM to optimize away the unreachable panic call.
// compile-flags: -O -Z mir-opt-level=
3
#![crate_type
=
"rlib"
]
...
...
src/test/codegen/naked-noinline.rs
浏览文件 @
af63afc0
// Checks that naked functions are never inlined.
// compile-flags: -O -Zmir-opt-level=
2
// compile-flags: -O -Zmir-opt-level=
3
// ignore-wasm32
#![crate_type
=
"lib"
]
#![feature(asm)]
...
...
src/test/codegen/try_identity.rs
浏览文件 @
af63afc0
// compile-flags: -C no-prepopulate-passes -O -Z mir-opt-level=
2
-Zunsound-mir-opts
// compile-flags: -C no-prepopulate-passes -O -Z mir-opt-level=
3
-Zunsound-mir-opts
// Ensure that `x?` has no overhead on `Result<T, E>` due to identity `match`es in lowering.
// This requires inlining to trigger the MIR optimizations in `SimplifyArmIdentity`.
...
...
src/test/mir-opt/const_prop/issue-66971.rs
浏览文件 @
af63afc0
// compile-flags: -Z mir-opt-level=
2
// compile-flags: -Z mir-opt-level=
3
// Due to a bug in propagating scalar pairs the assertion below used to fail. In the expected
// outputs below, after ConstProp this is how _2 would look like with the bug:
...
...
src/test/mir-opt/const_prop/issue-67019.rs
浏览文件 @
af63afc0
// compile-flags: -Z mir-opt-level=
2
// compile-flags: -Z mir-opt-level=
3
// This used to ICE in const-prop
...
...
src/test/mir-opt/issues/issue-59352.rs
浏览文件 @
af63afc0
...
...
@@ -7,7 +7,7 @@
// removed.
// EMIT_MIR issue_59352.num_to_digit.PreCodegen.after.mir
// compile-flags: -Z mir-opt-level=
2
-Z span_free_formats
// compile-flags: -Z mir-opt-level=
3
-Z span_free_formats
pub
fn
num_to_digit
(
num
:
char
)
->
u32
{
// CHECK-NOT: panic
...
...
src/test/mir-opt/simplify-arm-identity.rs
浏览文件 @
af63afc0
// Checks that `SimplifyArmIdentity` is not applied if enums have incompatible layouts.
// Regression test for issue #66856.
//
// compile-flags: -Zmir-opt-level=
2
// compile-flags: -Zmir-opt-level=
3
// EMIT_MIR_FOR_EACH_BIT_WIDTH
enum
Src
{
...
...
src/test/mir-opt/simplify-arm.rs
浏览文件 @
af63afc0
// compile-flags: -Z mir-opt-level=
2
-Zunsound-mir-opts
// compile-flags: -Z mir-opt-level=
3
-Zunsound-mir-opts
// EMIT_MIR simplify_arm.id.SimplifyArmIdentity.diff
// EMIT_MIR simplify_arm.id.SimplifyBranchSame.diff
// EMIT_MIR simplify_arm.id_result.SimplifyArmIdentity.diff
...
...
src/test/ui/const_prop/inline_spans.rs
浏览文件 @
af63afc0
// build-fail
// compile-flags: -Zmir-opt-level=
2
// compile-flags: -Zmir-opt-level=
3
#![deny(warnings)]
...
...
src/test/ui/const_prop/inline_spans_lint_attribute.rs
浏览文件 @
af63afc0
// Must be build-pass, because check-pass will not run const prop and thus not emit the lint anyway.
// build-pass
// compile-flags: -Zmir-opt-level=
2
// compile-flags: -Zmir-opt-level=
3
#![deny(warnings)]
...
...
src/test/ui/consts/issue-67529.rs
浏览文件 @
af63afc0
// compile-flags: -Z mir-opt-level=
2
// compile-flags: -Z mir-opt-level=
3
// run-pass
struct
Baz
<
T
:
?
Sized
>
{
...
...
src/test/ui/consts/issue-67641.rs
浏览文件 @
af63afc0
// compile-flags: -Z mir-opt-level=
2
// compile-flags: -Z mir-opt-level=
3
// run-pass
use
std
::
cell
::
Cell
;
...
...
src/test/ui/consts/issue-67862.rs
浏览文件 @
af63afc0
// compile-flags: -Z mir-opt-level=
2
// compile-flags: -Z mir-opt-level=
3
// run-pass
fn
e220
()
->
(
i64
,
i64
)
{
...
...
src/test/ui/consts/trait_specialization.rs
浏览文件 @
af63afc0
// ignore-wasm32-bare which doesn't support `std::process:exit()`
// compile-flags: -Zmir-opt-level=
2
// compile-flags: -Zmir-opt-level=
3
// run-pass
// Tests that specialization does not cause optimizations running on polymorphic MIR to resolve
...
...
src/test/ui/dest-prop/skeptic-miscompile.rs
浏览文件 @
af63afc0
// run-pass
// compile-flags: -Zmir-opt-level=
2
// compile-flags: -Zmir-opt-level=
3
trait
IterExt
:
Iterator
{
fn
fold_ex
<
B
,
F
>
(
mut
self
,
init
:
B
,
mut
f
:
F
)
->
B
...
...
src/test/ui/issues/issue-50865-private-impl-trait/auxiliary/lib.rs
浏览文件 @
af63afc0
// revisions: default miropt
//[miropt]compile-flags: -Z mir-opt-level=
2
//[miropt]compile-flags: -Z mir-opt-level=
3
// ~^ This flag is for #77668, it used to be ICE.
#![crate_type
=
"lib"
]
...
...
src/test/ui/issues/issue-77002.rs
浏览文件 @
af63afc0
// compile-flags: -Zmir-opt-level=
2
-Copt-level=0
// compile-flags: -Zmir-opt-level=
3
-Copt-level=0
// run-pass
type
M
=
[
i64
;
2
];
...
...
src/test/ui/mir/auxiliary/issue_76375_aux.rs
浏览文件 @
af63afc0
// edition:2018
// compile-flags: -Z mir-opt-level=
2
// compile-flags: -Z mir-opt-level=
3
#[inline(always)]
pub
fn
copy_prop
(
s
:
bool
)
->
String
{
...
...
src/test/ui/mir/issue-66851.rs
浏览文件 @
af63afc0
...
...
@@ -2,7 +2,7 @@
// did not check that the types matched up in the `Ok(r)` branch.
//
// run-pass
// compile-flags: -Zmir-opt-level=
2
// compile-flags: -Zmir-opt-level=
3
#[derive(Debug,
PartialEq,
Eq)]
enum
SpecialsRes
{
Res
(
u64
)
}
...
...
src/test/ui/mir/issue-67710-inline-projection.rs
浏览文件 @
af63afc0
// compile-flags: -Z mir-opt-level=
2
// compile-flags: -Z mir-opt-level=
3
// build-pass
// This used to ICE due to the inling pass not examining projections
...
...
src/test/ui/mir/issue-68841.rs
浏览文件 @
af63afc0
// compile-flags: -Z mir-opt-level=
2
// compile-flags: -Z mir-opt-level=
3
// edition:2018
// build-pass
...
...
src/test/ui/mir/issue-71793-inline-args-storage.rs
浏览文件 @
af63afc0
...
...
@@ -4,7 +4,7 @@
//
// check-pass
// edition:2018
// compile-args: -Zmir-opt-level=
2
// compile-args: -Zmir-opt-level=
3
#![crate_type
=
"lib"
]
...
...
src/test/ui/mir/issue-75053.rs
浏览文件 @
af63afc0
// compile-flags: -Z mir-opt-level=
2
// compile-flags: -Z mir-opt-level=
3
// build-pass
#![feature(type_alias_impl_trait)]
...
...
src/test/ui/mir/issue-76248.rs
浏览文件 @
af63afc0
...
...
@@ -3,7 +3,7 @@
// Regression test for #76248.
//
// build-pass
// compile-flags: -Zmir-opt-level=
2
// compile-flags: -Zmir-opt-level=
3
const
N
:
usize
=
1
;
...
...
src/test/ui/mir/issue-76375.rs
浏览文件 @
af63afc0
...
...
@@ -2,7 +2,7 @@
//
// edition:2018
// build-pass
// compile-flags: -Z mir-opt-level=
2
// compile-flags: -Z mir-opt-level=
3
// aux-build:issue_76375_aux.rs
#![crate_type
=
"lib"
]
...
...
src/test/ui/mir/issue-77911.rs
浏览文件 @
af63afc0
// compile-flags: -Z mir-opt-level=
2
// compile-flags: -Z mir-opt-level=
3
// build-pass
use
std
::
fs
::
File
;
...
...
src/test/ui/mir/issue-78496.rs
浏览文件 @
af63afc0
// run-pass
// compile-flags: -Z mir-opt-level=
2
-C opt-level=0
// compile-flags: -Z mir-opt-level=
3
-C opt-level=0
// example from #78496
pub
enum
E
<
'a
>
{
...
...
src/test/ui/mir/issue66339.rs
浏览文件 @
af63afc0
// compile-flags: -Z mir-opt-level=
2
// compile-flags: -Z mir-opt-level=
3
// build-pass
// This used to ICE in const-prop
...
...
src/test/ui/mir/mir-inlining/array-clone-with-generic-size.rs
浏览文件 @
af63afc0
...
...
@@ -2,7 +2,7 @@
// Regression test for issue #79269.
//
// build-pass
// compile-flags: -Zmir-opt-level=
2
-Zvalidate-mir
// compile-flags: -Zmir-opt-level=
3
-Zvalidate-mir
#[derive(Clone)]
struct
Array
<
T
,
const
N
:
usize
>
([
T
;
N
]);
...
...
src/test/ui/mir/mir-inlining/ice-issue-45493.rs
浏览文件 @
af63afc0
// run-pass
// compile-flags:-Zmir-opt-level=
2
// compile-flags:-Zmir-opt-level=
3
trait
Array
{
type
Item
;
...
...
src/test/ui/mir/mir-inlining/ice-issue-45885.rs
浏览文件 @
af63afc0
// run-pass
// compile-flags:-Zmir-opt-level=
2
// compile-flags:-Zmir-opt-level=
3
pub
enum
Enum
{
A
,
...
...
src/test/ui/mir/mir-inlining/ice-issue-68347.rs
浏览文件 @
af63afc0
// run-pass
// compile-flags:-Zmir-opt-level=
2
// compile-flags:-Zmir-opt-level=
3
pub
fn
main
()
{
let
_
x
:
fn
()
=
handle_debug_column
;
}
...
...
src/test/ui/mir/mir-inlining/ice-issue-77306-1.rs
浏览文件 @
af63afc0
// run-pass
// compile-flags:-Zmir-opt-level=
2
// compile-flags:-Zmir-opt-level=
3
// Previously ICEd because we did not normalize during inlining,
// see https://github.com/rust-lang/rust/pull/77306 for more discussion.
...
...
src/test/ui/mir/mir-inlining/ice-issue-77306-2.rs
浏览文件 @
af63afc0
// run-pass
// compile-flags:-Zmir-opt-level=
2
// compile-flags:-Zmir-opt-level=
3
struct
Cursor
{}
struct
TokenTree
{}
...
...
src/test/ui/mir/mir-inlining/ice-issue-77564.rs
浏览文件 @
af63afc0
// run-pass
// compile-flags:-Zmir-opt-level=
2
// compile-flags:-Zmir-opt-level=
3
use
std
::
mem
::
MaybeUninit
;
const
N
:
usize
=
2
;
...
...
src/test/ui/mir/mir-inlining/inline-instrument-coverage-fail.rs
浏览文件 @
af63afc0
// Ensures -Zmir-opt-level=
2
(specifically, inlining) is not allowed with -Zinstrument-coverage.
// Ensures -Zmir-opt-level=
3
(specifically, inlining) is not allowed with -Zinstrument-coverage.
// Regression test for issue #80060.
//
// needs-profiler-support
// build-pass
// compile-flags: -Zmir-opt-level=
2
-Zinstrument-coverage
// compile-flags: -Zmir-opt-level=
3
-Zinstrument-coverage
#[inline(never)]
fn
foo
()
{}
...
...
src/test/ui/mir/mir-inlining/no-trait-method-issue-40473.rs
浏览文件 @
af63afc0
// run-pass
// compile-flags:-Zmir-opt-level=
2
// compile-flags:-Zmir-opt-level=
3
pub
trait
Foo
{
fn
bar
(
&
self
)
->
usize
{
2
}
}
...
...
src/test/ui/mir/mir-inlining/var-debuginfo-issue-67586.rs
浏览文件 @
af63afc0
// run-pass
// compile-flags: -Z mir-opt-level=
2
-C opt-level=0 -C debuginfo=2
// compile-flags: -Z mir-opt-level=
3
-C opt-level=0 -C debuginfo=2
#[inline(never)]
pub
fn
foo
(
bar
:
usize
)
->
usize
{
...
...
src/test/ui/mir/mir_const_prop_tuple_field_reorder.rs
浏览文件 @
af63afc0
// compile-flags: -Z mir-opt-level=
2
// compile-flags: -Z mir-opt-level=
3
// build-pass
#![crate_type=
"lib"
]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录