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

bug [salsa-macros]: Improve debug name of tracked methods #755

Merged

Conversation

MichaReiser
Copy link
Contributor

@MichaReiser MichaReiser commented Mar 13, 2025

The debug name of every tracked method always was inner_fn_name. This PR improves the function name to be <fn_name>_. This is not perfect but much more useful than the same name for every tracked method.

An alternative is to use std::any::type_name and we could then try to detect if the type name is from a TrackedTrait but that seems complicated.

Copy link

netlify bot commented Mar 13, 2025

Deploy Preview for salsa-rs canceled.

Name Link
🔨 Latest commit 47ffa16
🔍 Latest deploy log https://app.netlify.com/sites/salsa-rs/deploys/67d7e18cd6923e0008d13cc1

Copy link

codspeed-hq bot commented Mar 13, 2025

CodSpeed Performance Report

Merging #755 will not alter performance

Comparing MichaReiser:improve-tracked-method-debug-name (47ffa16) with master (778b9bc)

Summary

✅ 12 untouched benchmarks

Copy link
Contributor

@carljm carljm left a comment

Choose a reason for hiding this comment

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

Awesome, thank you!

@MichaReiser MichaReiser added this pull request to the merge queue Mar 14, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 14, 2025
@MichaReiser MichaReiser force-pushed the improve-tracked-method-debug-name branch from 9628ac8 to 47ffa16 Compare March 17, 2025 08:47
@MichaReiser MichaReiser added this pull request to the merge queue Mar 17, 2025
Merged via the queue into salsa-rs:master with commit 1d1523b Mar 17, 2025
11 checks passed
@MichaReiser MichaReiser deleted the improve-tracked-method-debug-name branch March 17, 2025 09:08
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