-
Notifications
You must be signed in to change notification settings - Fork 13.3k
remove reference counting headers from ~ #11535
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
Conversation
�thestinger and I discussed this. I have no problem with it. (If we do decide to put the TypeDesc back in later as part of GC support, we can put it at a negative offset known only to the GC and other privileged libstd libraries.) |
Can you add a test for #11532 as well? |
It'd also be nice for this to have |
You can also probably contain the transmutes in and out of impl<T> Repr<*Vec<T>> for ~[T] {} |
Unique pointers and vectors currently contain a reference counting header when containing a managed pointer. This `{ ref_count, type_desc, prev, next }` header is not necessary and not a sensible foundation for tracing. It adds needless complexity to library code and is responsible for breakage in places where the branch has been left out. The `borrow_offset` field can now be removed from `TyDesc` along with the associated handling in the compiler. Closes #9510 Closes #11533
Nice! Glad to see all this bloat disappear. |
Unique pointers and vectors currently contain a reference counting header when containing a managed pointer. This `{ ref_count, type_desc, prev, next }` header is not necessary and not a sensible foundation for tracing. It adds needless complexity to library code and is responsible for breakage in places where the branch has been left out. The `borrow_offset` field can now be removed from `TyDesc` along with the associated handling in the compiler. Closes #9510 Closes #11533
Unique pointers and vectors currently contain a reference counting header when containing a managed pointer. This `{ ref_count, type_desc, prev, next }` header is not necessary and not a sensible foundation for tracing. It adds needless complexity to library code and is responsible for breakage in places where the branch has been left out. The `borrow_offset` field can now be removed from `TyDesc` along with the associated handling in the compiler. Closes #9510 Closes #11533
Super awesome! |
don't lint [`default_numeric_fallback`] on return and local assigned macro calls with type stated fixes: rust-lang#11535 changelog: don't lint [`default_numeric_fallback`] on return and local assigned macro calls with type stated
Unique pointers and vectors currently contain a reference counting
header when containing a managed pointer.
This
{ ref_count, type_desc, prev, next }
header is not necessary andnot a sensible foundation for tracing. It adds needless complexity to
library code and is responsible for breakage in places where the branch
has been left out.
The
borrow_offset
field can now be removed fromTyDesc
along withthe associated handling in the compiler.
Closes #9510
Closes #11533