Closed hawkw closed 6 years ago
Basically it looks like:
step
is now add_one
/sub_one
,steps_between_by_one
has been removedsteps_between
should always have the behaviour steps_between_by_one
used to haveis_negative
was removedadd_usize
was added, which adds an arbitrary number of steps to this stepRefer to the docs for details: https://doc.rust-lang.org/std/iter/trait.Step.html
These implementations are generated in a macro, which just wraps the underlying field self.number
's iter::Step
implementation, so updating this should be pretty easy:
https://github.com/hawkw/sos-kernel/blob/c84ca3b08e621f857bdb05367421a1487e2ab0a4/memory/src/macros.rs#L227-L265
build errors: