Skip to content

Standardize how we handle smart pointers in the compiler #1529

Closed

Description

@celinval

We haven't been programmatic while dealing with smart pointers specially when handling fat pointers. In some places, we create special cases for boxes or other types of pointers, while others we consider fat pointers as only references or raw pointer.

We haven't been dealing well with other types of smart pointers that are known to the compilers. So far these issues have manifested as crashes in the compiler. E.g.: #1528, #676, #416.

Activity

  1. added
    [I] Refactoring / Clean Up
    and removed on Nov 9, 2022
  2. added
    [C] Internal
    on Nov 5, 2026
  3. feliperodri commented on Nov 5, 2026

    @feliperodri
    Member

    Superseded by the coercion refactor (2b3a9be, ed24f69). #1531 and the cited crashes are closed, and repro 1529-1 (Rc/Arc/Box/NonNull unsizing) passes on main.

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

    [C] Internal[I] Refactoring / Clean Up

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions