-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
A-CLIArea: Command-line interface (CLI) to the compilerArea: Command-line interface (CLI) to the compilerA-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
A developer reported that --emit mir
wasn't creating a .mir
file next to their source file:
$ rustc foobar.rs --emit mir -Cdebuginfo=2 -Csymbol-mangling-version -optimize -Ccodegen-units=1
$ ls
foobar.rs ptimize
Obviously the issue is that -optimize
is treated as -o ptimize
but it would be nice if we could do something better here. -L
has a similar kind of issue in that -Link-everything-statically
is treated as -L ink-everything-statically
but that one we could probe and issue a warning if the specified path doesn't exist.
One possibility might be to start issuing a warning (but never an error) if -o
is specified without a space between the argument and the filename.
jieyouxu, workingjubilee, Noratrieb, Kobzol and ChrisDenton
Metadata
Metadata
Assignees
Labels
A-CLIArea: Command-line interface (CLI) to the compilerArea: Command-line interface (CLI) to the compilerA-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.