fix: use LocalDefId instead of HirId in trait res
use LocalDefId instead of HirId in trait resolution to simplify the obligation clause resolution Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
This commit is contained in:
parent
6b3cd03fdb
commit
7d2c1103d7
48 changed files with 265 additions and 280 deletions
|
@ -732,7 +732,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingCopyImplementations {
|
|||
cx.tcx,
|
||||
param_env,
|
||||
ty,
|
||||
traits::ObligationCause::misc(item.span, item.hir_id()),
|
||||
traits::ObligationCause::misc(item.span, item.owner_id.def_id),
|
||||
)
|
||||
.is_ok()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue