Skip to content

Implement clauses to allow multi-parameter fundamental types #615

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

Closed
jackh726 opened this issue Sep 29, 2020 · 0 comments · Fixed by #616
Closed

Implement clauses to allow multi-parameter fundamental types #615

jackh726 opened this issue Sep 29, 2020 · 0 comments · Fixed by #616

Comments

@jackh726
Copy link
Member

See discussion here: https://rust-lang.zulipchat.com/#narrow/stream/144729-wg-traits/topic/meeting.202020-09-29/near/211676604

Needed for rust-lang/rust#77187

For fundamental types like Box<T, U>, we should generate rules:

forall<T, U> { IsLocal(Box<T>) :- IsLocal(T) }
forall<T, U> { IsLocal(Box<T>) :- IsLocal(U) }
forall<T, U> { IsUpstream(Box<T, U>) :- IsUpstream(T), IsUpstream(U) }
forall<T, U> { DownstreamType(Box<T, U>) :- DownstreamType(T). }
forall<T, U> { DownstreamType(Box<T, U>) :- DownstreamType(U). }
@bors bors closed this as completed in c74da51 Oct 3, 2020
@bors bors closed this as completed in #616 Oct 3, 2020
bors added a commit to rust-lang-ci/rust that referenced this issue Oct 26, 2020
Support custom allocators in `Box`

r? `@Amanieu`

This pull request requires a crater run.

### Prior work:
- rust-lang#71873
- rust-lang#58457
- [`alloc-wg`](https://github.com/TimDiekmann/alloc-wg)-crate

Currently blocked on:
- ~rust-lang#77118~
- ~rust-lang/chalk#615 (rust-lang#77515)~
eggyal pushed a commit to eggyal/copse that referenced this issue Jan 9, 2023
Support custom allocators in `Box`

r? `@Amanieu`

This pull request requires a crater run.

### Prior work:
- #71873
- #58457
- [`alloc-wg`](https://github.com/TimDiekmann/alloc-wg)-crate

Currently blocked on:
- ~#77118~
- ~rust-lang/chalk#615 (#77515)~
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant