Skip to content

regression: cannot find type SourceFile in crate proc_macro #142428

Closed as not planned
@BoxyUwU

Description

@BoxyUwU
[INFO] [stdout] error[E0412]: cannot find type `SourceFile` in crate `proc_macro`
[INFO] [stdout]    --> src/wrapper.rs:366:26
[INFO] [stdout]     |
[INFO] [stdout] 366 |     Compiler(proc_macro::SourceFile),
[INFO] [stdout]     |                          ^^^^^^^^^^ not found in `proc_macro`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout] 1   + use crate::SourceFile;
[INFO] [stdout]     |
[INFO] [stdout] 1   + use crate::fallback::SourceFile;
[INFO] [stdout]     |
[INFO] [stdout] help: if you import `SourceFile`, refer to it directly
[INFO] [stdout]     |
[INFO] [stdout] 366 -     Compiler(proc_macro::SourceFile),
[INFO] [stdout] 366 +     Compiler(SourceFile),
[INFO] [stdout]     |

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions