Skip to content

Fix tracked impl db lifetime for as_deref return mode#1084

Merged
Veykril merged 1 commit into
salsa-rs:masterfrom
Veykril:push-mrtsmuusvuyk
Apr 25, 2026
Merged

Fix tracked impl db lifetime for as_deref return mode#1084
Veykril merged 1 commit into
salsa-rs:masterfrom
Veykril:push-mrtsmuusvuyk

Conversation

@Veykril

@Veykril Veykril commented Apr 3, 2026

Copy link
Copy Markdown
Member

No description provided.

@netlify

netlify Bot commented Apr 3, 2026

Copy link
Copy Markdown

Deploy Preview for salsa-rs canceled.

Name Link
🔨 Latest commit b3dbff7
🔍 Latest deploy log https://app.netlify.com/projects/salsa-rs/deploys/69ec5efaf85b040008bf01d0

@codspeed-hq

codspeed-hq Bot commented Apr 3, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 26 untouched benchmarks


Comparing Veykril:push-mrtsmuusvuyk (b3dbff7) with master (8afa6c9)

Open in CodSpeed

@MichaReiser

Copy link
Copy Markdown
Contributor

Took me a while to understand what this PR is about, but what I understand is that it sets the right lifetime for:

 - <AsDerefInput as InnerTrait_>::as_deref_method_(this, db)
  + <AsDerefInput as InnerTrait_<'db>>::as_deref_method_(this, db)

@Veykril Veykril force-pushed the push-mrtsmuusvuyk branch from 236e527 to b3dbff7 Compare April 25, 2026 06:28
@Veykril

Veykril commented Apr 25, 2026

Copy link
Copy Markdown
Member Author

Right, sorry for the lack of commit message this was a drive by while being busy. But yea, basically the macro needs to emit lifetimes explicitly when invoked in associated item position due to elision rules

@Veykril Veykril enabled auto-merge April 25, 2026 06:33
@Veykril Veykril added this pull request to the merge queue Apr 25, 2026
Merged via the queue into salsa-rs:master with commit 4e1a468 Apr 25, 2026
12 checks passed
@Veykril Veykril deleted the push-mrtsmuusvuyk branch April 25, 2026 06:46
@github-actions github-actions Bot mentioned this pull request Apr 24, 2026
@github-actions github-actions Bot mentioned this pull request May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants