More robust debug assertions for Instance::resolve on built-in traits with custom items

This commit is contained in:
Michael Goulet 2023-05-06 05:58:00 +00:00
parent 82cd953c7c
commit 2a1ef34223
3 changed files with 73 additions and 14 deletions

View file

@ -385,7 +385,7 @@ impl<'tcx> Instance<'tcx> {
/// couldn't complete due to errors elsewhere - this is distinct
/// from `Ok(None)` to avoid misleading diagnostics when an error
/// has already been/will be emitted, for the original cause
#[instrument(level = "debug", skip(tcx))]
#[instrument(level = "debug", skip(tcx), ret)]
pub fn resolve(
tcx: TyCtxt<'tcx>,
param_env: ty::ParamEnv<'tcx>,