warn_on_confusing_output_filename_flag in rustc_driver_impl - Rust
Description: Warn if `-o` is used without a space between the flag name and the value and the value is a high-value confusables, e.g. `-optimize` instead of `-o optimize`, see issue #142812.

Skip to main content

## warn_on_confusing_output_filename_flag

# Function warn_on_confusing_output_filename_flag

Source

    pub(crate) fn warn_on_confusing_output_filename_flag(
        early_dcx: &EarlyDiagCtxt,
        matches: &Matches,
        args: &[String],
    )

Expand description

Warn if `-o` is used without a space between the flag name and the value and the value is a high-value confusables, e.g. `-optimize` instead of `-o optimize`, see issue #142812.