Skip to content

Macro matching is incorrect for macros invoked in macro expansions #26361

Description

@reem

Example: http://is.gd/y5Wa67

This example should print "Type::Byte" but instead prints "Type::Struct". Calling ty_to_type! directly on u8 works, as does having forwards! receive a tt rather than a ty.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)C-bugCategory: This is a bug.E-hardCall for participation: Hard difficulty. Experience needed to fix: A lot.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions