Skip to content

Conversation

@Mark-Simulacrum
Copy link
Member

We used to print a wall of text especially in larger projects like the
compiler, now we print a much smaller message. It's not generally useful
to know the full compiler command anyway.

Not completely sure this is the best place to have this, but seems to work in local testing.

@rust-highfive
Copy link

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be nicer to keep using ExitStatus here, rather than a raw i32.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAICT there's no way to construct one

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦‍♂️ sorry

@dwijnand
Copy link
Contributor

Thinking along the lines of @alexcrichton's comment in #5683 (the arch-rival to this PR), perhaps rather than do an exit code conditional thing the verbose output could be gated on -v (or -vv).

@Mark-Simulacrum
Copy link
Member Author

That does sound like a mostly better idea -- I'll update this PR (and fix tests) soon.

We used to print a wall of text especially in larger projects like the
compiler, now we print a much smaller message. It's not generally useful
to know the full compiler command anyway.
@Mark-Simulacrum Mark-Simulacrum force-pushed the short-output-normal-error branch from 993d0b5 to 91dd8df Compare July 31, 2018 17:30
@alexcrichton
Copy link
Member

Hm the intention for Cargo has always been that if -v is passed we print the full rustc command line, and then in practice it ends up being passed very rarely. Something is different about rustbuild though (I forget how) where something is on by default to display more verbose errors. I'd prefer to solve that for rustbuild and keep the current interface of -v means "print the full command line"

@Mark-Simulacrum
Copy link
Member Author

Hm yes looks like this is actually a rustbuild bug. I'll look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants