We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fa61b8 commit 7fd2881Copy full SHA for 7fd2881
src/test/debuginfo/no-debug-attribute.rs
@@ -23,20 +23,22 @@
23
// gdb-command:continue
24
25
#![allow(unused_variables)]
26
-#![feature(no_debug, rustc_attrs)]
+#![feature(no_debug)]
27
#![feature(omit_gdb_pretty_printer_section)]
28
#![omit_gdb_pretty_printer_section]
29
30
-#[rustc_no_mir] // FIXME(#31005) MIR debuginfo is inaccurate for returns.
+#[inline(never)]
31
+fn id<T>(x: T) -> T {x}
32
+
33
fn function_with_debuginfo() {
34
let abc = 10_usize;
- return (); // #break
35
+ id(abc); // #break
36
}
37
38
#[no_debug]
39
fn function_without_debuginfo() {
40
let abc = -57i32;
41
42
43
44
fn main() {
0 commit comments