Make ty::Error implement auto traits
This commit is contained in:
parent
409998c4e8
commit
f349d720e7
5 changed files with 45 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue