Add Ty to mir::Const::Ty
This commit is contained in:
@@ -263,7 +263,7 @@ impl<'a, 'tcx> Visitor<'tcx> for MarkUsedGenericParams<'a, 'tcx> {
|
||||
|
||||
fn visit_constant(&mut self, ct: &mir::ConstOperand<'tcx>, location: Location) {
|
||||
match ct.const_ {
|
||||
mir::Const::Ty(c) => {
|
||||
mir::Const::Ty(_, c) => {
|
||||
c.visit_with(self);
|
||||
}
|
||||
mir::Const::Unevaluated(mir::UnevaluatedConst { def, args: _, promoted }, ty) => {
|
||||
|
||||
Reference in New Issue
Block a user