Skip to content

feat(allocator)!: rename Box and Vec methods #8547

feat(allocator)!: rename Box and Vec methods

feat(allocator)!: rename Box and Vec methods #8547

Workflow file for this run

name: Miri
permissions: {}
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
paths:
- "crates/oxc_allocator/**"
- "crates/oxc_ast/src/utf8_to_utf16.rs"
- "crates/oxc_ast/src/generated/utf8_to_utf16_converter.rs"
- "crates/oxc_data_structures/**"
- "crates/oxc_parser/**"
- "crates/oxc_traverse/**"
- ".github/workflows/miri.yml"
push:
branches:
- main
paths:
- "crates/oxc_allocator/**"
- "crates/oxc_ast/src/utf8_to_utf16.rs"
- "crates/oxc_ast/src/generated/utf8_to_utf16_converter.rs"
- "crates/oxc_data_structures/**"
- "crates/oxc_parser/**"
- "crates/oxc_traverse/**"
- ".github/workflows/miri.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
miri:
name: Miri
runs-on: namespace-profile-linux-x64-default
env:
# FIXME: cargo-miri is broken on nightly-2026-02-12.
# https://github.com/rust-lang/miri/issues/4855
MIRI_TOOLCHAIN: nightly-2026-02-11
steps:
- name: Checkout
uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2
- uses: ./.github/actions/check-changes
id: filter
with:
packages: oxc_allocator,oxc_ast,oxc_data_structures,oxc_parser,oxc_transformer
paths: .github/workflows/miri.yml
token: ${{ secrets.GITHUB_TOKEN }}
pr-number: ${{ github.event.pull_request.number }}
- uses: namespacelabs/nscloud-cache-action@a90bb5d4b27522ce881c6e98eebd7d7e6d1653f9 # v1.4.2
with:
path: /home/runner/.rustup
cache: rust
- name: Install Miri
if: steps.filter.outputs.changed == 'true'
run: |
rustup toolchain install "${MIRI_TOOLCHAIN}" --component miri
cargo +"${MIRI_TOOLCHAIN}" miri setup
# `--lib --bins --tests` omits doctests, which Miri can't run
# https://github.com/oxc-project/oxc/pull/11092
- name: Test with Miri
if: steps.filter.outputs.changed == 'true'
run: |
cargo +"${MIRI_TOOLCHAIN}" miri test --lib --bins --tests --all-features -p oxc_allocator -p oxc_ast -p oxc_data_structures
cargo +"${MIRI_TOOLCHAIN}" miri test --lib --bins --tests -p oxc_parser -p oxc_transformer