Skip to content

Automatic ping when certain patterns occur in the diff? #1851

@RalfJung

Description

@RalfJung

The #[rustc_allow_const_fn_unstable] attribute should only be added with wg-const-eval approval. However, it hard to ensure that all reviewers know about this, and it is easy for a reviewer to miss this even if they are generally aware of this policy.

So could we get some bot help for that? If a PR adds new occurrences of this attribute, can we get an automatic ping from rustbot? Ideally, PRs removing the attribute wouldn't trigger the ping. So only lines with a + in the diff should be considered. Also, it might be worth restricting this to the part of the diff that is inside the library/ folder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions