Skip to content

rustc, rustdoc: give nicer feedback when no arguments are given #1394

Closed
@kud1ing

Description

@kud1ing

A "how to use" information instead of the "upcall fail" messages would be nice:

$ rustc
error: No input filename given.
rust: upcall fail 'explicit failure', ../src/comp/driver/driver.rs:570
rust: domain main @0x10202aa00 root task failed

$ rustdoc
rust: upcall fail 'bounds check', ../src/rustdoc/rustdoc.rs:186
rust: domain main @0x10202aa00 root task failed

"cargo"'s feedback is quite good:

$ cargo
Usage: cargo <verb> [args...]
  init                                 Fetch default sources
  install [source/]package-name        Install by name
  install uuid:[source/]package-uuid   Install by uuid
  list [source]                        List packages
  search <name | '*'> [tags...]        Search packages
  sync                                 Sync all sources
  usage                                This

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-driverArea: rustc_driver that ties everything together into the `rustc` compilerC-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions