1
Fork 0
rust/compiler/rustc_mir_transform
Matthias Krüger cf3cd4c48a
Rollup merge of #93024 - compiler-errors:inline-mir-bad-bounds, r=estebank
Do not ICE when inlining a function with un-satisfiable bounds

Fixes #93008
This is kinda a hack... but it's the fix I thought had the least blast-radius.

We use `normalize_param_env_or_error` to verify that the predicates in the param env are self-consistent, since with RevealAll, a bad predicate like `<&'static () as Clone>` will be evaluated with an empty ParamEnv (since it references no generics), and we'll raise an error for it.
2022-02-18 16:23:30 +01:00
..
src Rollup merge of #93024 - compiler-errors:inline-mir-bad-bounds, r=estebank 2022-02-18 16:23:30 +01:00
Cargo.toml Update itertools to deduplicate it 2022-01-14 12:33:54 +01:00