Files
rust/compiler
Matthias Krüger 6938717ca5 Rollup merge of #104753 - compiler-errors:drop-tracking-var-ice, r=oli-obk
Pass `InferCtxt` to `DropRangeVisitor` so we can resolve vars

The types that we encounter in the  `TypeckResults` that we pass to the `DropRangeVisitor` are not yet fully resolved, since that only happens in writeback after type checking is complete.

Instead, pass down the whole `InferCtxt` so that we can resolve any inference vars that have been constrained since they were written into the results. This is similar to how the `MemCategorizationContext` in the `ExprUseVisitor` also needs to pass down both typeck results _and_ the inference context.

Fixes an ICE mentioned in this comment: https://github.com/rust-lang/rust/issues/104382#issuecomment-1324410781
2022-11-24 08:42:35 +01:00
..
2022-11-23 13:06:27 -08:00
2022-10-23 10:09:44 +02:00
2022-11-23 13:06:27 -08:00
2022-11-22 23:12:26 +01:00
2022-10-16 15:10:40 +01:00
2022-11-21 15:24:51 +01:00
2022-10-23 10:09:44 +02:00