diff options
| author | lcnr <rust@lcnr.de> | 2022-09-19 14:59:52 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2022-09-19 15:13:34 +0200 |
| commit | 71f8fd5c5859fa09587486351f849277a910e4d9 (patch) | |
| tree | ccb507b4f77650891254cabdb3fb6a330ddf937e /compiler/rustc_trait_selection/src | |
| parent | efa717bc2d82c19c6957f362a936a6f95169d138 (diff) | |
| download | rust-71f8fd5c5859fa09587486351f849277a910e4d9.tar.gz rust-71f8fd5c5859fa09587486351f849277a910e4d9.zip | |
improve infer var handling for implied bounds
Diffstat (limited to 'compiler/rustc_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/outlives_bounds.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/outlives_bounds.rs b/compiler/rustc_trait_selection/src/traits/outlives_bounds.rs index a4b54018228..3008dfcadde 100644 --- a/compiler/rustc_trait_selection/src/traits/outlives_bounds.rs +++ b/compiler/rustc_trait_selection/src/traits/outlives_bounds.rs @@ -46,7 +46,7 @@ impl<'a, 'cx, 'tcx: 'a> InferCtxtExt<'a, 'tcx> for InferCtxt<'cx, 'tcx> { /// Note that this may cause outlives obligations to be injected /// into the inference context with this body-id. /// - `ty`, the type that we are supposed to assume is WF. - #[instrument(level = "debug", skip(self, param_env, body_id))] + #[instrument(level = "debug", skip(self, param_env, body_id), ret)] fn implied_outlives_bounds( &self, param_env: ty::ParamEnv<'tcx>, @@ -71,6 +71,7 @@ impl<'a, 'cx, 'tcx: 'a> InferCtxtExt<'a, 'tcx> for InferCtxt<'cx, 'tcx> { let TypeOpOutput { output, constraints, .. } = result; if let Some(constraints) = constraints { + debug!(?constraints); // Instantiation may have produced new inference variables and constraints on those // variables. Process these constraints. let mut fulfill_cx = <dyn TraitEngine<'tcx>>::new(self.tcx); |
