Code
//@ compile-flags: --crate-name=my-crate
//~? ERROR invalid character '-' in crate name
fn main() {}
Current output
error: invalid character '-' in crate name: `my-crate`
Desired output
error: invalid character '-' in crate name: `my-crate`
|
= note: crate names must be a valid Rust identifier, so they can't have a `-` in them
= help: you might have meant to use `--crate-name=my_crate`
Rationale and extra context
We already check for this in the parser, we should also account for it in the CLI.
Other cases
Rust Version
Anything else?
No response
Code
Current output
Desired output
Rationale and extra context
We already check for this in the parser, we should also account for it in the CLI.
Other cases
Rust Version
Anything else?
No response