1
Fork 0
rust/compiler/rustc_middle
Dylan DPC 6583025c93
Rollup merge of #111853 - compiler-errors:opaque-check, r=oli-obk
Check opaques for mismatch during writeback

Revive #111705.

I realized that we don't need to put any substs in the writeback results since all of the hidden types have already been remapped. See the comment in `compiler/rustc_middle/src/ty/typeck_results.rs`, which should make that clear for other explorers of the codebase.

Additionally, we need to do some diagnostic stashing because the diagnostics we produce during HIR typeck is very poor and we should prefer the diagnostic that comes from MIR, if we have one.

r? `@oli-obk`
2023-05-23 16:44:28 +05:30
..
src Rollup merge of #111853 - compiler-errors:opaque-check, r=oli-obk 2023-05-23 16:44:28 +05:30
Cargo.toml Use dynamic dispatch for queries 2023-04-30 09:48:47 +02:00
messages.ftl Remove LangItems::require 2023-05-16 19:53:38 +02:00
README.md

For more information about how rustc works, see the rustc dev guide.