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

Bump quote from 0.6.13 to 1.0.4 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Mar 15, 2021

Bumps quote from 0.6.13 to 1.0.4.

Release notes

Sourced from quote's releases.

1.0.4

1.0.3

  • Avoid panic when using quote! on raw identifiers (#140)

1.0.2

  • Fix missing token if there is a star adjacent to repetition (#130)

1.0.1

  • Documentation improvements

1.0.0

This release fixes some longstanding limitations of the quote! macro, bringing quote better in line with the patterns that macro authors are used to from working with macro_rules.

Duplicate interpolations in a repetition

In past versions of quote, interpolating the same variable multiple times inside of one repeating block was not allowed.

For example if we had an iterator of local variable names and wanted the generated code to do a clone of each one, that wouldn't compile:

error[E0416]: identifier `var` is bound more than once in the same pattern
 --> src/main.rs:7:27
  |
7 |         #( let #var = #var.clone(); )*
  |                        ^^^ used in a pattern more than once

Macros usually worked around this by having the same sequence of interpolated values named two different things:

// old workaround 1
let var = input.fields.iter().map(|field| &field.ident);
let var2 = var.clone();
quote! {
#( let #var = #var2.clone(); )*
}

or by giving up on repetitions and doing more of the work within the iterator chain:

// old workaround 2
let var_clones = input
    .fields
    .iter()
</tr></table> 

... (truncated)

Commits
  • cc50e29 Release 1.0.4
  • 56ba5f0 Merge pull request #151 from dtolnay/char
  • fb6516a Allow char as a fragment in format_ident
  • 53c2e79 Fix rustc version range in readme
  • 8543760 Select a single docs.rs build target
  • e030093 Release 1.0.3
  • 4154389 Make it clearer that __rt isn't public
  • 6214797 Update ui tests to nightly-2020-03-01
  • 44f1436 Update string escaping test for proc-macro2 1.0.9
  • f6753b8 Update ui tests to nightly-2020-02-08
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Mar 15, 2021
Bumps [quote](https://github.com/dtolnay/quote) from 0.6.13 to 1.0.4.
- [Release notes](https://github.com/dtolnay/quote/releases)
- [Commits](dtolnay/quote@0.6.13...1.0.4)

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/cargo/quote-1.0.4 branch from 7758dcd to 68faf4e Compare June 14, 2021 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
0 participants