Skip to content

Allow compiler plugins to be loaded from the command line #15446

Closed
@huonw

Description

@huonw

Currently the only way to load plugins is by having #[phase(plugin)] extern crate foo; in the source, but one can easily have plugins (lints etc.) that make sense to only load occasionally or that make sense to load into external crates in an automated fashion, where editing the source is hard (E.g. my spellck lint).

This could be something like -Z plugin=spellck -Z plugin=grammarck etc. (-Z since presumably this will be unstable.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-pluginsArea: compiler plugins, doc.rust-lang.org/nightly/unstable-book/language-features/plugin.htmlC-enhancementCategory: An issue proposing an enhancement or a PR with one.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