Rollup merge of #124718 - compiler-errors:record-impl-args, r=lcnr

Record impl args in the proof tree

Weren't recording these since they went through a different infcx method

r? lcnr
This commit is contained in:
Matthias Krüger 2024-05-04 22:27:33 +02:00 committed by GitHub
commit 07dc4aa837
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 53 additions and 2 deletions

View file

@ -888,8 +888,12 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
self.infcx.resolve_vars_if_possible(value)
}
pub(super) fn fresh_args_for_item(&self, def_id: DefId) -> ty::GenericArgsRef<'tcx> {
self.infcx.fresh_args_for_item(DUMMY_SP, def_id)
pub(super) fn fresh_args_for_item(&mut self, def_id: DefId) -> ty::GenericArgsRef<'tcx> {
let args = self.infcx.fresh_args_for_item(DUMMY_SP, def_id);
for arg in args {
self.inspect.add_var_value(arg);
}
args
}
pub(super) fn translate_args(