Skip to content

Commit 6dca436

Browse files
committed
Fix build error with -Z minimal-versions
``` error[E0635]: unknown feature `proc_macro_span_shrink` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.52/src/lib.rs:92:30 | 92 | feature(proc_macro_span, proc_macro_span_shrink) | ^^^^^^^^^^^^^^^^^^^^^^ ```
1 parent b0705bf commit 6dca436

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,18 +152,17 @@ jobs:
152152
- run: cargo build --tests --features default,thread-pool,io-compat --manifest-path futures/Cargo.toml
153153

154154
minimal-versions:
155-
name: cargo build -Z minimal-versions
155+
name: cargo minimal-versions build
156156
runs-on: ubuntu-latest
157157
steps:
158158
- uses: actions/checkout@v3
159159
- name: Install Rust
160160
run: rustup update nightly && rustup default nightly
161161
- name: Install cargo-hack
162162
uses: taiki-e/install-action@cargo-hack
163-
# remove dev-dependencies to avoid https://github.com/rust-lang/cargo/issues/4866
164-
- run: cargo hack --remove-dev-deps --workspace
165-
- run: cargo update -Z minimal-versions
166-
- run: cargo build --workspace --all-features
163+
- name: Install cargo-minimal-versions
164+
uses: taiki-e/install-action@cargo-minimal-versions
165+
- run: cargo minimal-versions build --workspace --ignore-private --all-features
167166

168167
no-std:
169168
name: cargo build --target ${{ matrix.target }}

futures-macro/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ proc-macro = true
1616
[features]
1717

1818
[dependencies]
19-
proc-macro2 = "1.0"
19+
proc-macro2 = "1.0.60"
2020
quote = "1.0"
2121
syn = { version = "2.0.8", features = ["full"] }

0 commit comments

Comments
 (0)