Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
feat: Make boojum compile with modern compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
popzxc committed Aug 5, 2024
1 parent eb51b6b commit db84c25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly-2024-05-07"
channel = "nightly-2024-08-01"
4 changes: 2 additions & 2 deletions src/cs/implementations/fast_serialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ where
{
fn write_into_buffer<W: Write>(&self, mut dst: W) -> Result<(), Box<dyn Error>> {
// we avoid transmute here
let flattened_self = self[..].flatten();
let flattened_self = self[..].as_flattened();

Check failure on line 275 in src/cs/implementations/fast_serialization.rs

View workflow job for this annotation

GitHub Actions / cargo build and test (packed_simd) (macos-13-xlarge)

no method named `as_flattened` found for slice `[[F; N]]` in the current scope

let len_as_base = flattened_self.len();
let len_le_bytes = (len_as_base as u64).to_le_bytes();
Expand Down Expand Up @@ -346,7 +346,7 @@ where
{
fn write_into_buffer<W: Write>(&self, mut dst: W) -> Result<(), Box<dyn Error>> {
// we avoid transmute here
let flattened_self = self[..].flatten();
let flattened_self = self[..].as_flattened();

Check failure on line 349 in src/cs/implementations/fast_serialization.rs

View workflow job for this annotation

GitHub Actions / cargo build and test (packed_simd) (macos-13-xlarge)

no method named `as_flattened` found for slice `[[u8; N]]` in the current scope

let len_as_base = flattened_self.len();
let len_le_bytes = (len_as_base as u64).to_le_bytes();
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
#![feature(vec_push_within_capacity)]
#![feature(return_position_impl_trait_in_trait)]
#![feature(type_changing_struct_update)]
#![feature(slice_flatten)]
#![cfg_attr(feature = "include_packed_simd", feature(stdsimd))]

pub mod algebraic_props;
Expand Down

0 comments on commit db84c25

Please sign in to comment.