]> git.lizzy.rs Git - rust.git/commit
Auto merge of #106696 - kylematsuda:early-binder, r=lcnr
authorbors <bors@rust-lang.org>
Sat, 14 Jan 2023 17:44:30 +0000 (17:44 +0000)
committerbors <bors@rust-lang.org>
Sat, 14 Jan 2023 17:44:30 +0000 (17:44 +0000)
commitb8f9cb345ab1401f2fbd14cc23f64dda9dd2314e
treeae7278fa324146c84aef5ec81f3f1dfd91c90c06
parent4b51adf6ffa1ae2286ea436eb48cbaa8771886e6
parent6e969ea85eb8f5e504c1a0a06c0a63c515fadf3b
Auto merge of #106696 - kylematsuda:early-binder, r=lcnr

Switch to `EarlyBinder` for `const_param_default` and `impl_trait_ref` queries

Part of the work to close #105779 and implement https://github.com/rust-lang/types-team/issues/78.

Several queries `X` have a `bound_X` variant that wraps the output in `EarlyBinder`. This PR adds `EarlyBinder` to the return type of  `const_param_default` and `impl_trait_ref`, and removes their `bound_X` variants.

r? `@lcnr`
compiler/rustc_hir_typeck/src/method/suggest.rs
compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs