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

Remove more internal uses of IDs #3 #5883

Merged
merged 47 commits into from
Jun 27, 2024

Conversation

teoxoy
Copy link
Member

@teoxoy teoxoy commented Jun 26, 2024

The reason I extracted the code from passes was because PassErrorScope is Copy and I wanted to replace all the resources referenced by ids in its variants with ResourceErrorIdents which is not Copy. After going through all the work to do that, I realized I could remove the ids from all variants anyway because the inner error types already contained ResourceErrorIdent's where relevant; or if they didn't I added them. I think we should still land the code extractions since we can now deduplicate some of the code; it also removes the need to keep calling .map_pass_err() everywhere.

Part of #5121.

PR doesn't need to be squashed, each commit builds by itself.

teoxoy added 30 commits June 25, 2024 12:08
@teoxoy teoxoy requested a review from a team as a code owner June 26, 2024 11:38
@Wumpf
Copy link
Member

Wumpf commented Jun 26, 2024

Hmm even more conflicts with #5884, still haven't recovered from the last. Well, I guess I'll have to suck it up; that pr is still incomplete as there's a bunch of tests missing.

Edit: while I don't have time for a full review right now, skimming this some more it doesn't look all that bad since the core areas touched are different - good the the command arcanization thing went in before! I love the work you're doing here, more than willing to redo my draft on top!

@teoxoy
Copy link
Member Author

teoxoy commented Jun 26, 2024

Sorry for the conflicts, I can help rebase, just let me know.

@teoxoy teoxoy merged commit 92c8cf4 into gfx-rs:trunk Jun 27, 2024
25 checks passed
@teoxoy teoxoy deleted the remove-more-uses-of-ids-3 branch June 27, 2024 08:20
@teoxoy teoxoy self-assigned this Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants