Skip to content

Conversation

@joncinque
Copy link

Problem

There's still usage of an additional proc_macro_hygiene feature in frozen-abi and a few of its dependencies, but the issue referenced in the comment, solana-labs#11055, has been long resolved.

Summary of Changes

I'm not sure if this is OK, but I wanted to get the discussion started with a simple PR to remove this usage everywhere. If I'm missing something, I'll be happy to close the PR!

Fixes #

@joncinque joncinque requested a review from ryoqun March 6, 2024 12:41
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.8%. Comparing base (ce34f3f) to head (53482ad).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master     #109     +/-   ##
=========================================
- Coverage    81.8%    81.8%   -0.1%     
=========================================
  Files         838      838             
  Lines      225941   225941             
=========================================
- Hits       184945   184926     -19     
- Misses      40996    41015     +19     

Comment on lines -20 to -24
// See https://github.com/solana-labs/solana/issues/11055
// We may be running the custom `rust-bpf-builder` toolchain,
// which currently needs `#![feature(proc_macro_hygiene)]` to
// be applied.
println!("cargo:rustc-cfg=RUSTC_NEEDS_PROC_MACRO_HYGIENE");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems this originated at solana-labs#10905 (comment)

Copy link
Member

@ryoqun ryoqun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. thanks for tlc towards frozen-abi. :)

just curious, did you encounter some problems because of the remove d code?

@joncinque
Copy link
Author

just curious, did you encounter some problems because of the remove d code?

No issue, I noticed it while reviewing solana-program/address-lookup-table#7 and wondered if it was still needed. Thanks for the review!

@joncinque joncinque merged commit b6f6fdb into anza-xyz:master Mar 6, 2024
@joncinque joncinque deleted the hygiene branch March 6, 2024 14:32
codebender828 pushed a commit to codebender828/agave that referenced this pull request Oct 3, 2024
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.

3 participants