rust/compiler/rustc_trait_selection/src/solve
Matthias Krüger dd08f35e87
Rollup merge of #107286 - compiler-errors:new-solver-deny-infers, r=lcnr
ICE in new solver if we see an inference variable

By construction, we do not expect to see any `ty::Infer(ty::TyVar(_))` inference types in the solver (we treat this as ambiguous, since we need to be able to structurally resolve the self type at least one layer to assemble candidates for it). Additionally, since we're doing no freshening, we also don't expect to see any fresh vars of any kind in the solver.

Let's make that an ICE so we can catch any mistakes.

When #107282 lands, we should also ICE there too if we see a non-int/float infer.

r? `@lcnr`
2023-01-26 06:15:29 +01:00
..
search_graph add note about indirect cycles 2023-01-18 08:11:15 +01:00
trait_goals Rollup merge of #107286 - compiler-errors:new-solver-deny-infers, r=lcnr 2023-01-26 06:15:29 +01:00
assembly.rs Rollup merge of #107286 - compiler-errors:new-solver-deny-infers, r=lcnr 2023-01-26 06:15:29 +01:00
fulfill.rs Report the right fulfillment errors 2023-01-26 03:14:26 +00:00
infcx_ext.rs no subtyping in the new trait solver 2023-01-18 14:59:15 +00:00
mod.rs Don't normalize obligations in WF goal for the new solver 2023-01-25 21:28:22 +00:00
project_goals.rs Rollup merge of #107286 - compiler-errors:new-solver-deny-infers, r=lcnr 2023-01-26 06:15:29 +01:00
trait_goals.rs Implement Generator and Future 2023-01-26 03:15:36 +00:00