MIR visitor: constant -> const_operand
This commit is contained in:
parent
921645c737
commit
ed1618dedc
11 changed files with 28 additions and 24 deletions
|
@ -261,7 +261,7 @@ impl<'a, 'tcx> Visitor<'tcx> for MarkUsedGenericParams<'a, 'tcx> {
|
|||
self.super_local_decl(local, local_decl);
|
||||
}
|
||||
|
||||
fn visit_constant(&mut self, ct: &mir::ConstOperand<'tcx>, location: Location) {
|
||||
fn visit_const_operand(&mut self, ct: &mir::ConstOperand<'tcx>, location: Location) {
|
||||
match ct.const_ {
|
||||
mir::Const::Ty(_, c) => {
|
||||
c.visit_with(self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue