Skip to content

Remove conflicting AsRef implementation for PyObject #5897

Closed
@coderabbitai

Description

@coderabbitai

Problem

A compilation conflict exists in vm/src/object/core.rs where there's a custom implementation of AsRef<Self> for PyObject that conflicts with the standard library's blanket implementation impl<T> AsRef<T> for T.

This creates a coherence conflict and will cause compilation failures.

Location

File: vm/src/object/core.rs around lines 865-870

Context

This issue was identified during the review of PR #5892 which aims to use Self where possible throughout the codebase.

Backlinks

Requested by: @youknowone

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy