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
Problem
A compilation conflict exists in
vm/src/object/core.rswhere there's a custom implementation ofAsRef<Self> for PyObjectthat conflicts with the standard library's blanket implementationimpl<T> AsRef<T> for T.This creates a coherence conflict and will cause compilation failures.
Location
File:
vm/src/object/core.rsaround lines 865-870Context
This issue was identified during the review of PR #5892 which aims to use
Selfwhere possible throughout the codebase.Backlinks
Selfwhere possible #5892Selfwhere possible #5892 (comment)Requested by: @youknowone