Skip to content

Commit

Permalink
Rollup merge of #71527 - ecstatic-morse:debug-check-consts, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Miscellaneous cleanup in `check_consts`

Just changes `RUSTC_LOG` output.
  • Loading branch information
Dylan-DPC authored Apr 24, 2020
2 parents f136ba6 + 0e34cb2 commit 2ca6df7
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/librustc_mir/transform/check_consts/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ impl Validator<'mir, 'tcx> {
where
O: NonConstOp,
{
trace!("check_op: op={:?}", op);
debug!("check_op: op={:?}", op);

if op.is_allowed_in_item(self) {
return;
Expand Down Expand Up @@ -397,15 +397,6 @@ impl Visitor<'tcx> for Validator<'mir, 'tcx> {
}
}

fn visit_local(&mut self, place_local: &Local, context: PlaceContext, location: Location) {
trace!(
"visit_local: place_local={:?} context={:?} location={:?}",
place_local,
context,
location,
);
}

fn visit_operand(&mut self, op: &Operand<'tcx>, location: Location) {
self.super_operand(op, location);
if let Operand::Constant(c) = op {
Expand Down

0 comments on commit 2ca6df7

Please sign in to comment.