Skip to content

change define_maps! syntax to include fn preceding $name #44161

Closed
@durka

Description

@durka

In this macro:

macro_rules! define_maps {
(<$tcx:tt>
$($(#[$attr:meta])*
[$($modifiers:tt)*] $name:ident: $node:ident($K:ty) -> $V:ty,)*) => {

This will make it easier to grep for a symbol without knowing whether it is a regular function or a query.

Also consider changing the name from define_maps! to define_queries! (and the module name as well?).

As discussed on IRC with @eddyb and @nikomatsakis.

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