return when obligation has references_error
This commit is contained in:
parent
65445a571c
commit
82510b90c6
1 changed files with 4 additions and 0 deletions
|
@ -899,6 +899,10 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
|||
return;
|
||||
}
|
||||
|
||||
if obligation.references_error() {
|
||||
return;
|
||||
}
|
||||
|
||||
candidates.vec.push(TransmutabilityCandidate);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue