Skip to content

chore(cargo): upgrade proc-macro2 v1.0.56 -> v1.0.95 #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ardnew
Copy link

@ardnew ardnew commented Apr 19, 2025

Description

Update proc-macro2 in Cargo.lock by running cargo update -p proc-macro2.

Reason

rust nightly >= 2023-06-28 removed a compiler feature that proc-macro2 v1.0.56 uses.

This has already been fixed upstream.

It has also been mentioned in rust-lang/rust#113152

Notes

cargo 1.88.0-nightly (d811228b1 2025-04-15)
release: 1.88.0-nightly
commit-hash: d811228b14ae2707323f37346aee3f4147e247e6
commit-date: 2025-04-15
host: x86_64-unknown-linux-gnu
libgit2: 1.9.0 (sys:0.20.0 vendored)
libcurl: 8.12.1-DEV (sys:0.4.80+curl-8.12.1 vendored ssl:OpenSSL/3.4.1)
ssl: OpenSSL 3.4.1 11 Feb 2025
os: Ubuntu 24.10.0 (oracular) [64-bit]

Building system76-scheduler in the environment above with proc-macro2 v1.0.56 results in the following error:

$ just execsnoop=$(which execsnoop-bpfcc) build-release
env EXECSNOOP_PATH=/usr/sbin/execsnoop-bpfcc cargo build --release
  (...snip...)
error[E0635]: unknown feature `proc_macro_span_shrink`
  --> /opt/rust/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/proc-macro2-1.0.56/src/lib.rs:92:30
   |
92 |     feature(proc_macro_span, proc_macro_span_shrink)
   |                              ^^^^^^^^^^^^^^^^^^^^^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant