fix missing parenthesis in pretty discriminant
This commit is contained in:
parent
2886b36df4
commit
c44fe70d03
2 changed files with 3 additions and 3 deletions
|
|
@ -100,7 +100,7 @@ fn pretty_statement<W: Write>(writer: &mut W, statement: &StatementKind) -> io::
|
|||
writeln!(writer, "{INDENT}FakeRead({cause:?}, {place:?});")
|
||||
}
|
||||
StatementKind::SetDiscriminant { place, variant_index } => {
|
||||
writeln!(writer, "{INDENT}discriminant({place:?} = {};", variant_index.to_index())
|
||||
writeln!(writer, "{INDENT}discriminant({place:?}) = {};", variant_index.to_index())
|
||||
}
|
||||
StatementKind::Deinit(place) => writeln!(writer, "Deinit({place:?};"),
|
||||
StatementKind::StorageLive(local) => {
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ fn foo::{closure#0}::{closure#0}(_1: Pin<&mut {async closure body@$DIR/async-clo
|
|||
StorageDead(_3);
|
||||
_0 = std::task::Poll::Ready(move _5);
|
||||
_10 = CopyForDeref((_1.0: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6}));
|
||||
discriminant((*_10) = 1;
|
||||
discriminant((*_10)) = 1;
|
||||
return;
|
||||
}
|
||||
bb2: {
|
||||
|
|
@ -101,7 +101,7 @@ fn foo::{closure#0}::{synthetic#0}(_1: Pin<&mut {async closure body@$DIR/async-c
|
|||
StorageDead(_3);
|
||||
_0 = std::task::Poll::Ready(move _5);
|
||||
_10 = CopyForDeref((_1.0: &mut {async closure body@$DIR/async-closure.rs:9:22: 11:6}));
|
||||
discriminant((*_10) = 1;
|
||||
discriminant((*_10)) = 1;
|
||||
return;
|
||||
}
|
||||
bb2: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue