-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Added graphviz visualization for obligation forests. #54486
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @varkor (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
/// * `sed 's,std::[a-z]*::,,g'` — Deletes the `std::<package>::` prefix of paths. | ||
/// * `sed 's,"Binder(TraitPredicate(<\(.*\)>)) (\([^)]*\))","\1 (\2)",'` — Transforms | ||
/// `Binder(TraitPredicate(<predicate>))` into just `<predicate>`. | ||
#[allow(dead_code)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function is not used. The idea is that people can temporarily call it while debugging stuff.
I've not worked with |
Hi @orium - are you trying to debug something in particular? |
edit: I see you already replied ^^ |
This looks like an OK idea, but I don't know the graphviz API that well - or what's the best way to integrate tooling like that into the compiler - r? @nikomatsakis for that. |
☔ The latest upstream changes (presumably #53824) made this pull request unmergeable. Please resolve the merge conflicts. |
5797483
to
dde82aa
Compare
I have no objection to landing this code, though I don't expect the obligation forest to live much longer. |
@bors r+ |
📌 Commit dde82aa3d78115533136aa58a6da7a8b0a468cbd has been approved by |
The code itself seems fine :) |
🔒 Merge conflict This pull request and the master branch diverged in a way that cannot be automatically merged. Please rebase on top of the latest master branch, and let the reviewer approve again. How do I rebase?Assuming
You may also read Git Rebasing to Resolve Conflicts by Drew Blessing for a short tutorial. Please avoid the "Resolve conflicts" button on GitHub. It uses Sometimes step 4 will complete without asking for resolution. This is usually due to difference between how Error message
|
dde82aa
to
bb2c805
Compare
@nikomatsakis rebased :) |
@bors r |
@bors r+ |
📌 Commit bb2c8052cb410195b1e5b9f5b4a0522cdecd27b2 has been approved by |
🔒 Merge conflict This pull request and the master branch diverged in a way that cannot be automatically merged. Please rebase on top of the latest master branch, and let the reviewer approve again. How do I rebase?Assuming
You may also read Git Rebasing to Resolve Conflicts by Drew Blessing for a short tutorial. Please avoid the "Resolve conflicts" button on GitHub. It uses Sometimes step 4 will complete without asking for resolution. This is usually due to difference between how Error message
|
272ef52
to
d9fc4e2
Compare
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
1923275
to
34fbef7
Compare
@nikomatsakis Should be mergeable now. Btw, is there any way to avoid or reduce merge conflicts because of |
This can be a big help when debugging the trait resolver.
34fbef7
to
3fc275d
Compare
📌 Commit 3fc275d has been approved by |
Added graphviz visualization for obligation forests. This can be a big help when debugging the trait resolver.
☀️ Test successful - status-appveyor, status-travis |
This can be a big help when debugging the trait resolver.