Skip to content

Normalize type projection when checking Pointee trait #752

Closed

Description

@celinval

The compiler has added an argument to the method ptr_metadata_ty to normalize the struct tail type when checking the Pointee trait. This is the change that added this option: rust-lang/rust@5a1c460

We haven't added the normalization on RMC yet. You can see potential issues here: rust-lang/rust#92128 and rust-lang/rust#92577.

We might be able to use similar logic to this code to get all the necessary information to do the normalization: https://github.com/rust-lang/rust/blob/673d0db5e393e9c64897005b470bfeb6d5aec61b/compiler/rustc_traits/src/normalize_projection_ty.rs

Activity

  1. added
    [C] Bug
    on Jan 13, 2022
  2. added and removed
    [C] Bug
    on Mar 16, 2022
  3. added
    [C] Internal
    on Nov 14, 2022
  4. removed their assignment
    on Jan 24, 2025
  5. added
    Z-Kani Compiler
    on Nov 5, 2026
  6. feliperodri commented on Nov 5, 2026

    @feliperodri
    Member

    Done in cff7c2c (#4815): typ.rs now normalizes projections in ptr_metadata_ty via resolve_metadata_ty. Test: tests/kani/UnsizedCoercion/assoc_type_tail_coercion.rs. Repro 752-1 passes.

  7. added 3 commits that reference this issue on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Z-Kani Compiler[C] Internal

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions