Use correct ImplSource for alias bounds
This commit is contained in:
parent
207b4b8e88
commit
e34723997a
2 changed files with 14 additions and 2 deletions
|
@ -157,8 +157,7 @@ fn to_selection<'tcx>(
|
|||
})
|
||||
}
|
||||
CandidateSource::BuiltinImpl(builtin) => ImplSource::Builtin(builtin, nested),
|
||||
CandidateSource::ParamEnv(_) => ImplSource::Param(nested),
|
||||
CandidateSource::AliasBound => ImplSource::Builtin(BuiltinImplSource::Misc, nested),
|
||||
CandidateSource::ParamEnv(_) | CandidateSource::AliasBound => ImplSource::Param(nested),
|
||||
CandidateSource::CoherenceUnknowable => {
|
||||
span_bug!(span, "didn't expect to select an unknowable candidate")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue