You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While playing around with rustdoc, trying to find some things out, most errors are not consistent, especially with the new error formatting. Also, since passes are well-defined, listing them can help, especially in an offline scenario.
A small example: (The last one has colours, per the new error format I presume)
$ rustdoc
expected an input file to act on
$ rustdoc --passes
Argument to option 'passes' missing.
$ rustdoc --passes foo src/bar.rs
ERROR:rustdoc: unknown pass foo, skipping
$ rustdoc --passes foo src/non-existing
error: couldn't read "src/bad.rs": No such file or directory (os error 2)
The text was updated successfully, but these errors were encountered:
…GuillaumeGomez
feat(rustdoc): harmonise error messages
Based on unix tools wording, it follows a standard format: `program_name: context: error message`, potentially prompting the user to use the `--help` option.
This is clearly meant to trigger some discussion on #38084, as messages still use `stdout` and `stderr` somewhat arbitrarily, and there are a few `error!()` calls as well.
Uh oh!
There was an error while loading. Please reload this page.
While playing around with
rustdoc
, trying to find some things out, most errors are not consistent, especially with the new error formatting. Also, since passes are well-defined, listing them can help, especially in an offline scenario.A small example: (The last one has colours, per the new error format I presume)
The text was updated successfully, but these errors were encountered: