Skip to content

Apply assure and forward directly to expressions #37

Description

@ErichDonGubler

Rust 1.45 lifts the restriction that proc-macros cannot be invoked in expression and statement position, which is the restriction referred to as the reason for needing a #[pre] macro on items using #[assure(...)] in the latest (0.2.0) crate docs:

Doing this is currently necessary, because the current (1.44.1) stable rust compiler does not support attribute macros being applied to statements or expressions directly.

What are plans for this crate now that this restriction has been lifted? Is any help needed to, say, lift the constraint that #[pre] needs to be applied to items?

The premise of the question is invalid, but @aticu has left this issue open and renamed it appropriately.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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