]> git.lizzy.rs Git - rust.git/commitdiff
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)
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

1  2 
compiler/rustc_middle/src/ty/print/pretty.rs