Skip to content

[rustc] Tolerate spaces and blanks inside @response files #116068

Open
@fangism

Description

@fangism

We have build tooling that generates rust command-line arguments inside response files, passed like rustc @args.rsp.
In some cases, the tool emits response files with empty lines, or lines that contain only a single space.

Case (second line is a single space):

foo.rs
 

diagnostic:

error: multiple input filenames provided (first two filenames are `foo.rs` and ` `)

Case (second line is blank):

foo.rs

diagnostic:

error: multiple input filenames provided (first two filenames are `foo.rs` and ``)

Could the rustc compiler be updated to ignore space-only and blank lines in response files?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-CLIArea: Command-line interface (CLI) to the compilerC-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-compilerRelevant to the compiler 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