-
Notifications
You must be signed in to change notification settings - Fork 15
Breaking changes we want to make #9
Comments
DescriptionDropping a value of type Reason for breakageWe may want to add debuginfo for all allocations. Example that will become UBfn main() {
let mut b = Box::new(());
drop(unsafe { Box::from_raw(&mut *b) });
drop(unsafe { Box::from_raw(&mut *b) });
} This is more of a library issue, but I am afraid people are already abusing it. |
Description
Reason for breakageBetter struct packing, lower cache usage. Problems
|
@Amanieu number 2 is unlikely to change, afaik. It would result in slower, more complicated code. However, it is possible. |
I feel like collecting these in a single issue will quickly become annoying. I propose that we create a tag ("proposed-breaking-change") and then just create issues for each of them. |
Closing for now. non-repr(C) field order has indeed changed; for the "tail padding" of a type see rust-lang/unsafe-code-guidelines#176 and rust-lang/unsafe-code-guidelines#306; and the |
What kinds of currently-working semantics are we OK with breaking?
The text was updated successfully, but these errors were encountered: