diff options
| author | Michael Goulet <michael@errs.io> | 2024-12-26 19:13:50 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-12-26 19:21:43 +0000 |
| commit | f349d720e785645c59d12cbf8709da5294e45709 (patch) | |
| tree | 0290f14c4d6839bc4a100f0531e0d0ba4363f7d2 /compiler/rustc_trait_selection/src | |
| parent | 409998c4e8cae45344fd434b358b697cc93870d0 (diff) | |
| download | rust-f349d720e785645c59d12cbf8709da5294e45709.tar.gz rust-f349d720e785645c59d12cbf8709da5294e45709.zip | |
Make ty::Error implement auto traits
Diffstat (limited to 'compiler/rustc_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs b/compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs index d6ac4baf8ad..968dc631e50 100644 --- a/compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs +++ b/compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs @@ -819,7 +819,9 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> { candidates.vec.push(AutoImplCandidate) } } - ty::Error(_) => {} // do not add an auto trait impl for `ty::Error` for now. + ty::Error(_) => { + candidates.vec.push(AutoImplCandidate); + } } } } |
