]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #107486 - compiler-errors:bound-ty-keep-name, r=oli-obk
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Tue, 31 Jan 2023 22:38:52 +0000 (23:38 +0100)
committerGitHub <noreply@github.com>
Tue, 31 Jan 2023 22:38:52 +0000 (23:38 +0100)
commitd36bdf2d307328d471289e782e1878e21d9a3e91
tree2f503ba044e6f9cf20aa4c9db05b5d8a223e7968
parent53bb6322dbc80d8a7da69e1ea4dbff98c4a70abb
parent0e98a162c86cbc4a1bad86d63a0eb72739bb99f3
Rollup merge of #107486 - compiler-errors:bound-ty-keep-name, r=oli-obk

Track bound types like bound regions

When we instantiate bound types into placeholder types, we throw away the names for some reason. These names are particularly useful for error reporting once we have `for<T>` binders.

r? types
compiler/rustc_middle/src/ty/print/pretty.rs