Run proc-macro-srv tests on rust-lang/rust-analyzer

This commit is contained in:
Lukas Wirth 2023-03-29 11:20:57 +02:00
parent 7498ec730e
commit afe52d270d
3 changed files with 7 additions and 6 deletions

View File

@ -24,6 +24,7 @@ jobs:
runs-on: ${{ matrix.os }}
env:
CC: deny_c
RUSTC_BOOTSTRAP: 1
strategy:
fail-fast: false
@ -50,15 +51,15 @@ jobs:
run: sed -i '/\[profile.dev]/a opt-level=1' Cargo.toml
- name: Compile (tests)
run: cargo test --no-run --locked
run: cargo test --no-run --locked --features sysroot-abi
# It's faster to `test` before `build` ¯\_(ツ)_/¯
- name: Compile (rust-analyzer)
if: matrix.os == 'ubuntu-latest'
run: cargo build --quiet
run: cargo build --quiet --features sysroot-abi
- name: Test
run: cargo test -- --nocapture --quiet
run: cargo test --features sysroot-abi -- --nocapture --quiet
- name: Run analysis-stats on rust-analyzer
if: matrix.os == 'ubuntu-latest'

View File

@ -95,8 +95,9 @@ mbe.workspace = true
[features]
jemalloc = ["jemallocator", "profile/jemalloc"]
force-always-assert = ["always-assert/force"]
sysroot-abi = ["proc-macro-srv-cli/sysroot-abi"]
in-rust-tree = [
"proc-macro-srv-cli/sysroot-abi",
"sysroot-abi",
"ide/in-rust-tree",
"syntax/in-rust-tree",
]

View File

@ -818,8 +818,7 @@ fn main() {
}
#[test]
// FIXME: Re-enable once we can run proc-macro tests on rust-lang/rust-analyzer again
#[cfg(any())]
#[cfg(feature = "sysroot-abi")]
fn resolve_proc_macro() {
use expect_test::expect;
if skip_slow_tests() {