Skip to content

refactor: De-arc defmap queries #19707

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

Merged
merged 1 commit into from
May 5, 2025
Merged

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Apr 28, 2025

There is a salsa bug that causes an unused lifetime lint

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 28, 2025
@Veykril Veykril force-pushed the push-kqkpzkymkyyl branch 2 times, most recently from ec4c530 to 6701f1f Compare April 28, 2025 11:52
Comment on lines +378 to +379
#[allow(unused_lifetimes)]
mod __ {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is to workaround the salsa issue

@Veykril Veykril force-pushed the push-kqkpzkymkyyl branch 2 times, most recently from f105dd7 to 94fe906 Compare April 28, 2025 15:25
@ChayimFriedman2
Copy link
Contributor

Did we decide that we want queries to move to freestanding functions?

@Veykril
Copy link
Member Author

Veykril commented Apr 28, 2025

Not but this was easier to do here. Though having done this, I feel like free functions aren't so bad? It feels like we should be wrapping most queries via some method on a related type instead of on the database?

@davidbarsky
Copy link
Contributor

Not but this was easier to do here. Though having done this, I feel like free functions aren't so bad? It feels like we should be wrapping most queries via some method on a related type instead of on the database?

I like that approach!

@Veykril Veykril force-pushed the push-kqkpzkymkyyl branch 2 times, most recently from d694cd6 to 4758084 Compare May 5, 2025 06:42
@Veykril Veykril enabled auto-merge May 5, 2025 06:44
@Veykril Veykril force-pushed the push-kqkpzkymkyyl branch from 4758084 to 5816462 Compare May 5, 2025 07:04
@Veykril Veykril added this pull request to the merge queue May 5, 2025
Merged via the queue into rust-lang:master with commit b3e086a May 5, 2025
14 checks passed
@Veykril Veykril deleted the push-kqkpzkymkyyl branch May 5, 2025 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants