add span to statements
This commit is contained in:
parent
999a354a81
commit
a79567b01c
3 changed files with 98 additions and 73 deletions
|
@ -191,7 +191,13 @@ pub enum NonDivergingIntrinsic {
|
|||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum Statement {
|
||||
pub struct Statement {
|
||||
pub kind: StatementKind,
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum StatementKind {
|
||||
Assign(Place, Rvalue),
|
||||
FakeRead(FakeReadCause, Place),
|
||||
SetDiscriminant { place: Place, variant_index: VariantIdx },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue