1
Fork 0

Rollup merge of #136066 - compiler-errors:local-spans, r=lcnr

Pass spans to `perform_locally_in_new_solver`

Nothing changes yet, but we may be able to use these spans in the future once we start dealing w the response region constraints better.

r? lcnr
This commit is contained in:
Matthias Krüger 2025-01-28 18:17:25 +01:00 committed by GitHub
commit 9f22f35876
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 34 additions and 20 deletions

View file

@ -310,7 +310,7 @@ impl<'tcx> TypeOpInfo<'tcx> for AscribeUserTypeQuery<'tcx> {
let (infcx, key, _) =
mbcx.infcx.tcx.infer_ctxt().build_with_canonical(cause.span, &self.canonical_query);
let ocx = ObligationCtxt::new(&infcx);
type_op_ascribe_user_type_with_span(&ocx, key, Some(cause.span)).ok()?;
type_op_ascribe_user_type_with_span(&ocx, key, cause.span).ok()?;
let diag = try_extract_error_from_fulfill_cx(
&ocx,
mbcx.mir_def_id(),