Skip to content

proc_macro::SourceFile::path() returns a non-public type #47077

Closed
@mystor

Description

@mystor

This function currently returns a syntax_pos::FileName, which is not exported from the proc_macro crate.

A good solution may be to export a struct FileName(syntax_pos::FileName) object which implements Display.

cc @jseyfried

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-decl-macros-2-0Area: Declarative macros 2.0 (#39412)C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions