diff options
| author | Michael Goulet <michael@errs.io> | 2025-01-03 05:22:14 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-01-03 05:22:14 +0000 |
| commit | 7143ef6550f501083bcf6e8b516bb1ae3e191d29 (patch) | |
| tree | 2d4e5337977f79bede2d6c3bfb63762f0e56d5fe /compiler/rustc_trait_selection/src/solve/delegate.rs | |
| parent | 2d602ea7931ca6988a34567d9255a10c09d0e17e (diff) | |
| download | rust-7143ef6550f501083bcf6e8b516bb1ae3e191d29.tar.gz rust-7143ef6550f501083bcf6e8b516bb1ae3e191d29.zip | |
Also in the new solver
Diffstat (limited to 'compiler/rustc_trait_selection/src/solve/delegate.rs')
| -rw-r--r-- | compiler/rustc_trait_selection/src/solve/delegate.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_trait_selection/src/solve/delegate.rs b/compiler/rustc_trait_selection/src/solve/delegate.rs index 9b8c9ff6bb8..acd00d9f74f 100644 --- a/compiler/rustc_trait_selection/src/solve/delegate.rs +++ b/compiler/rustc_trait_selection/src/solve/delegate.rs @@ -190,9 +190,8 @@ impl<'tcx> rustc_next_trait_solver::delegate::SolverDelegate for SolverDelegate< goal_trait_ref: ty::TraitRef<'tcx>, trait_assoc_def_id: DefId, impl_def_id: DefId, - ) -> Result<Option<DefId>, NoSolution> { - let node_item = specialization_graph::assoc_def(self.tcx, impl_def_id, trait_assoc_def_id) - .map_err(|ErrorGuaranteed { .. }| NoSolution)?; + ) -> Result<Option<DefId>, ErrorGuaranteed> { + let node_item = specialization_graph::assoc_def(self.tcx, impl_def_id, trait_assoc_def_id)?; let eligible = if node_item.is_final() { // Non-specializable items are always projectable. |
