Skip to content
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

[derive] Disable prelude when testing; fix bugs #886

Merged
merged 1 commit into from
Feb 16, 2024
Merged

Conversation

joshlf
Copy link
Member

@joshlf joshlf commented Feb 16, 2024

This has the effect of ensuring that derive-emitted code will fail to compile if it spuriously relies on certain identifiers being in scope - namely, identifiers which are part of the prelude.

Disabling the prelude surfaced a few bugs which are also fixed in this commit.

Makes progress on #11

@joshlf joshlf requested a review from jswrenn February 16, 2024 01:35
@jswrenn jswrenn force-pushed the proc-macro-hygiene branch 2 times, most recently from 61dcf2e to 7f05a49 Compare February 16, 2024 17:25
This has the effect of ensuring that derive-emitted code will fail to
compile if it spuriously relies on certain identifiers being in scope -
namely, identifiers which are part of the prelude.

Disabling the prelude surfaced a few bugs which are also fixed in this
commit.

Makes progress on #11
@joshlf joshlf added this pull request to the merge queue Feb 16, 2024
Merged via the queue into main with commit 8de796e Feb 16, 2024
209 checks passed
@joshlf joshlf deleted the proc-macro-hygiene branch February 16, 2024 18:03
@joshlf
Copy link
Member Author

joshlf commented Feb 16, 2024

Closes #882

dorryspears pushed a commit to dorryspears/zerocopy that referenced this pull request Feb 20, 2024
This has the effect of ensuring that derive-emitted code will fail to
compile if it spuriously relies on certain identifiers being in scope -
namely, identifiers which are part of the prelude.

Disabling the prelude surfaced a few bugs which are also fixed in this
commit.

Makes progress on google#11
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.

None yet

2 participants