File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed 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
- // generators .
2
+ // coroutines .
3
3
//
4
4
// compile-flags: -C debuginfo=2 -Z debug-info-type-line-numbers=true
5
5
#![ crate_type = "lib" ]
6
- #![ feature( generators , stmt_expr_attributes) ]
6
+ #![ feature( coroutines , stmt_expr_attributes) ]
7
7
8
8
// ignore-tidy-linelength
9
9
10
- // NONMSVC: ![[#FILE:]] = !DIFile({{.*}}filename:{{.*}}/issue-98678-closure-generator .rs{{".*}})
11
- // MSVC: ![[#FILE:]] = !DIFile({{.*}}filename:{{.*}}\\issue-98678-closure-generator .rs{{".*}})
10
+ // NONMSVC: ![[#FILE:]] = !DIFile({{.*}}filename:{{.*}}/issue-98678-closure-coroutine .rs{{".*}})
11
+ // MSVC: ![[#FILE:]] = !DIFile({{.*}}filename:{{.*}}\\issue-98678-closure-coroutine .rs{{".*}})
12
12
13
13
pub fn foo ( ) {
14
14
// NONMSVC: !DICompositeType({{.*"}}{closure_env#0}{{".*}}file: ![[#FILE]]{{.*}}line: [[# @LINE + 2]],
15
15
// MSVC-DAG: !DICompositeType({{.*"}}closure_env$0{{".*}}file: ![[#FILE]]{{.*}}line: [[# @LINE + 1]],
16
16
let closure = |x| x;
17
17
closure ( 0 ) ;
18
18
19
- // NONMSVC: !DICompositeType({{.*"[{]}}generator_env #1{{[}]".*}}file: ![[#FILE]]{{.*}}line: [[# @LINE + 2]],
20
- // MSVC-DAG: !DICompositeType({{.*".*foo::}}generator_env $1>{{".*}}file: ![[#FILE]]{{.*}}line: [[# @LINE + 1]],
21
- let generator = #[ coroutine]
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]
22
22
|| yield 1 ;
23
23
}
You can’t perform that action at this time.
0 commit comments