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

Add a way to force fallback implementation #220

Merged
merged 1 commit into from
May 1, 2020
Merged

Add a way to force fallback implementation #220

merged 1 commit into from
May 1, 2020

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented May 1, 2020

This adds a function proc_macro2::fallback::force() to force use of proc-macro2's fallback implementation of the API beginning at that point, even if the compiler's implementation is available, and a function proc_macro2::fallback::unforce() to resume using the compiler's implementation of the proc macro API if available.

Closes #216. Closes #219.

@dtolnay dtolnay merged commit 20fdacd into master May 1, 2020
@dtolnay dtolnay deleted the force branch May 1, 2020 22:48
elbe0046 added a commit to elbe0046/cbindgen that referenced this pull request Jun 20, 2021
Incorate dtolnay/proc-macro2#220 to fix the
case where a binary which is built with `panic = "abort"` aborts when
calling into cbdingen functionality.

mozilla#569

Signed-off-by: Grant Elbert <grant.elbert@smartthings.com>
elbe0046 added a commit to elbe0046/cbindgen that referenced this pull request Jun 20, 2021
Incorporate dtolnay/proc-macro2#220 to fix
the case where a binary which is built with `panic = "abort"` aborts
when calling into cbdingen functionality.

mozilla#569

Signed-off-by: Grant Elbert <grant.elbert@smartthings.com>
elbe0046 added a commit to elbe0046/cbindgen that referenced this pull request Jun 20, 2021
Incorporate dtolnay/proc-macro2#220 to fix
the case where a binary which is built with `panic = "abort"` aborts
when calling into cbindgen functionality.

mozilla#569

Signed-off-by: Grant Elbert <grant.elbert@smartthings.com>
elbe0046 added a commit to elbe0046/cbindgen that referenced this pull request Jun 20, 2021
Incorporate dtolnay/proc-macro2#220 to fix
the case where a binary which is built with `panic = "abort"` aborts
when calling into cbindgen functionality.

mozilla#569

Signed-off-by: Grant Elbert <elbe0046@gmail.com>
Repository owner locked and limited conversation to collaborators May 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add feature for force not(wrap_proc_macro)
1 participant