Skip to content

wrap llvm messages #65003

@matthiaskrgr

Description

@matthiaskrgr

When using -Cpasses=lint, llvm prints its messages directly into stderr

   Compiling smallvec v0.6.10
   Compiling syn v1.0.5
Unusual: unreachable immediately preceded by instruction without side effects
  unreachable, !dbg !113
Unusual: unreachable immediately preceded by instruction without side effects
  unreachable, !dbg !113
Unusual: unreachable immediately preceded by instruction without side effects
  unreachable, !dbg !113
   Compiling bitflags v1.2.0

I wonder if we could wrap them so that it is easier to figure out that they are coming from llvm when parsing cargo/rustc output.

LLVM lint-pass: Unusual: unreachable...

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-diagnosticsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.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