Skip to content

Use owned copies of Interner rather than refs #735

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Dec 9, 2021

Conversation

eggyal
Copy link
Contributor

@eggyal eggyal commented Nov 30, 2021

The chalk_ir::interner::Interner trait has Copy as a supertrait. We can therefore use owned copies of I: Interner throughout, rather than &I references. This simplifies the API, removing lifetime parameters from numerous items which, in turn, should simplify user code.

@jackh726
Copy link
Member

jackh726 commented Dec 9, 2021

@bors r+

@bors
Copy link
Contributor

bors commented Dec 9, 2021

📌 Commit 7e8dff9 has been approved by jackh726

@bors
Copy link
Contributor

bors commented Dec 9, 2021

⌛ Testing commit 7e8dff9 with merge 9780653...

@bors
Copy link
Contributor

bors commented Dec 9, 2021

☀️ Test successful - checks-actions
Approved by: jackh726
Pushing 9780653 to master...

@bors bors merged commit 9780653 into rust-lang:master Dec 9, 2021
This was referenced Dec 9, 2021
@eggyal eggyal deleted the owned-interner branch December 9, 2021 16:47
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants