Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Produce clone of input tokenstream if contains no paste #86

Merged
merged 3 commits into from Aug 31, 2022
Merged

Commits on Aug 31, 2022

  1. Add regression test for issue 85

        error[E0507]: cannot move out of a shared reference
           --> tests/test_expr.rs:269:5
            |
        269 |     clone!(&A).consume_self();
            |     ^^^^^^^^^^^--------------
            |     |          |
            |     |          value moved due to this method call
            |     move occurs because value has type `A`, which does not implement the `Copy` trait
            |
        note: this function takes ownership of the receiver `self`, which moves value
           --> tests/test_expr.rs:266:25
            |
        266 |         fn consume_self(self) {}
            |                         ^^^^
    dtolnay committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    772996f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    19e73a0 View commit details
    Browse the repository at this point in the history
  3. Avoid unused_self clippy pedantic lint in test

        error: unused `self` argument
           --> tests/test_expr.rs:266:25
            |
        266 |         fn consume_self(self) {}
            |                         ^^^^
            |
            = note: `-D clippy::unused-self` implied by `-D clippy::pedantic`
            = help: consider refactoring to a associated function
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_self
    dtolnay committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    25960a4 View commit details
    Browse the repository at this point in the history