Skip to content

Remove #[cfg] attributes during cfg-expansion#84110

Closed
Aaron1011 wants to merge 1 commit intorust-lang:masterfrom
Aaron1011:remove-cfg
Closed

Remove #[cfg] attributes during cfg-expansion#84110
Aaron1011 wants to merge 1 commit intorust-lang:masterfrom
Aaron1011:remove-cfg

Conversation

@Aaron1011
Copy link
Copy Markdown
Contributor

Currently, we don't remove #[cfg] attributes from a target when the
predicates pass. This PR removes all 'passing' #[cfg] attributes
during cfg-expansion, which causes derive proc-macros to never see any
#[cfg] attributes in the input token stream.

With #82608 merged, we can now do
this without losing spans.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

relnotes Marks issues that should be documented in the release notes of the next release. S-inactive Status: Inactive and waiting on the author. This is often applied to closed PRs. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.