Skip to content

#[pin_project] panics with internal error: entered unreachable code when used inside a MBE with vis #312

@WaffleLapkin

Description

@WaffleLapkin

On latest nightly (1.51.0-nightly (2021-01-14 e38fb306b7f5e65cca34)) started panicing with internal error: entered unreachable code message.

MRE:

#[macro_use]
macro_rules! req_future {
    ($v:vis) => {
        #[pin_project::pin_project]
        $v struct Send
        {
            #[pin]
            inner: ()
        }
    };
}

req_future! { pub }

(play)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-upstream-bugCategory: This is a bug of compiler or dependencies (the fix may require action in the upstream)requires-nightlyThis issue requires a nightly compiler in some way

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions