Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting of std::backtrace::Backtrace #284

Closed
wants to merge 13 commits into from

Conversation

yaahc
Copy link
Member

@yaahc yaahc commented Feb 7, 2020

gonna try to push this over the finish line

cc rust-lang/rust#65280

@yaahc yaahc changed the title Backtrace finish line Formatting of std::backtrace::Backtrace Feb 7, 2020
Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

I think though that we'll want to keep around the old formatting for Display, but add in new formatting for Debug, or at least that's how I've understood rust-lang/rust#65280.

For now in terms of implementation I'd prefer to avoid regressing users of the backtrace crate itself too much, so I think we should leave the Debug impl functionally as-is, but we could enhance the formatter to support both the display and debug style formatting of libstd. (we could then add an adapter of some kind to print a backtrace::Backtrace in the Debug style of libstd too.

@@ -43,7 +43,7 @@ jobs:
os: windows-latest
rust: nightly-i686-gnu
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@master
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How come these revisions changed? (I don't think current syntax works unless it's v1)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was reading the existing PR on master and I swapped a few on accident, I'm planning on just force pushing to this branch with a new change from scratch so just ignore everything that's currently pushed

@yaahc
Copy link
Member Author

yaahc commented Feb 10, 2020

The more i look at this the more I think the debug formatting should all be implemented in std, gonna close this for now, may reopen later.

@yaahc yaahc closed this Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants