rustc::traits::orphan_check_trait_ref
does not consider TraitDef::is_marker
#67919
Labels
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
F-marker_trait_attr
`#![feature(marker_trait_attr)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
It seems like #53693 did not update the orphan checker to consider
#[marker]
traits.#[marker] trait Foo {}
struct Bar;
impl Foo for Bar {}
This should be OK because the overlap would actually be permitted as
Foo
is a#[marker]
trait.However, there might be something I've overlooked here such as impl polarity (
impls_are_allowed_to_overlap
) so I'm not filing a PR just now.cc @nikomatsakis @arielb1 @scottmcm
cc #29864
References:
The text was updated successfully, but these errors were encountered: