Avoid ICE when handling const auto traits in the next-gen solver
This commit is contained in:
parent
3326fbd1f4
commit
ae699c8e78
3 changed files with 27 additions and 4 deletions
|
|
@ -189,10 +189,11 @@ where
|
|||
}
|
||||
|
||||
fn consider_auto_trait_candidate(
|
||||
_ecx: &mut EvalCtxt<'_, D>,
|
||||
ecx: &mut EvalCtxt<'_, D>,
|
||||
_goal: Goal<I, Self>,
|
||||
) -> Result<Candidate<I>, NoSolution> {
|
||||
unreachable!("auto traits are never const")
|
||||
ecx.cx().delay_bug("auto traits are never const");
|
||||
Err(NoSolution)
|
||||
}
|
||||
|
||||
fn consider_trait_alias_candidate(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue