Skip to content

Use of $crate in macro patterns is questionable #1194

Description

@CAD97

See rust-lang/rust#99447 (comment)

The fact that $crate in the macro_rules LHS is accepted and glued into kw::DollarCrate is likely an accidental bug. The single use is an internal macro helper arm,

(@parse ::core::marker::PhantomData::<$crate::Ix0>, ::core::marker::PhantomData::<$crate::Ix0>, []) => {

which looking at the macro, should probably be written to take $in_dim:expr, $out_dim:expr, like the other arms anyway.

Metadata

Metadata

Assignees

No one assigned

    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