Skip to content

cargo nm output includes compiler messages #111

Open
@spookyvision

Description

@spookyvision

expected: I only get nm output when redirecting/piping cargo nm standard output
actual: rustc/cargo output is included as well:

❯ cargo nm | head -11
    Finished dev [unoptimized + debuginfo] target(s) in 0.00s
warning: unused variable: `unused`
  --> src/main.rs:17:9
   |
17 |     let unused = 4;
   |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_unused`
   |
   = note: `#[warn(unused_variables)]` on by default

warning: 1 warning emitted

0000000100031d88 s GCC_except_table0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions