Skip to content

command-line help for -{W,A,D,F} is ambiguous (suggests presence of non-existent 'all' option) #28708

Closed
@froydnj

Description

@froydnj

I downloaded the rust 1.3.0 distribution; rustc -W help says, in part:

Available lint options:
    -W <foo>           Warn about <foo>
    -A <foo>           Allow <foo>
    -D <foo>           Deny <foo>
    -F <foo>           Forbid <foo> (deny, and deny all overrides)

The documentation here for -F suggests to me that -F all would be acceptable (perhaps -W all or -A all too, perhaps). But that doesn't seem to work; rustc says:

error: unknown forbid flag: all
error: aborting due to previous error

Either adding the all group or clarifying the help output around -F would be most welcome. (It's also not immediately clear what the difference between -D and -F is, especially since -D would apparently override the presence of an earlier -F...?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions