-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
StorageLive already live
in const let else
regression
#101932
Labels
Comments
juntyr
added a commit
to juntyr/const-type-layout
that referenced
this issue
Sep 17, 2022
There is also some discussion in: #101410 (comment) |
@rustbot label F-let-else |
juntyr
added a commit
to juntyr/const-type-layout
that referenced
this issue
Oct 30, 2022
juntyr
added a commit
to juntyr/const-type-layout
that referenced
this issue
Oct 30, 2022
* Fix undefined behaviour by removing `MayebUninit` usage (#4) * Experiments with less uninit * Some more experimentation * Some progress on box, ptr, ref (still no mut ref) * Upgraded MSRV to 1.60.0 * Added more examples * Mutable ref with const uninit fn * Clean up const generation * Removed core->alloc dependency for ptr+ref * Removed extraneous Static type alias * Feature `const_ptr_offset_from` stabilised in 1.65.0 * Added back derive attrs for custom PhantomData * Cleaned up some TODOs * Added the ! type * Added the ground attribute * Use power tools in CI * Add miri to CI * Explicit miri component in CI * Removed rust-toolchain * Clarified unsafe uninit() API by constructing MaybeUninit * Added initial inhabited calculation * Implemented uninit() for uninhabited types * Fixed enum + union uninit order with #[layout(bound)] * Ignore clippy::forget_copy * Patch for rust-lang/rust#101932 * feature(let_else) is stable in 1.66 * Annotated traits with #[const_trait] * Strengthen TypeGraphLayout bounds * Small clippy fixes * Fix TypeLayoutGraph::new const bound
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
I tried this code:
I expected to see this happen: The code should compile and print "42 2".
Instead, this happened: The evaluation of the constant
B
fails withStorageLive on a local that was already live
.This code last compiled with
nightly-2022-09-15-x86_64-unknown-linux-gnu (750bd1a7f 2022-09-14)
and first failed withnightly-2022-09-16-x86_64-unknown-linux-gnu (cf9ed0dd5 2022-09-15)
.Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: