diff options
| author | Michael Goulet <michael@errs.io> | 2023-05-31 01:02:32 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-06-06 18:43:06 +0000 |
| commit | e0acff796a9221bc4d6769e3db5bf158647ef0e1 (patch) | |
| tree | 2a8cabfad9e1e4173ec2d44871a81dd10180b6d2 /compiler/rustc_hir_analysis/src/autoderef.rs | |
| parent | 3572d7451d1062e8bccf310af6bbf6255091d296 (diff) | |
| download | rust-e0acff796a9221bc4d6769e3db5bf158647ef0e1.tar.gz rust-e0acff796a9221bc4d6769e3db5bf158647ef0e1.zip | |
New trait solver is a property of inference context
Diffstat (limited to 'compiler/rustc_hir_analysis/src/autoderef.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/autoderef.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/autoderef.rs b/compiler/rustc_hir_analysis/src/autoderef.rs index d6d1498d708..f624118a4f1 100644 --- a/compiler/rustc_hir_analysis/src/autoderef.rs +++ b/compiler/rustc_hir_analysis/src/autoderef.rs @@ -73,7 +73,7 @@ impl<'a, 'tcx> Iterator for Autoderef<'a, 'tcx> { // NOTE: we may still need to normalize the built-in deref in case // we have some type like `&<Ty as Trait>::Assoc`, since users of // autoderef expect this type to have been structurally normalized. - if self.infcx.tcx.trait_solver_next() + if self.infcx.next_trait_solver() && let ty::Alias(ty::Projection, _) = ty.kind() { let (normalized_ty, obligations) = self.structurally_normalize(ty)?; |
