Remove unused fields in some structures
The dead_code lint was previously eroneously missing those. Since this lint bug has been fixed, the unused fields need to be removed.
This commit is contained in:
parent
a0fe4138ed
commit
ccd99b384e
10 changed files with 16 additions and 34 deletions
|
@ -29,7 +29,7 @@ pub struct SsaLocals {
|
|||
pub enum AssignedValue<'a, 'tcx> {
|
||||
Arg,
|
||||
Rvalue(&'a mut Rvalue<'tcx>),
|
||||
Terminator(&'a mut TerminatorKind<'tcx>),
|
||||
Terminator,
|
||||
}
|
||||
|
||||
impl SsaLocals {
|
||||
|
@ -149,8 +149,7 @@ impl SsaLocals {
|
|||
Set1::One(DefLocation::CallReturn { call, .. }) => {
|
||||
let bb = &mut basic_blocks[call];
|
||||
let loc = Location { block: call, statement_index: bb.statements.len() };
|
||||
let term = bb.terminator_mut();
|
||||
f(local, AssignedValue::Terminator(&mut term.kind), loc)
|
||||
f(local, AssignedValue::Terminator, loc)
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue