rust/compiler/rustc_trait_selection
Dylan DPC f23559451b
Rollup merge of #77303 - lcnr:const-evaluatable-TooGeneric, r=oli-obk,varkor
const evaluatable: improve `TooGeneric` handling

Instead of emitting an error in `fulfill`, we now correctly stall on inference variables.

As `const_eval_resolve` returns `ErrorHandled::TooGeneric` when encountering generic parameters on which
we actually do want to error, we check for inference variables and eagerly emit an error if they don't exist, returning `ErrorHandled::Reported` instead.

Also contains a small bugfix for `ConstEquate` where we previously only stalled on type variables. This is probably a leftover from
when we did not yet support stalling on const inference variables.

r? @oli-obk cc @varkor @eddyb
2020-10-01 02:13:35 +02:00
..
src Rollup merge of #77303 - lcnr:const-evaluatable-TooGeneric, r=oli-obk,varkor 2020-10-01 02:13:35 +02:00
Cargo.toml mv compiler to compiler/ 2020-08-30 18:45:07 +03:00