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

Allow borrowed interface types #3040

Closed
jruderman opened this issue Jul 27, 2012 · 1 comment
Closed

Allow borrowed interface types #3040

jruderman opened this issue Jul 27, 2012 · 1 comment
Labels
A-lifetimes Area: Lifetimes / regions A-type-system Area: Type system I-slow Issue: Problems and improvements with respect to performance of generated code.

Comments

@jruderman
Copy link
Contributor

Seems weird that interface types are always reference-counted. For example, there could also be a "borrowed" variant, which contains a pointer to a borrowed object and a pointer to a vtable.

(It's possible I'm already confused about the distinction between "how the interface type is allocated" and "how the concrete type is allocated".)

@nikomatsakis
Copy link
Contributor

dup of #1567. In any case, the plan is to have &iface, @iface, and ~iface eventually.

bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
RalfJung pushed a commit to RalfJung/rust that referenced this issue Aug 31, 2023
add tests for track_caller in closures and generators

taken from rust-lang#87064
celinval added a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lifetimes Area: Lifetimes / regions A-type-system Area: Type system I-slow Issue: Problems and improvements with respect to performance of generated code.
Projects
None yet
Development

No branches or pull requests

2 participants