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

Make type_eq_non_static more robust #11

Closed
wants to merge 1 commit into from

Conversation

NobodyXu
Copy link
Contributor

@NobodyXu NobodyXu commented Jan 7, 2023

By returning and checking equality of function name of TypeIdNonStatic::of, the type name of T and the needs_drop attribute of T.

This would makes it even more unlikely for LLVM to merge these functions and prevent false positive.

Signed-off-by: Jiahao XU [email protected]

By returning and checking equality of function name of
`TypeIdNonStatic::of` and the type name of `T`.

This would makes it even more unlikely for LLVM to merge these functions
and prevent false positive.

Signed-off-by: Jiahao XU <[email protected]>
@NobodyXu
Copy link
Contributor Author

NobodyXu commented Jan 7, 2023

CI "1.38.0 macos-latest" fail when compiling rustversion, which is not related to this PR.

@NobodyXu
Copy link
Contributor Author

The CI failure is probably caused by rust-lang/rust#107252

@sagebind
Copy link
Owner

Sorry for my long absence here. Closing this in favor of #14 which avoids function pointers entirely.

@sagebind sagebind closed this Sep 19, 2023
@NobodyXu NobodyXu deleted the improve-robustness branch September 19, 2023 21:43
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.

2 participants