about summary refs log tree commit diff
path: root/library/std/src/backtrace
AgeCommit message (Collapse)AuthorLines
2023-12-10remove redundant importssurechen-1/+1
detects redundant imports that can be eliminated. for #117772 : In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.
2023-07-31Implement UnwindSafe and RefUnwindSafe for BacktraceKonrad Borowski-0/+7
Backtrace doesn't have visible mutable state.
2023-04-27std: use `LazyLock` to lazily resolve backtracesjoboet-4/+2
2022-03-10Use implicit capture syntax in format_argsT-O-R-U-S-3/+3
This updates the standard library's documentation to use the new syntax. The documentation is worthwhile to update as it should be more idiomatic (particularly for features like this, which are nice for users to get acquainted with). The general codebase is likely more hassle than benefit to update: it'll hurt git blame, and generally updates can be done by folks updating the code if (and when) that makes things more readable with the new format. A few places in the compiler and library code are updated (mostly just due to already having been done when this commit was first authored).
2021-01-23Add Frames iterator for BacktraceSean Chen-37/+72
2021-01-06use Once instead of Mutex to manage capture resolutionAshley Mannix-1/+4
This allows us to return borrows of the captured backtrace frames that are tied to a borrow of the Backtrace itself, instead of to some short-lived Mutex guard. It also makes it semantically clearer what synchronization is needed on the capture.
2020-11-15Add column number support to Backtraceest31-0/+4
Backtrace frames might include column numbers. Print them if they are included.
2020-08-31std: move "mod tests/benches" to separate filesLzu Tao-0/+53
Also doing fmt inplace as requested.