8000 Remove conflicting AsRef implementation for PyObject · Issue #5897 · RustPython/RustPython · GitHub
[go: up one dir, main page]

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

    0