diff options
| author | Ellen <supbscripter@gmail.com> | 2021-02-14 11:18:40 +0000 |
|---|---|---|
| committer | Ellen <supbscripter@gmail.com> | 2021-02-14 11:18:40 +0000 |
| commit | 7bd71262f889713c92f7d393346c8861851ba3d4 (patch) | |
| tree | ee79804c986bee6067c2d65c69237ba8a4c8cce4 /compiler/rustc_infer/src | |
| parent | a419e112dbb0fc4e3e48414a307bbd92c727e0c5 (diff) | |
| download | rust-7bd71262f889713c92f7d393346c8861851ba3d4.tar.gz rust-7bd71262f889713c92f7d393346c8861851ba3d4.zip | |
param_env debugs are instrumental to rustc's success
Diffstat (limited to 'compiler/rustc_infer/src')
| -rw-r--r-- | compiler/rustc_infer/src/infer/combine.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_infer/src/infer/combine.rs b/compiler/rustc_infer/src/infer/combine.rs index 364a8ce3e53..5e11932eafc 100644 --- a/compiler/rustc_infer/src/infer/combine.rs +++ b/compiler/rustc_infer/src/infer/combine.rs @@ -221,6 +221,7 @@ impl<'infcx, 'tcx> InferCtxt<'infcx, 'tcx> { /// As `3 + 4` contains `N` in its substs, this must not succeed. /// /// See `src/test/ui/const-generics/occurs-check/` for more examples where this is relevant. + #[instrument(level = "debug", skip(self))] fn unify_const_variable( &self, param_env: ty::ParamEnv<'tcx>, @@ -228,7 +229,6 @@ impl<'infcx, 'tcx> InferCtxt<'infcx, 'tcx> { ct: &'tcx ty::Const<'tcx>, vid_is_expected: bool, ) -> RelateResult<'tcx, &'tcx ty::Const<'tcx>> { - debug!("unify_const_variable: param_env={:?}", param_env); let (for_universe, span) = { let mut inner = self.inner.borrow_mut(); let variable_table = &mut inner.const_unification_table(); |
