Separate unsized_locals
into "sound" and "unsound" (i.e. incorrectly implemented) parts
#71694
Labels
F-unsized_locals
`#![feature(unsized_locals)]`
P-high
High priority
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Spawned off of #71416
Here is the example from that issue's description:
This is a variant of #68304 that was not fixed by #71170:
What we want is to factor
unsized_locals
into two features (either giving both fresh names or just allocating one fresh name, it doesn't matter all that much), where one of the two named features would only enable support for cases that we have actually implemented (correctly).dyn Value
because we would need to query that alignment dynamically and adjust the stack address accordingly (and allowing for such adjustment by allocatingsize + (align 1)
... which actually I guess would have to be done viaalloca
if we cannot put an upper-bound onalign
... anyway I digress...)Anyway, this issue is just about creating the new feature name(s), and splitting the current
unsized_locals
support accordingly, so that crates (specifically the internals oflibstd
) can opt into supporting just the construct that we know we have actually implemented properly.The text was updated successfully, but these errors were encountered: