Skip to content

called Result::unwrap() on an Err value: failed while formatting fluent string codegen_ssa_unable_to_run_dsymutil #124392

Closed
@glandium

Description

@glandium

When building a binary for mac and dsymutil is not in $PATH for whatever reason, this is the message that appears, followed by a backtrace, instead of the intended error:

thread 'rustc' panicked at compiler/rustc_errors/src/emitter.rs:1289:80:
called `Result::unwrap()` on an `Err` value: failed while formatting fluent string `codegen_ssa_unable_to_run_dsymutil`: 
the attribute `note` was missing
help: add `.note = <message>`

Indeed there is no note in the fluent file.

codegen_ssa_unable_to_run_dsymutil = unable to run `dsymutil`: {$error}

while one is expected from the error declaration.

#[derive(Diagnostic)]
#[diag(codegen_ssa_unable_to_run_dsymutil)]
#[note]

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️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