Skip to content

Update cc_bindings_from_rs for rustc_abi Align return types. - #2769

Closed
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1011846294
Closed

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1011846294

Conversation

@copybara-service

Copy link
Copy Markdown

Update cc_bindings_from_rs for rustc_abi Align return types.

Upstream rust-lang/rust#165262 (first included in nightly-2026-11-02, commit-date 2026-11-01) changed rustc_abi::Layout::align and rustc_abi::TargetDataLayout::pointer_align to return rustc_abi::Align directly instead of rustc_abi::AbiAlign (this failure was masked in the 2026-11-02 nightly matrix run until database compiled past rust-lang/rust#165079).

Because AbiAlign already implements Copy, Eq, and Deref<Target = Align> across all supported toolchains, drop .abi on layout.align() and data_layout.pointer_align() callsites so cc_bindings_from_rs compiles across all stable and nightly toolchains without #[rustversion] gating.

Fixes #2767

Upstream rust-lang/rust#165262 (first included in nightly-2026-11-02, commit-date 2026-11-01) changed `rustc_abi::Layout::align` and `rustc_abi::TargetDataLayout::pointer_align` to return `rustc_abi::Align` directly instead of `rustc_abi::AbiAlign` (this failure was masked in the 2026-11-02 nightly matrix run until `database` compiled past rust-lang/rust#165079).

Because `AbiAlign` already implements `Copy`, `Eq`, and `Deref<Target = Align>` across all supported toolchains, drop `.abi` on `layout.align()` and `data_layout.pointer_align()` callsites so `cc_bindings_from_rs` compiles across all stable and nightly toolchains without `#[rustversion]` gating.

Fixes #2767

PiperOrigin-RevId: 1011846294
@google-cla

google-cla Bot commented Nov 2, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@copybara-service copybara-service Bot closed this Nov 2, 2026
@copybara-service
copybara-service Bot deleted the test_1011846294 branch November 2, 2026 19:27
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.

🚨 Nightly Test Matrix Failure: 2026-11-02

0 participants