Skip to content

Commit d151593

Browse files
committed
Fix relative lines in coroutine test
1 parent 8286299 commit d151593

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/codegen/issues/issue-98678-closure-coroutine.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ pub fn foo() {
1515
let closure = |x| x;
1616
closure(0);
1717

18-
// NONMSVC-DAG: !DICompositeType({{.*"[{]}}coroutine_env#1{{[}]".*}}file: ![[#FILE]]{{.*}}line: [[# @LINE + 2]],
19-
// MSVC-DAG: !DICompositeType({{.*".*foo::}}coroutine_env$1>{{".*}}file: ![[#FILE]]{{.*}}line: [[# @LINE + 1]],
18+
// NONMSVC-DAG: !DICompositeType({{.*"[{]}}coroutine_env#1{{[}]".*}}file: ![[#FILE]]{{.*}}line: [[# @LINE + 3]],
19+
// MSVC-DAG: !DICompositeType({{.*".*foo::}}coroutine_env$1>{{".*}}file: ![[#FILE]]{{.*}}line: [[# @LINE + 2]],
2020
let _coroutine = #[coroutine]
2121
|| yield 1;
2222
}

0 commit comments

Comments
 (0)