File tree 4 files changed +8
-12
lines changed
4 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 2
2
// async functions.
3
3
//
4
4
//@ edition:2021
5
- //@ compile-flags: -C debuginfo=2 -Z debug-info-type-line-numbers=true
6
- #![ crate_type = "lib" ]
5
+ //@ compile-flags: --crate-type=lib -Copt-level=0 -Cdebuginfo=2 -Zdebug-info-type-line-numbers=true
7
6
8
7
// ignore-tidy-linelength
9
8
Original file line number Diff line number Diff line change 1
1
// This test verifies the accuracy of emitted file and line debuginfo metadata for closures and
2
2
// coroutines.
3
3
//
4
- //@ compile-flags: -C debuginfo=2 -Z debug-info-type-line-numbers=true
5
- #![ crate_type = "lib" ]
4
+ //@ compile-flags: --crate-type=lib -Copt-level=0 -Cdebuginfo=2 -Zdebug-info-type-line-numbers=true
6
5
#![ feature( coroutines, stmt_expr_attributes) ]
7
6
8
7
// ignore-tidy-linelength
11
10
// MSVC: ![[#FILE:]] = !DIFile({{.*}}filename:{{.*}}\\issue-98678-closure-coroutine.rs{{".*}})
12
11
13
12
pub fn foo ( ) {
14
- // NONMSVC: !DICompositeType({{.*"}}{closure_env#0}{{".*}}file: ![[#FILE]]{{.*}}line: [[# @LINE + 2]],
13
+ // NONMSVC-DAG : !DICompositeType({{.*"}}{closure_env#0}{{".*}}file: ![[#FILE]]{{.*}}line: [[# @LINE + 2]],
15
14
// MSVC-DAG: !DICompositeType({{.*"}}closure_env$0{{".*}}file: ![[#FILE]]{{.*}}line: [[# @LINE + 1]],
16
15
let closure = |x| x;
17
16
closure ( 0 ) ;
18
17
19
- // NONMSVC: !DICompositeType ({{.*"[{]}}coroutine_env#1{{[}]".*}}file: ![[#FILE]]{{.*}}line: [[# @LINE + 2]],
20
- // MSVC-DAG: !DICompositeType ({{.*".*foo::}}coroutine_env$1>{{".*}}file: ![[#FILE]]{{.*}}line: [[# @LINE + 1]],
21
- let coroutine = #[ coroutine]
18
+ // NONMSVC-DAG : !DISubprogram ({{.*"[{]}}coroutine_env#1{{[}]".*}}file: ![[#FILE]]{{.*}}line: [[# @LINE + 2]],
19
+ // MSVC-DAG: !DISubprogram ({{.*".*foo::}}coroutine_env$1>{{".*}}file: ![[#FILE]]{{.*}}line: [[# @LINE + 1]],
20
+ let _coroutine = #[ coroutine]
22
21
|| yield 1 ;
23
22
}
Original file line number Diff line number Diff line change 1
1
// This test verifies the accuracy of emitted file and line debuginfo metadata enums.
2
2
//
3
- //@ compile-flags: -C debuginfo=2 -Z debug-info-type-line-numbers=true
4
- #![ crate_type = "lib" ]
3
+ //@ compile-flags: --crate-type=lib -Copt-level=0 -Cdebuginfo=2 -Zdebug-info-type-line-numbers=true
5
4
6
5
// ignore-tidy-linelength
7
6
Original file line number Diff line number Diff line change 1
1
// This test verifies the accuracy of emitted file and line debuginfo metadata for structs and
2
2
// unions.
3
3
//
4
- //@ compile-flags: -C debuginfo=2 -Z debug-info-type-line-numbers=true
5
- #![ crate_type = "lib" ]
4
+ //@ compile-flags: --crate-type=lib -Copt-level=0 -Cdebuginfo=2 -Zdebug-info-type-line-numbers=true
6
5
7
6
// ignore-tidy-linelength
8
7
You can’t perform that action at this time.
0 commit comments