Skip to content

PhantomData detection is brittle #34

@eira-fransham

Description

@eira-fransham

Currently it will generate false positives on cases like:

struct PhantomData;

#[derive(new)]
struct Foo { bar: PhantomData }

and false negatives on cases like:

use std::marker::PhantomData as PD;

#[derive(new)]
struct Foo { bar: PD }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions