]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #106170 - compiler-errors:autoderef-to-analysis, r=lcnr
authorMichael Goulet <michael@errs.io>
Thu, 12 Jan 2023 06:25:48 +0000 (22:25 -0800)
committerGitHub <noreply@github.com>
Thu, 12 Jan 2023 06:25:48 +0000 (22:25 -0800)
Move autoderef to `rustc_hir_analysis`

Not sure if this is a change we actually want, but autoderef really is only (functionally) used by `rustc_hir_analysis` and `rustc_hir_typeck`, so it probably should live there.

Instead, implement a separate autoderef helper in `TypeErrCtxt` for the one use-case that  goes against the ordering of the crate graph..

1  2 
compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs