Skip to content

Use owned copies of Interner rather than refs - #735

Merged
bors merged 1 commit into
rust-lang:masterfrom
eggyal:owned-interner
Dec 9, 2021
Merged

Use owned copies of Interner rather than refs#735
bors merged 1 commit into
rust-lang:masterfrom
eggyal:owned-interner

Conversation

@eggyal

@eggyal eggyal commented Nov 30, 2021

Copy link
Copy Markdown
Contributor

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

jackh726 commented Dec 9, 2021

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Dec 9, 2021

Copy link
Copy Markdown
Contributor

📌 Commit 7e8dff9 has been approved by jackh726

@bors

bors commented Dec 9, 2021

Copy link
Copy Markdown
Contributor

⌛ Testing commit 7e8dff9 with merge 9780653...

@bors

bors commented Dec 9, 2021

Copy link
Copy Markdown
Contributor

☀️ 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
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.

3 participants