rust/compiler/rustc_borrowck
Matthias Krüger 84663cee39
Rollup merge of #103641 - compiler-errors:issue-103624, r=cjgillot
Don't carry MIR location in `ConstraintCategory::CallArgument`

It turns out that `ConstraintCategory::CallArgument` cannot just carry a MIR location in it, since we may bubble them up to totally different MIR bodies.

So instead, revert the commit a6b5f95fb0, and instead just erase regions from the original `Option<Ty<'tcx>>` that it carried, so that it doesn't ICE with the changes in #103220.

Best reviewed in parts -- the first is just a revert, and the second is where the meaningful changes happen.

Fixes #103624
2022-10-28 07:06:43 +02:00
..
src Rollup merge of #103641 - compiler-errors:issue-103624, r=cjgillot 2022-10-28 07:06:43 +02:00
Cargo.toml Remove from compiler/ crates 2022-09-29 16:49:04 +09:00