Skip to content

-Zhuman-readable-cgu-names generates filenames that exceed the character limit on windows #141547

@Diggsey

Description

@Diggsey

I ran into this error while trying to determine which crates were contributing to bloated rlib sizes:

error: could not write output to D:\Projects\platformed\rust\target\debug\deps\platformed.http.f916976a8c6a0cf4-in-platformed.f916976a8c6a0cf4-response.volatile--tracing_subscriber.f916976a8c6a0cf4-in-platformed.f916976a8c6a0cf4-registry-sharded--tracing_subscriber.f916976a8c6a0cf4-in-platformed.f916976a8c6a0cf4-registry-stack.0bt72is.rcgu.o: invalid argument

The filename is conspicuously just over 255/260 characters long which are limits on windows for filenames.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationC-bugCategory: This is a bug.O-windowsOperating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions