This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +8
-12
lines changed Expand file tree Collapse file tree 4 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 22// async functions.
33//
44//@ 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
76
87// ignore-tidy-linelength
98
Original file line number Diff line number Diff line change 11// This test verifies the accuracy of emitted file and line debuginfo metadata for closures and
22// coroutines.
33//
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
65#![ feature( coroutines, stmt_expr_attributes) ]
76
87// ignore-tidy-linelength
1110// MSVC: ![[#FILE:]] = !DIFile({{.*}}filename:{{.*}}\\issue-98678-closure-coroutine.rs{{".*}})
1211
1312pub 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]],
1514 // MSVC-DAG: !DICompositeType({{.*"}}closure_env$0{{".*}}file: ![[#FILE]]{{.*}}line: [[# @LINE + 1]],
1615 let closure = |x| x;
1716 closure ( 0 ) ;
1817
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]
2221 || yield 1 ;
2322}
Original file line number Diff line number Diff line change 11// This test verifies the accuracy of emitted file and line debuginfo metadata enums.
22//
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
54
65// ignore-tidy-linelength
76
Original file line number Diff line number Diff line change 11// This test verifies the accuracy of emitted file and line debuginfo metadata for structs and
22// unions.
33//
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
65
76// ignore-tidy-linelength
87
You can’t perform that action at this time.
0 commit comments