Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo nm output includes compiler messages #111

Open
spookyvision opened this issue Nov 23, 2021 · 1 comment
Open

cargo nm output includes compiler messages #111

spookyvision opened this issue Nov 23, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@spookyvision
Copy link

spookyvision commented Nov 23, 2021

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
@Emilgardis Emilgardis added the bug Something isn't working label Nov 23, 2021
@Emilgardis
Copy link
Member

let output = lltool.stderr(Stdio::inherit()).output()?;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants