1
Fork 0

Rollup merge of #71527 - ecstatic-morse:debug-check-consts, r=Dylan-DPC

Miscellaneous cleanup in `check_consts`

Just changes `RUSTC_LOG` output.
This commit is contained in:
Dylan DPC 2020-04-25 01:36:02 +02:00 committed by GitHub
commit 2ca6df76a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
@ -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 {