Skip to content

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Apr 19, 2022

Needs something like rust-lang/rust#96198 (+more for the unsizing stuff), or hopefully rust-lang/rust#95576 suffices as well.

@RalfJung RalfJung force-pushed the box-alloc branch 2 times, most recently from e2cfa37 to 21e34fa Compare April 19, 2022 02:14
@RalfJung RalfJung changed the title handle Box with non-ZST allocator tests for Box with non-ZST allocator Apr 19, 2022
@RalfJung RalfJung added the S-blocked-on-rust Status: Blocked on landing a Rust PR label May 17, 2022
@beepster4096
Copy link
Contributor

I tried this with rust-lang/rust#95576 and it looks like it fixes dereferencing. Of course, unsizing is still broken.

@RalfJung
Copy link
Member Author

Ah, good point. I wonder what the codegen backends do for unsizing.

@beepster4096
Copy link
Contributor

Now that rust-lang/rust#95576 has been merged, it's just the unsizing that's left.

@RalfJung
Copy link
Member Author

Miri's type validation also still bails on these non-primitive Boxes. Miri assumes all primitive types are either scalars or scalar pairs, not arbitrarily-sized monsters like Box<T, A>...

Stacked Borrows retagging will probably have similar issues.

@RalfJung
Copy link
Member Author

I am closing this for now since I think we need a larger redesign of Box to escape the sea of ICEs here.

@RalfJung RalfJung closed this Jun 25, 2022
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Jun 29, 2022
…ial, r=RalfJung

Fix box with custom allocator in miri

This should fix the failures in rust-lang/miri#2072 and rust-lang#98510.

cc `@RalfJung`
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Jun 29, 2022
…ial, r=RalfJung

Fix box with custom allocator in miri

This should fix the failures in rust-lang/miri#2072 and rust-lang#98510.

cc ``@RalfJung``
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Jun 29, 2022
…ial, r=RalfJung

Fix box with custom allocator in miri

This should fix the failures in rust-lang/miri#2072 and rust-lang#98510.

cc ```@RalfJung```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-blocked-on-rust Status: Blocked on landing a Rust PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants