Rollup merge of #91394 - Mark-Simulacrum:bump-stage0, r=pietroalbini

Bump stage0 compiler

r? `@pietroalbini` (or anyone else)
This commit is contained in:
Matthias Krüger 2021-12-02 15:52:03 +01:00 committed by GitHub
commit d96ce3ea8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 456 additions and 455 deletions

View file

@ -1525,14 +1525,12 @@ fn generator_layout_and_saved_local_names(
// Deref of the `Pin<&mut Self>` state argument.
mir::ProjectionElem::Field(..),
mir::ProjectionElem::Deref,
// Field of a variant of the state.
mir::ProjectionElem::Downcast(_, variant),
mir::ProjectionElem::Field(field, _),
] => {
let name = &mut generator_saved_local_names[
generator_layout.variant_fields[variant][field]
];
let name = &mut generator_saved_local_names
[generator_layout.variant_fields[variant][field]];
if name.is_none() {
name.replace(var.name);
}