Skip to content

fix(sys): address compiler warnings in bindgen configuration#350

Merged
filmil merged 1 commit intogoogle:mainfrom
clydegerber:fix/bindgen-compiler-warnings
Apr 28, 2026
Merged

fix(sys): address compiler warnings in bindgen configuration#350
filmil merged 1 commit intogoogle:mainfrom
clydegerber:fix/bindgen-compiler-warnings

Conversation

@clydegerber
Copy link
Copy Markdown
Contributor

Summary

  • Replaces the deprecated rustfmt_bindings() call with formatter(bindgen::Formatter::Rustfmt)
  • Adds .no_partialeq() for UTextFuncs, UReplaceableCallbacks, and UCharIterator to suppress warnings about function pointer comparisons not producing meaningful results

Test plan

  • CI passes with no bindgen-related compiler warnings

This commit was created by an automated coding assistant, with human supervision.

Replace the deprecated rustfmt_bindings() call with the formatter() API.
Exclude UTextFuncs, UReplaceableCallbacks, and UCharIterator from PartialEq
derivation, as these structs contain function pointers whose comparisons
produce meaningless results and trigger a compiler warning since Rust 1.85.

This commit was created by an automated coding assistant, with human
supervision.
@filmil filmil merged commit 5f18692 into google:main Apr 28, 2026
14 checks passed
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