More robust debug assertions for Instance::resolve
on built-in traits with custom items
This commit is contained in:
parent
82cd953c7c
commit
2a1ef34223
3 changed files with 73 additions and 14 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue