Skip to content

Commit

Permalink
drain_filter is now named extract_if
Browse files Browse the repository at this point in the history
  • Loading branch information
Stovent committed Jul 14, 2023
1 parent e142dea commit baa9945
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion m68000/src/exception.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ impl<CPU: CpuDetails> M68000<CPU> {
/// Attempts to process all the pending exceptions
pub(super) fn process_pending_exceptions<M: MemoryAccess + ?Sized>(&mut self, memory: &mut M) -> usize {
// Extract the exceptions to process and keep the masked interrupts.
let exceptions: BTreeSet<_> = self.exceptions.drain_filter(|ex| {
let exceptions: BTreeSet<_> = self.exceptions.extract_if(|ex| {
if ex.is_interrupt() {
// If the interrupt is lower or equal to the interrupt mask, then it is not processed.
// MC68000UM 6.3.2 Level 7 interrupts cannot be inhibited by the interrupt priority mask.
Expand Down
2 changes: 1 addition & 1 deletion m68000/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
//! - Let memory access return extra read or write cycles for accuracy.

#![feature(bigint_helper_methods)]
#![feature(btree_drain_filter)]
#![feature(btree_extract_if)]

pub mod addressing_modes;
pub mod assembler;
Expand Down

0 comments on commit baa9945

Please sign in to comment.