about summary refs log tree commit diff
path: root/compiler/rustc_borrowck
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2021-09-06 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2021-09-15 19:02:10 +0200
commitb6b19f3b6cf9a869ac9c6734b75205ca099af0f4 (patch)
treeb58a9b180bf7050040c0265d8fc974664ded9bf3 /compiler/rustc_borrowck
parent2c7bc5e33c25e29058cbafefe680da8d5e9220e9 (diff)
downloadrust-b6b19f3b6cf9a869ac9c6734b75205ca099af0f4.tar.gz
rust-b6b19f3b6cf9a869ac9c6734b75205ca099af0f4.zip
Use explicit log level in tracing instrument macro
Specify a log level in tracing instrument macro explicitly.

Additionally reduce the used log level from a default info level to a
debug level (all of those appear to be developer oriented logs, so there
should be no need to include them in release builds).
Diffstat (limited to 'compiler/rustc_borrowck')
-rw-r--r--compiler/rustc_borrowck/src/region_infer/opaque_types.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_borrowck/src/region_infer/opaque_types.rs b/compiler/rustc_borrowck/src/region_infer/opaque_types.rs
index 39b83e50431..d790e31105c 100644
--- a/compiler/rustc_borrowck/src/region_infer/opaque_types.rs
+++ b/compiler/rustc_borrowck/src/region_infer/opaque_types.rs
@@ -46,7 +46,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
     /// Calling `universal_upper_bound` for such a region gives `fr_fn_body`,
     /// which has no `external_name` in which case we use `'empty` as the
     /// region to pass to `infer_opaque_definition_from_instantiation`.
-    #[instrument(skip(self, infcx))]
+    #[instrument(level = "debug", skip(self, infcx))]
     pub(crate) fn infer_opaque_types(
         &self,
         infcx: &InferCtxt<'_, 'tcx>,