Skip to content

Commit

Permalink
downgrade to msrv 1.75 (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
lightsing authored Aug 1, 2024
1 parent 8ff49ac commit 0c6dda6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions recursion/core/src/memory/air.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use std::borrow::{Borrow, BorrowMut};
use tracing::instrument;

use super::columns::MemoryInitCols;
use crate::air::Block;
use crate::air::SP1RecursionAirBuilder;
use crate::memory::MemoryGlobalChip;
use crate::runtime::{ExecutionRecord, RecursionProgram};
Expand Down Expand Up @@ -68,17 +67,17 @@ impl<F: PrimeField32> MachineAir<F> for MemoryGlobalChip {
let (addr, timestamp, value) =
&input.last_memory_record[i - input.first_memory_record.len()];
let last = i == nb_events - 1;
let (next_addr, _, _) = if last {
&(F::zero(), F::zero(), Block::from(F::zero()))
let next_addr = if last {
F::zero()
} else {
&input.last_memory_record[i - input.first_memory_record.len() + 1]
input.last_memory_record[i - input.first_memory_record.len() + 1].0
};
cols.addr = *addr;
cols.timestamp = *timestamp;
cols.value = *value;
cols.is_finalize = F::one();
(cols.diff_16bit_limb, cols.diff_12bit_limb) = if !last {
compute_addr_diff(*next_addr, *addr, true)
compute_addr_diff(next_addr, *addr, true)
} else {
(F::zero(), F::zero())
};
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2024-04-17"
channel = "1.75"
components = ["llvm-tools", "rustc-dev"]

0 comments on commit 0c6dda6

Please sign in to comment.