proc_macro::SourceFile::path()
returns a non-public type
#47077
Labels
A-macros-2.0
Area: Declarative macros 2.0 (#39412)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
This function currently returns a
syntax_pos::FileName
, which is not exported from theproc_macro
crate.A good solution may be to export a
struct FileName(syntax_pos::FileName)
object which implementsDisplay
.cc @jseyfried
The text was updated successfully, but these errors were encountered: