rust/compiler/rustc_trait_selection
Matthias Krüger 118ee14dd1
Rollup merge of #104597 - compiler-errors:need_migrate_deref_output_trait_object-msg, r=eholk
Probe + better error messsage for `need_migrate_deref_output_trait_object`

1. Use `InferCtxt::probe` in `need_migrate_deref_output_trait_object` -- that normalization *could* technically do type inference as a side-effect, and this is a lint, so it should have no side-effects.
2. Return the trait-ref so we format the error message correctly. See the UI test change -- `(dyn A + 'static)` is not a trait.
2022-11-22 00:01:09 +01:00
..
src Rollup merge of #104597 - compiler-errors:need_migrate_deref_output_trait_object-msg, r=eholk 2022-11-22 00:01:09 +01:00
Cargo.toml Remove from compiler/ crates 2022-09-29 16:49:04 +09:00