Skip to content

Commit

Permalink
Fix bug in validate_cast_and_convert_metadata
Browse files Browse the repository at this point in the history
TODO: Message body
  • Loading branch information
joshlf committed Sep 13, 2023
1 parent 04c5363 commit d221456
Show file tree
Hide file tree
Showing 4 changed files with 594 additions and 173 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,17 @@ jobs:
sudo apt-get install gcc-multilib
if: contains(matrix.target, 'i686')

# On nightly, we always pass `--features
# __internal_use_only_use_nightly_features_in_tests`. This allows tests to
# enable nightly-only functionality, and has no effect on non-test code.
- name: Run tests
run: ./cargo.sh +${{ matrix.toolchain }} test --package ${{ matrix.crate }} --target ${{ matrix.target }} ${{ matrix.features }} --verbose
run: |
./cargo.sh +${{ matrix.toolchain }} test \
--package ${{ matrix.crate }} \
--target ${{ matrix.target }} \
${{ matrix.features }} \
${{ matrix.toolchain == 'nightly' && '' || '--features __internal_use_only_use_nightly_features_in_tests' }} \
--verbose
# Only run tests when targetting x86 (32- or 64-bit) - we're executing on
# x86_64, so we can't run tests for any non-x86 target.
#
Expand Down
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ simd-nightly = ["simd"]
# We make no stability guarantees about this feature; it may be modified or
# removed at any time.
__internal_use_only_features_that_work_on_stable = ["alloc", "derive", "simd"]
# Instructs tests that they are running using a nightly compiler, and should
# make use of nightly features to enable more functionality. This is meant to be
# invoked by CI.
__internal_use_only_use_nightly_features_in_tests = []

[dependencies]
zerocopy-derive = { version = "=0.7.3", path = "zerocopy-derive", optional = true }
Expand Down
Loading

0 comments on commit d221456

Please sign in to comment.