Skip to content

Commit 8200068

Browse files
committed
Rename generator test file
1 parent 21c58b1 commit 8200068

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
// This test verifies the accuracy of emitted file and line debuginfo metadata for closures and
2-
// generators.
2+
// coroutines.
33
//
44
// compile-flags: -C debuginfo=2 -Z debug-info-type-line-numbers=true
55
#![crate_type = "lib"]
6-
#![feature(generators, stmt_expr_attributes)]
6+
#![feature(coroutines, stmt_expr_attributes)]
77

88
// ignore-tidy-linelength
99

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{{".*}})
1212

1313
pub fn foo() {
1414
// NONMSVC: !DICompositeType({{.*"}}{closure_env#0}{{".*}}file: ![[#FILE]]{{.*}}line: [[# @LINE + 2]],
1515
// MSVC-DAG: !DICompositeType({{.*"}}closure_env$0{{".*}}file: ![[#FILE]]{{.*}}line: [[# @LINE + 1]],
1616
let closure = |x| x;
1717
closure(0);
1818

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]
2222
|| yield 1;
2323
}

0 commit comments

Comments
 (0)