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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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 from 94fe906 to d694cd6 Compare April 29, 2025 05:10
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