You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The nightly std::backtrace::Backtrace has a debug format that is relatively easy to parse. There are plans to eventually add a frame iterator api to backtrace similar to backtrace-rs's Backtrace but it seems rather far off. Until then I think it makes sense to write a deserializer for the Debug format of backtrace, which should hopefully be pretty stable, and use that to build the Frame objects used internally to print the backtrace.
The text was updated successfully, but these errors were encountered:
Debug implementations are not stable. Don't parse it! rust-lang/rust#59076 caused a lot of test breakage, because people depended on the exact debug formatting of structs in pretty print mode.
The nightly std::backtrace::Backtrace has a debug format that is relatively easy to parse. There are plans to eventually add a frame iterator api to backtrace similar to
backtrace-rs
's Backtrace but it seems rather far off. Until then I think it makes sense to write a deserializer for theDebug
format of backtrace, which should hopefully be pretty stable, and use that to build theFrame
objects used internally to print the backtrace.The text was updated successfully, but these errors were encountered: