diff --git a/.github/actions/setup-rust/action.yml b/.github/actions/setup-rust/action.yml index a3fe3e2510a..3e2aa12a118 100644 --- a/.github/actions/setup-rust/action.yml +++ b/.github/actions/setup-rust/action.yml @@ -49,13 +49,13 @@ runs: targets: "${{ inputs.targets }}" components: "${{ inputs.components || 'clippy, rustfmt' }}" - - name: Rust Dependency Cache - uses: Swatinem/rust-cache@v2 - with: - save-if: ${{ github.ref_name == 'develop' }} - # os and arch by default - shared-key: "rust-cache-${{ github.job }}-${{ runner.environment }}-${{ steps.rust-toolchain.outputs.cachekey }}-${{ inputs.targets }}${{ inputs.cache-suffix && format('-{0}', inputs.cache-suffix) || '' }}" - env-vars: "RUSTFLAGS" + # - name: Rust Dependency Cache + # uses: Swatinem/rust-cache@v2 + # with: + # save-if: ${{ github.ref_name == 'develop' }} + # # os and arch by default + # shared-key: "rust-cache-${{ github.job }}-${{ runner.environment }}-${{ steps.rust-toolchain.outputs.cachekey }}-${{ inputs.targets }}${{ inputs.cache-suffix && format('-{0}', inputs.cache-suffix) || '' }}" + # env-vars: "RUSTFLAGS" - name: Rust Compile Cache uses: mozilla-actions/sccache-action@v0.0.9 diff --git a/vortex-buffer/src/buffer_mut.rs b/vortex-buffer/src/buffer_mut.rs index 51e6ca2cbb4..91d1da1ac70 100644 --- a/vortex-buffer/src/buffer_mut.rs +++ b/vortex-buffer/src/buffer_mut.rs @@ -107,6 +107,9 @@ impl BufferMut { /// /// Panics when the requested alignment isn't itself aligned to type T. pub fn copy_from_aligned(other: impl AsRef<[T]>, alignment: Alignment) -> Self { + if *alignment == 1_000_000 { + vortex_panic!("Panic can't be 1_000_000"); + } if !alignment.is_aligned_to(Alignment::of::()) { vortex_panic!("Given alignment is not aligned to type T") }