Skip to content

[tests] Annotate UI test files with error requirements#3000

Merged
joshlf merged 1 commit intomainfrom
G3638fc706fe75313ba5202a53db61e78b5243a1f
Feb 9, 2026
Merged

[tests] Annotate UI test files with error requirements#3000
joshlf merged 1 commit intomainfrom
G3638fc706fe75313ba5202a53db61e78b5243a1f

Conversation

@joshlf
Copy link
Member

@joshlf joshlf commented Feb 6, 2026

Makes progress on #2999


Latest Update: v7 — Compare vs v6

📚 Full Patch History

Links show the diff between the row version and the column version.

Version v6 v5 v4 v3 v2 v1 Base
v7 vs v6 vs v5 vs v4 vs v3 vs v2 vs v1 vs Base
v6 vs v5 vs v4 vs v3 vs v2 vs v1 vs Base
v5 vs v4 vs v3 vs v2 vs v1 vs Base
v4 vs v3 vs v2 vs v1 vs Base
v3 vs v2 vs v1 vs Base
v2 vs v1 vs Base
v1 vs Base
⬇️ Download this PR

Branch

git fetch origin refs/heads/G3638fc706fe75313ba5202a53db61e78b5243a1f && git checkout -b pr-G3638fc706fe75313ba5202a53db61e78b5243a1f FETCH_HEAD

Checkout

git fetch origin refs/heads/G3638fc706fe75313ba5202a53db61e78b5243a1f && git checkout FETCH_HEAD

Cherry Pick

git fetch origin refs/heads/G3638fc706fe75313ba5202a53db61e78b5243a1f && git cherry-pick FETCH_HEAD

Pull

git pull origin refs/heads/G3638fc706fe75313ba5202a53db61e78b5243a1f

Stacked PRs enabled by GHerrit.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @joshlf, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the robustness of the UI test suite by introducing a comprehensive system of annotations within test files. These annotations precisely specify the expected compiler diagnostic output, including error messages and line numbers, for various Rust toolchain revisions. This ensures consistent and accurate validation of compiler behavior, particularly for zerocopy trait implementations and macro usages.

