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

Add a way to use reference-types in InternedStruct::new #589

Merged
merged 9 commits into from
Oct 14, 2024

Conversation

puuuuh
Copy link
Contributor

@puuuuh puuuuh commented Oct 4, 2024

Closes #583

Copy link

netlify bot commented Oct 4, 2024

Deploy Preview for salsa-rs canceled.

Name Link
🔨 Latest commit de95f49
🔍 Latest deploy log https://app.netlify.com/sites/salsa-rs/deploys/6707f40c8949610009306e15

Copy link
Member

@nikomatsakis nikomatsakis left a comment

Choose a reason for hiding this comment

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

This is nice! Some suggestions, comments, and nits.

src/interned.rs Outdated Show resolved Hide resolved
src/interned.rs Show resolved Hide resolved
src/interned.rs Show resolved Hide resolved
src/interned.rs Show resolved Hide resolved
src/interned.rs Outdated Show resolved Hide resolved
components/salsa-macro-rules/src/setup_interned_struct.rs Outdated Show resolved Hide resolved
src/interned.rs Outdated Show resolved Hide resolved
tests/interned-struct-with-lifetime.rs Outdated Show resolved Hide resolved
src/interned.rs Outdated Show resolved Hide resolved
src/interned.rs Show resolved Hide resolved
src/interned.rs Outdated Show resolved Hide resolved
src/interned.rs Outdated Show resolved Hide resolved
@puuuuh puuuuh force-pushed the master branch 2 times, most recently from bdf5d33 to d48384a Compare October 6, 2024 17:05
Copy link

codspeed-hq bot commented Oct 8, 2024

CodSpeed Performance Report

Merging #589 will not alter performance

Comparing puuuuh:master (de95f49) with master (af2ec49)

Summary

✅ 8 untouched benchmarks

@nikomatsakis
Copy link
Member

Hi @puuuuh -- can you rebase + fix the clippy warnings? The miri failure should go away then.

@nikomatsakis
Copy link
Member

I'll take a look a bit later at your other comments, are there any outstanding questions? I'd like to merge this.

Fix clippy warnings
@nikomatsakis
Copy link
Member

This looks great! Let's merge it, we can probably refine the unsafe code a bit but overall looks good.

@nikomatsakis nikomatsakis added this pull request to the merge queue Oct 14, 2024
Merged via the queue into salsa-rs:master with commit 0099b18 Oct 14, 2024
10 checks passed
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.

Proposal: in new methods on intern structs, leverage Borrow or ToOwned traits or something
2 participants