rust/compiler/rustc_infer/src
Matthias Krüger 48170d5a1c
Rollup merge of #96727 - oli-obk:no_expect, r=lcnr
Make TAIT behave exactly like RPIT

fixes https://github.com/rust-lang/rust/issues/96552

This makes type-alias-impl-trait behave like return-position-impl-trait. Unfortunately it also causes some cases to stop compiling due to "needing type annotations" and makes panicking cause fallback for the hidden type to `()`.

All of these are addressable, but we should probably address them for RPIT and TAIT together

r? ``@lcnr``
2022-06-30 00:23:50 +02:00
..
infer Rollup merge of #96727 - oli-obk:no_expect, r=lcnr 2022-06-30 00:23:50 +02:00
traits avoid many &str to String conversions with MultiSpan::push_span_label 2022-06-29 21:16:43 +09:00
lib.rs add new emit_inference_failure_err 2022-06-02 10:19:15 +02:00