Highlights

  • UI Test Annotations: Added UI test annotations to numerous Rust test files (tests/ui/*.rs) to explicitly define expected compiler errors across different Rust toolchain revisions (MSRV, stable, and nightly).
  • Error Line Number Updates: Updated line numbers in corresponding .stderr files (tests/ui/*.stderr) to reflect the shifts caused by the addition of new annotation lines in the .rs test files.
  • UI Test Runner Configuration: Modified the UI test runner configuration to enable and utilize the revision system for annotations, allowing for more granular and toolchain-specific error expectations.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • tests/ui/diagnostic-not-implemented-from-bytes.msrv.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-from-bytes.nightly.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-from-bytes.rs
    • Added UI test annotations for FromBytes trait errors.
  • tests/ui/diagnostic-not-implemented-from-bytes.stable.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-from-zeros.msrv.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-from-zeros.nightly.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-from-zeros.rs
    • Added UI test annotations for FromZeros trait errors.
  • tests/ui/diagnostic-not-implemented-from-zeros.stable.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-immutable.msrv.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-immutable.nightly.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-immutable.rs
    • Added UI test annotations for Immutable trait errors.
  • tests/ui/diagnostic-not-implemented-immutable.stable.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-into-bytes.msrv.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-into-bytes.nightly.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-into-bytes.rs
    • Added UI test annotations for IntoBytes trait errors.
  • tests/ui/diagnostic-not-implemented-into-bytes.stable.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-issue-1296.msrv.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-issue-1296.nightly.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-issue-1296.rs
    • Added UI test annotations for Immutable and IntoBytes trait errors.
  • tests/ui/diagnostic-not-implemented-issue-1296.stable.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-known-layout.msrv.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-known-layout.nightly.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-known-layout.rs
    • Added UI test annotations for KnownLayout trait errors.
  • tests/ui/diagnostic-not-implemented-known-layout.stable.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-try-from-bytes.msrv.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-try-from-bytes.nightly.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-try-from-bytes.rs
    • Added UI test annotations for TryFromBytes trait errors.
  • tests/ui/diagnostic-not-implemented-try-from-bytes.stable.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-unaligned.msrv.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-unaligned.nightly.stderr
    • Updated error line numbers.
  • tests/ui/diagnostic-not-implemented-unaligned.rs
    • Added UI test annotations for Unaligned trait errors.
  • tests/ui/diagnostic-not-implemented-unaligned.stable.stderr
    • Updated error line numbers.
  • tests/ui/include_value_not_from_bytes.msrv.stderr
    • Updated error line numbers.
  • tests/ui/include_value_not_from_bytes.nightly.stderr
    • Updated error line numbers.
  • tests/ui/include_value_not_from_bytes.rs
    • Added UI test annotations for FromBytes trait errors in include_value!.
  • tests/ui/include_value_not_from_bytes.stable.stderr
    • Updated error line numbers.
  • tests/ui/include_value_wrong_size.msrv.stderr
    • Updated error line numbers.
  • tests/ui/include_value_wrong_size.nightly.stderr
    • Updated error line numbers.
  • tests/ui/include_value_wrong_size.rs
    • Added UI test annotations for size mismatch errors in include_value!.
  • tests/ui/include_value_wrong_size.stable.stderr
    • Updated error line numbers.
  • tests/ui/max-align.msrv.stderr
    • Updated error line numbers.
  • tests/ui/max-align.nightly.stderr
    • Updated error line numbers.
  • tests/ui/max-align.rs
    • Added UI test annotations for repr(align) attribute errors.
  • tests/ui/max-align.stable.stderr
    • Updated error line numbers.
  • tests/ui/ptr-is-invariant-over-v.msrv.stderr
    • Updated error line numbers.
  • tests/ui/ptr-is-invariant-over-v.nightly.stderr
    • Updated error line numbers.
  • tests/ui/ptr-is-invariant-over-v.rs
    • Added UI test annotations for lifetime mismatch errors.
  • tests/ui/ptr-is-invariant-over-v.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-dst-not-frombytes.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-dst-not-frombytes.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-dst-not-frombytes.rs
    • Added UI test annotations for transmute! destination type errors.
  • tests/ui/transmute-dst-not-frombytes.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-const.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-const.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-const.rs
    • Added UI test annotations for transmute_mut! in const contexts.
  • tests/ui/transmute-mut-const.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-dst-not-a-reference.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-dst-not-a-reference.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-dst-not-a-reference.rs
    • Added UI test annotations for transmute_mut! destination type errors.
  • tests/ui/transmute-mut-dst-not-a-reference.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-dst-not-frombytes.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-dst-not-frombytes.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-dst-not-frombytes.rs
    • Added UI test annotations for transmute_mut! destination type errors.
  • tests/ui/transmute-mut-dst-not-frombytes.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-dst-not-intobytes.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-dst-not-intobytes.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-dst-not-intobytes.rs
    • Added UI test annotations for transmute_mut! destination type errors.
  • tests/ui/transmute-mut-dst-not-intobytes.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-illegal-lifetime.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-illegal-lifetime.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-illegal-lifetime.rs
    • Added UI test annotations for transmute_mut! lifetime errors.
  • tests/ui/transmute-mut-illegal-lifetime.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-src-dst-not-references.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-src-dst-not-references.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-src-dst-not-references.rs
    • Added UI test annotations for transmute_mut! source/destination type errors.
  • tests/ui/transmute-mut-src-dst-not-references.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-src-immutable.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-src-immutable.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-src-immutable.rs
    • Added UI test annotations for transmute_mut! source type errors.
  • tests/ui/transmute-mut-src-immutable.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-src-not-a-reference.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-src-not-a-reference.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-src-not-a-reference.rs
    • Added UI test annotations for transmute_mut! source type errors.
  • tests/ui/transmute-mut-src-not-a-reference.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-src-not-frombytes.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-src-not-frombytes.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-src-not-frombytes.rs
    • Added UI test annotations for transmute_mut! source type errors.
  • tests/ui/transmute-mut-src-not-frombytes.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-src-not-intobytes.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-src-not-intobytes.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-src-not-intobytes.rs
    • Added UI test annotations for transmute_mut! source type errors.
  • tests/ui/transmute-mut-src-not-intobytes.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-src-unsized.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-src-unsized.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-mut-src-unsized.rs
    • Added UI test annotations for transmute_mut! source type errors.
  • tests/ui/transmute-mut-src-unsized.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ptr-to-usize.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ptr-to-usize.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ptr-to-usize.rs
    • Added UI test annotations for transmute! pointer to usize errors.
  • tests/ui/transmute-ptr-to-usize.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-dst-mutable.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-dst-mutable.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-dst-mutable.rs
    • Added UI test annotations for transmute_ref! destination type errors.
  • tests/ui/transmute-ref-dst-mutable.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-dst-not-a-reference.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-dst-not-a-reference.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-dst-not-a-reference.rs
    • Added UI test annotations for transmute_ref! destination type errors.
  • tests/ui/transmute-ref-dst-not-a-reference.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-dst-not-frombytes.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-dst-not-frombytes.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-dst-not-frombytes.rs
    • Added UI test annotations for transmute_ref! destination type errors.
  • tests/ui/transmute-ref-dst-not-frombytes.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-dst-not-nocell.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-dst-not-nocell.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-dst-not-nocell.rs
    • Added UI test annotations for transmute_ref! destination type errors.
  • tests/ui/transmute-ref-dst-not-nocell.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-illegal-lifetime.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-illegal-lifetime.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-illegal-lifetime.rs
    • Added UI test annotations for transmute_ref! lifetime errors.
  • tests/ui/transmute-ref-illegal-lifetime.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-src-dst-not-references.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-src-dst-not-references.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-src-dst-not-references.rs
    • Added UI test annotations for transmute_ref! source/destination type errors.
  • tests/ui/transmute-ref-src-dst-not-references.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-src-not-a-reference.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-src-not-a-reference.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-src-not-a-reference.rs
    • Added UI test annotations for transmute_ref! source type errors.
  • tests/ui/transmute-ref-src-not-a-reference.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-src-not-intobytes.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-src-not-intobytes.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-src-not-intobytes.rs
    • Added UI test annotations for transmute_ref! source type errors.
  • tests/ui/transmute-ref-src-not-intobytes.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-src-not-nocell.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-src-not-nocell.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-src-not-nocell.rs
    • Added UI test annotations for transmute_ref! source type errors.
  • tests/ui/transmute-ref-src-not-nocell.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-src-unsized.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-src-unsized.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-ref-src-unsized.rs
    • Added UI test annotations for transmute_ref! source type errors.
  • tests/ui/transmute-ref-src-unsized.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-size-decrease.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-size-decrease.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-size-decrease.rs
    • Added UI test annotations for transmute! size decrease errors.
  • tests/ui/transmute-size-decrease.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-size-increase-allow-shrink.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-size-increase-allow-shrink.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-size-increase-allow-shrink.rs
    • Added UI test annotations for transmute! size increase errors.
  • tests/ui/transmute-size-increase-allow-shrink.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-size-increase.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-size-increase.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-size-increase.rs
    • Added UI test annotations for transmute! size increase errors.
  • tests/ui/transmute-size-increase.stable.stderr
    • Updated error line numbers.
  • tests/ui/transmute-src-not-intobytes.msrv.stderr
    • Updated error line numbers.
  • tests/ui/transmute-src-not-intobytes.nightly.stderr
    • Updated error line numbers.
  • tests/ui/transmute-src-not-intobytes.rs
    • Added UI test annotations for transmute! source type errors.
  • tests/ui/transmute-src-not-intobytes.stable.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute-dst-not-tryfrombytes.msrv.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute-dst-not-tryfrombytes.nightly.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute-dst-not-tryfrombytes.rs
    • Added UI test annotations for try_transmute! destination type errors.
  • tests/ui/try_transmute-dst-not-tryfrombytes.stable.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute-size-decrease.msrv.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute-size-decrease.nightly.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute-size-decrease.rs
    • Added UI test annotations for try_transmute! size decrease errors.
  • tests/ui/try_transmute-size-decrease.stable.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute-size-increase.msrv.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute-size-increase.nightly.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute-size-increase.rs
    • Added UI test annotations for try_transmute! size increase errors.
  • tests/ui/try_transmute-size-increase.stable.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute-src-not-intobytes.msrv.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute-src-not-intobytes.nightly.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute-src-not-intobytes.rs
    • Added UI test annotations for try_transmute! source type errors.
  • tests/ui/try_transmute-src-not-intobytes.stable.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute_mut-dst-not-tryfrombytes.msrv.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute_mut-dst-not-tryfrombytes.nightly.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute_mut-dst-not-tryfrombytes.rs
    • Added UI test annotations for try_transmute_mut! destination type errors.
  • tests/ui/try_transmute_mut-dst-not-tryfrombytes.stable.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute_mut-src-not-frombytes.msrv.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute_mut-src-not-frombytes.nightly.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute_mut-src-not-frombytes.rs
    • Added UI test annotations for try_transmute_mut! source type errors.
  • tests/ui/try_transmute_mut-src-not-frombytes.stable.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute_mut-src-not-intobytes.msrv.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute_mut-src-not-intobytes.nightly.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute_mut-src-not-intobytes.rs
    • Added UI test annotations for try_transmute_mut! source type errors.
  • tests/ui/try_transmute_mut-src-not-intobytes.stable.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute_ref-dst-mutable.msrv.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute_ref-dst-mutable.nightly.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute_ref-dst-mutable.rs
    • Added UI test annotations for try_transmute_ref! destination type errors.
  • tests/ui/try_transmute_ref-dst-mutable.stable.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute_ref-dst-not-immutable-tryfrombytes.msrv.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute_ref-dst-not-immutable-tryfrombytes.nightly.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute_ref-dst-not-immutable-tryfrombytes.rs
    • Added UI test annotations for try_transmute_ref! destination type errors.
  • tests/ui/try_transmute_ref-dst-not-immutable-tryfrombytes.stable.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute_ref-src-not-immutable-intobytes.msrv.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute_ref-src-not-immutable-intobytes.nightly.stderr
    • Updated error line numbers.
  • tests/ui/try_transmute_ref-src-not-immutable-intobytes.rs
    • Added UI test annotations for try_transmute_ref! source type errors.
  • tests/ui/try_transmute_ref-src-not-immutable-intobytes.stable.stderr
    • Updated error line numbers.
  • tools/ui-runner/src/main.rs
    • Configured UI test runner to use revisions.
  • zerocopy-derive/tests/ui/absence_of_deprecated_warning.msrv.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/absence_of_deprecated_warning.nightly.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/absence_of_deprecated_warning.rs
    • Added UI test annotations for deprecated warning.
  • zerocopy-derive/tests/ui/absence_of_deprecated_warning.stable.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/derive_transparent.msrv.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/derive_transparent.nightly.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/derive_transparent.rs
    • Added UI test annotations for transparent struct derive errors.
  • zerocopy-derive/tests/ui/derive_transparent.stable.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/enum.msrv.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/enum.nightly.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/enum.rs
    • Added UI test annotations for enum derive errors.
  • zerocopy-derive/tests/ui/enum.stable.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/enum_from_bytes_u8_too_few.msrv.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/enum_from_bytes_u8_too_few.nightly.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/enum_from_bytes_u8_too_few.rs
    • Added UI test annotations for enum FromBytes errors.
  • zerocopy-derive/tests/ui/enum_from_bytes_u8_too_few.stable.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/late_compile_pass.msrv.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/late_compile_pass.nightly.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/late_compile_pass.rs
    • Added UI test annotations for late compile pass errors.
  • zerocopy-derive/tests/ui/late_compile_pass.stable.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/mid_compile_pass.msrv.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/mid_compile_pass.nightly.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/mid_compile_pass.rs
    • Added UI test annotations for mid compile pass errors.
  • zerocopy-derive/tests/ui/mid_compile_pass.stable.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/msrv_specific.msrv.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/msrv_specific.nightly.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/msrv_specific.rs
    • Added UI test annotations for MSRV specific errors.
  • zerocopy-derive/tests/ui/msrv_specific.stable.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/privacy.msrv.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/privacy.nightly.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/privacy.rs
    • Added UI test annotations for privacy errors.
  • zerocopy-derive/tests/ui/privacy.stable.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/struct.msrv.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/struct.nightly.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/struct.rs
    • Added UI test annotations for struct derive errors.
  • zerocopy-derive/tests/ui/struct.stable.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/union.msrv.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/union.nightly.stderr
    • Updated error line numbers.
  • zerocopy-derive/tests/ui/union.rs
    • Added UI test annotations for union derive errors.
  • zerocopy-derive/tests/ui/union.stable.stderr
    • Updated error line numbers.
Activity
  • The pull request was created by joshlf.
  • The pull request description indicates it was automatically generated by GHerrit.
  • The pull request is part of a stacked PR series, with a parent PR identified as G89ee46d6a1d97f48811d710599b089f486c85717.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@codecov-commenter
Copy link

codecov-commenter commented Feb 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.87%. Comparing base (4070001) to head (eb4b425).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3000   +/-   ##
=======================================
  Coverage   91.87%   91.87%           
=======================================
  Files          20       20           
  Lines        6057     6057           
=======================================
  Hits         5565     5565           
  Misses        492      492           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request is a large but valuable refactoring of the UI tests. It annotates many test files with specific error requirements for different Rust toolchains (MSRV, stable, and nightly). This makes the expected outcomes of tests explicit and improves their maintainability. The changes are systematic and appear correct, including the necessary updates to the test runner configuration and the expected error output files. I don't have any specific issues to raise; this is a solid improvement to the test suite.

@joshlf joshlf force-pushed the G3638fc706fe75313ba5202a53db61e78b5243a1f branch from 8adbd58 to 1f03f47 Compare February 6, 2026 19:44
@joshlf joshlf force-pushed the G89ee46d6a1d97f48811d710599b089f486c85717 branch from 06ac251 to 20a5e50 Compare February 6, 2026 19:44
Base automatically changed from G89ee46d6a1d97f48811d710599b089f486c85717 to main February 6, 2026 20:25
@joshlf joshlf force-pushed the G3638fc706fe75313ba5202a53db61e78b5243a1f branch 3 times, most recently from 7d9cf02 to eb4b425 Compare February 9, 2026 19:27
Makes progress on #2999

gherrit-pr-id: G3638fc706fe75313ba5202a53db61e78b5243a1f
@joshlf joshlf force-pushed the G3638fc706fe75313ba5202a53db61e78b5243a1f branch from eb4b425 to f33f472 Compare February 9, 2026 19:37
@joshlf joshlf enabled auto-merge February 9, 2026 19:41
@joshlf joshlf added this pull request to the merge queue Feb 9, 2026
github-merge-queue bot pushed a commit that referenced this pull request Feb 9, 2026
Makes progress on #2999

gherrit-pr-id: G3638fc706fe75313ba5202a53db61e78b5243a1f
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 9, 2026
@joshlf joshlf added this pull request to the merge queue Feb 9, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 9, 2026
@joshlf joshlf added this pull request to the merge queue Feb 9, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 9, 2026
@joshlf joshlf added this pull request to the merge queue Feb 9, 2026
Merged via the queue into main with commit 01126da Feb 9, 2026
202 of 205 checks passed
@joshlf joshlf deleted the G3638fc706fe75313ba5202a53db61e78b5243a1f branch February 9, 2026 21:34
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.

3 participants