Skip to content

Various questions about this work #11

Closed
@kinnison

Description

@kinnison

Firstly, thank you for preparing this as an example of how to work with rustc. I am interested in potentially writing a linting tool which I'd eventually want to build against a stable compiler release -- you mention "particular nightly" in your README though - does that mean it's not possible to write such tools against a stable release?

Secondly, I was playing with the CLI and found that cargo run --example lint -- --allow lint::warn_generics asset/example_file.rs does not work. Specifically I get:

Running lint example with arguments `["target/debug/examples/lint", "--allow", "lint::warn_generics", "asset/example_file.rs"]`
error[E0602]: unknown lint tool: `lint`
  |
  = note: requested on the command line with `-A lint::warn_generics`

Is this a failing in rustc or in your rustc_tools wrapper?

Finally, what is your intention regarding this work; is it meant to be a curiosity / example; or do you intend to keep developing it to make writing things like lints and other static analysis tools easier for third parties?

Thanks again,
D.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions