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

Deduplicate lines in long const-eval stack trace #92802

Merged
merged 1 commit into from
Feb 3, 2022

Conversation

compiler-errors
Copy link
Member

Lemme know if this is kinda overkill, lol.

Fixes #92796

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jan 12, 2022
@rust-highfive
Copy link
Collaborator

r? @oli-obk

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 12, 2022
@rust-log-analyzer

This comment has been minimized.

@compiler-errors compiler-errors force-pushed the deduplicate-stack-trace branch from 4def9d8 to 73ad8df Compare January 12, 2022 02:14
@oli-obk
Copy link
Contributor

oli-obk commented Jan 12, 2022

It's not overkill. We already have two huge tests in our test suite showing this, albeit with mutual recursion. Not sure how we could catch mutual recursion properly... ideas?

@compiler-errors
Copy link
Member Author

What are the tests that show a mutually-recursive trace?

I could probably think of something more clever than this to detect those cases. Maybe some sort of windowed duplicate detection.

@compiler-errors
Copy link
Member Author

I'll get around to this eventually... finding out how to print a nice output for repeating set of lines (N>1) is kinda hard. I have some ideas, but kinda lazy to write em out.

@rustbot author

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 3, 2022
@oli-obk
Copy link
Contributor

oli-obk commented Feb 3, 2022

@bors r+ rollup

Until then, this is already a good improvement

@bors
Copy link
Contributor

bors commented Feb 3, 2022

📌 Commit 73ad8df has been approved by oli-obk

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Feb 3, 2022
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Feb 3, 2022
…race, r=oli-obk

Deduplicate lines in long const-eval stack trace

Lemme know if this is kinda overkill, lol.

Fixes rust-lang#92796
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 3, 2022
Rollup of 7 pull requests

Successful merges:

 - rust-lang#92310 (rustdoc: Fix ICE report)
 - rust-lang#92802 (Deduplicate lines in long const-eval stack trace)
 - rust-lang#93515 (Factor convenience functions out of main printer implementation)
 - rust-lang#93566 (Make rustc use `RUST_BACKTRACE=full` by default)
 - rust-lang#93589 (Use Option::then in two places)
 - rust-lang#93600 (fix: Remove extra newlines from junit output)
 - rust-lang#93606 (Correct incorrect description of preorder traversals)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 2fe9f76 into rust-lang:master Feb 3, 2022
@rustbot rustbot added this to the 1.60.0 milestone Feb 3, 2022
@compiler-errors compiler-errors deleted the deduplicate-stack-trace branch April 7, 2022 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unconditional recursion in a const fn produces a massive diagnostic
6 participants