]> git.proxmox.com Git - rustc.git/blobdiff - src/test/run-pass/backtrace-debuginfo-aux.rs
New upstream version 1.25.0+dfsg1
[rustc.git] / src / test / run-pass / backtrace-debuginfo-aux.rs
index 1236acf35112181ef840f2f65ee4199a19ec3b4d..cb7ef7e30062ccefc540bfd47d9da3ea45b83d15 100644 (file)
@@ -15,9 +15,7 @@ pub fn callback<F>(f: F) where F: FnOnce((&'static str, u32)) {
     f((file!(), line!()))
 }
 
-// LLVM does not yet output the required debug info to support showing inlined
-// function calls in backtraces when targeting MSVC, so disable inlining in
-// this case.
+// We emit the wrong location for the caller here when inlined on MSVC
 #[cfg_attr(not(target_env = "msvc"), inline(always))]
 #[cfg_attr(target_env = "msvc", inline(never))]
 pub fn callback_inlined<F>(f: F) where F: FnOnce((&'static str, u32)) {