mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Run proc-macro-srv tests on rust-lang/rust-analyzer
This commit is contained in:
parent
7498ec730e
commit
afe52d270d
3 changed files with 7 additions and 6 deletions
7
.github/workflows/ci.yaml
vendored
7
.github/workflows/ci.yaml
vendored
|
@ -24,6 +24,7 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
env:
|
env:
|
||||||
CC: deny_c
|
CC: deny_c
|
||||||
|
RUSTC_BOOTSTRAP: 1
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -50,15 +51,15 @@ jobs:
|
||||||
run: sed -i '/\[profile.dev]/a opt-level=1' Cargo.toml
|
run: sed -i '/\[profile.dev]/a opt-level=1' Cargo.toml
|
||||||
|
|
||||||
- name: Compile (tests)
|
- 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` ¯\_(ツ)_/¯
|
# It's faster to `test` before `build` ¯\_(ツ)_/¯
|
||||||
- name: Compile (rust-analyzer)
|
- name: Compile (rust-analyzer)
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
run: cargo build --quiet
|
run: cargo build --quiet --features sysroot-abi
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: cargo test -- --nocapture --quiet
|
run: cargo test --features sysroot-abi -- --nocapture --quiet
|
||||||
|
|
||||||
- name: Run analysis-stats on rust-analyzer
|
- name: Run analysis-stats on rust-analyzer
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
|
|
@ -95,8 +95,9 @@ mbe.workspace = true
|
||||||
[features]
|
[features]
|
||||||
jemalloc = ["jemallocator", "profile/jemalloc"]
|
jemalloc = ["jemallocator", "profile/jemalloc"]
|
||||||
force-always-assert = ["always-assert/force"]
|
force-always-assert = ["always-assert/force"]
|
||||||
|
sysroot-abi = ["proc-macro-srv-cli/sysroot-abi"]
|
||||||
in-rust-tree = [
|
in-rust-tree = [
|
||||||
"proc-macro-srv-cli/sysroot-abi",
|
"sysroot-abi",
|
||||||
"ide/in-rust-tree",
|
"ide/in-rust-tree",
|
||||||
"syntax/in-rust-tree",
|
"syntax/in-rust-tree",
|
||||||
]
|
]
|
||||||
|
|
|
@ -818,8 +818,7 @@ fn main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
// FIXME: Re-enable once we can run proc-macro tests on rust-lang/rust-analyzer again
|
#[cfg(feature = "sysroot-abi")]
|
||||||
#[cfg(any())]
|
|
||||||
fn resolve_proc_macro() {
|
fn resolve_proc_macro() {
|
||||||
use expect_test::expect;
|
use expect_test::expect;
|
||||||
if skip_slow_tests() {
|
if skip_slow_tests() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue