Commit Graph

382 Commits

Author SHA1 Message Date
David Tolnay
175778d968
Update tests with proc-macro2 1.0.20's formatting 2020-09-04 16:56:44 -07:00
David Tolnay
306375a5e7
Merge pull request #164 from tkondrashov/patch-1
fix small typo
2020-08-02 03:22:04 -07:00
Sasha Kondrashov
79475fc57f
Update lib.rs 2020-08-02 04:37:12 -04:00
David Tolnay
f3b0627b62
Quote in benchmark no longer requires high recursion 2020-07-16 12:07:20 -07:00
David Tolnay
9b14113369
Update ui tests to nightly-2020-07-06 2020-07-06 19:20:28 -07:00
David Tolnay
9ccd8089c2
Add a sponsors link 2020-06-09 20:53:09 -07:00
David Tolnay
9de44cd86e
Release 1.0.7 2020-06-07 11:09:12 -07:00
David Tolnay
c00eda5d49
Add quote_spanned smoke test to test suite 2020-06-07 11:07:02 -07:00
David Tolnay
2f191555c9
Add rt function for pushing group 2020-06-07 11:04:06 -07:00
David Tolnay
2ab07d2b8d
Rustfmt does not like blank lines between inner attrs 2020-06-07 11:04:06 -07:00
David Tolnay
acb1c1b3f6
Generate more concise code for empty quote 2020-06-07 10:53:57 -07:00
David Tolnay
e50913ee82
Merge pull request #159 from dtolnay/nospan
Fast path for quote with default span
2020-06-07 10:52:26 -07:00
David Tolnay
c1557b179c
Fast path for quote with default span 2020-06-07 10:34:34 -07:00
David Tolnay
2b24cb1cbf
Update test suite with proc-macro2 1.0.18 2020-05-31 19:02:23 -07:00
David Tolnay
d67d687aeb
Release 1.0.6 2020-05-17 13:13:51 -07:00
David Tolnay
d5069f4b51
Touch up PR 158 2020-05-17 13:13:12 -07:00
David Tolnay
ad3d837c25
Merge pull request #158 from randomPoison/master
Implement IdentFragment for Cow<T>
2020-05-17 13:13:04 -07:00
David LeGare
a9a8656b72 Add test for using Cow with format_ident! 2020-05-17 14:59:43 -05:00
David LeGare
cabde2adf3 Implement IdentFragment for Cow<T> 2020-05-17 14:52:20 -05:00
David Tolnay
a429f64194
Merge pull request 157 from vorner/readme-non-macro 2020-05-16 00:39:42 -07:00
Michal 'vorner' Vaner
dcee953c63
Further little alert about non-macro generation 2020-05-14 16:56:45 +02:00
David Tolnay
7c8e842521
Merge pull request #156 from dtolnay/readme
Add tip about rustfmt for non-macro code generators
2020-05-13 23:15:20 -07:00
David Tolnay
b5d92a4511
Add tip about rustfmt for non-macro code generators 2020-05-13 22:44:00 -07:00
David Tolnay
68ff242bf2
Organize readme a bit 2020-05-13 22:30:13 -07:00
David Tolnay
b4f1671357
Release 1.0.5 2020-05-12 23:02:25 -07:00
David Tolnay
3f8d354dbf
Add crosslink icons to readme and rustdoc 2020-05-12 23:01:58 -07:00
David Tolnay
0d5e151ade
Update build status badge to GitHub Actions 2020-05-06 00:11:22 -07:00
David Tolnay
a4b9b850d8
Remove Travis configuration 2020-05-05 11:31:00 -07:00
David Tolnay
eef8eeb2f7
Merge pull request #152 from dtolnay/actions
Enable GitHub Actions
2020-05-02 15:09:06 -07:00
David Tolnay
9c4b098188
Enable GitHub Actions 2020-05-02 15:02:35 -07:00
David Tolnay
382ddcf4d5
Remove CI badge from Cargo.toml
Support for badges has been deprecated by crates.io.
2020-05-01 21:04:36 -07:00
David Tolnay
cc50e29dad
Release 1.0.4 2020-04-30 12:17:12 -07:00
David Tolnay
56ba5f02b2
Merge pull request #151 from dtolnay/char
Allow char as a fragment in format_ident
2020-04-30 12:16:09 -07:00
David Tolnay
fb6516a01c
Allow char as a fragment in format_ident 2020-04-30 12:02:11 -07:00
David Tolnay
53c2e79ddc
Fix rustc version range in readme 2020-03-19 23:14:47 -07:00
David Tolnay
854376073f
Select a single docs.rs build target 2020-03-17 13:26:24 -07:00
David Tolnay
e0300930fa
Release 1.0.3 2020-03-04 15:58:06 -08:00
David Tolnay
41543890aa
Make it clearer that __rt isn't public
This was doc(hidden) and commented "Not public API" but occasionally
people still decide they should refer to it.
2020-03-04 15:52:55 -08:00
David Tolnay
62147970ca
Update ui tests to nightly-2020-03-01 2020-02-29 20:46:57 -08:00
David Tolnay
44f14361e5
Update string escaping test for proc-macro2 1.0.9 2020-02-24 20:07:48 -08:00
David Tolnay
f6753b8caa
Update ui tests to nightly-2020-02-08 2020-02-07 18:30:03 -08:00
David Tolnay
bf6f5f6c44
Merge pull request #141 from chills42/master
Adds an unsafe_code linting rule
2020-01-15 12:29:46 -08:00
Craig Hills
6d65b99550 Adds an unsafe_code linting rule
This marks the use of unsafe code within the library as an error.
2020-01-15 11:10:03 -05:00
David Tolnay
0791596df6
Update ui tests to nightly-2020-01-11 2020-01-10 22:00:31 -08:00
David Tolnay
0cee3d2bbf
Opt in to experimental trybuild diffs 2019-12-25 17:40:28 -05:00
David Tolnay
2a803f7299
Merge pull request #140 from mystor/quote_raw_id
Avoid panic when using quote! on raw identifiers
2019-12-22 23:54:53 -05:00
Nika Layzell
8daa9a825d Avoid panic when using quote! on raw identifiers
The `quote!` optimization added in 8d155b02f4
calls `Ident::new`, which does not handle identifiers containing the `r#` raw
prefix, panicing if they are passed in.

As `Ident::new_raw` is not stable, raw identifiers are parsed using the existing
`parse` codepath, with only non-raw identifiers being passed to `Ident::new`.
This mimics the logic from the `mk_ident` method created for `format_ident!`,
with some small optimizations due to relaxed requirements.

The previous `is_ident` optimization within `__rt::parse` has also been removed,
as it is now redundant.
2019-12-22 23:39:03 -05:00
David Tolnay
5c55eb7a8c
Remove unneeded explicit lifetimes from IdentFragment impls 2019-11-30 15:47:36 -08:00
David Tolnay
1d90e23716
Update ui tests to nightly-2019-11-25 2019-11-24 17:55:18 -08:00
David Tolnay
d760e4f200
Update ui tests to nightly-2019-11-22 2019-11-21 22:51:08 -08:00