Auto merge of #123992 - compiler-errors:no-has-typeck-results, r=jackh726
`has_typeck_results` doesnt need to be a query self-explanatory
This commit is contained in:
commit
a77f76e263
5 changed files with 17 additions and 31 deletions
|
@ -741,7 +741,7 @@ impl<'tcx> LateContext<'tcx> {
|
|||
.filter(|typeck_results| typeck_results.hir_owner == id.owner)
|
||||
.or_else(|| {
|
||||
self.tcx
|
||||
.has_typeck_results(id.owner.to_def_id())
|
||||
.has_typeck_results(id.owner.def_id)
|
||||
.then(|| self.tcx.typeck(id.owner.def_id))
|
||||
})
|
||||
.and_then(|typeck_results| typeck_results.type_dependent_def(id))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue