(Context: trying to prove termination of simple for loops.)
In theory, fixing this is as simple as adding an extern_spec. The difficulty is that the impl is polymorphic in the index type:
impl<A: Step> Iterator for Range<A> {
fn next ...
}
So the termination of next depends on the termination of Step::forward_checked.
(Context: trying to prove termination of simple for loops.)
In theory, fixing this is as simple as adding an
extern_spec. The difficulty is that the impl is polymorphic in the index type:So the termination of
nextdepends on the termination ofStep::forward_checked.