1
Fork 0

Make ty::Error implement auto traits

This commit is contained in:
Michael Goulet 2024-12-26 19:13:50 +00:00
parent 409998c4e8
commit f349d720e7
5 changed files with 45 additions and 2 deletions

View file

@ -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);
}
}
}
}