Skip to content

Support setting Miri flags in the rustc file via attributes #3670

Open
@RalfJung

Description

@RalfJung

It could be quite useful to support a crate-level attribute on binary crates like #[miri::flag("-Zmiri-disable-leak-check")]. That would help both on the playground and for doctests, to control the flags the file is run with.

Not sure how to best implement that though, and it may be considered an abomination by the compiler team. ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-interpreterArea: affects the core interpreterC-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancementC-proposalCategory: a proposal for something we might want to do, or maybe not; details still being worked out

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions