David Tolnay
53109e88a8
Recognize underscore token to avoid slow path
2021-12-26 22:32:37 -08:00
David Tolnay
21f1da1a37
Add test of underscore token
2021-12-26 22:31:02 -08:00
David Tolnay
6e6bf56929
Distinguish boolean literals more precisely
...
This avoids taking the slow path for things like `0usize` or `0x7e`.
2021-12-26 22:23:28 -08:00
David Tolnay
f7768f4646
Merge pull request #197 from dtolnay/pushliteral
...
Skip reparse on construction of Literal token
2021-12-26 20:56:30 -08:00
David Tolnay
a2038bafb6
Skip reparse on construction of Literal token
2021-12-26 20:53:29 -08:00
David Tolnay
68bf5916a0
Merge pull request #196 from dtolnay/boolliteral
...
Fix boolean as $literal
2021-12-26 20:31:41 -08:00
David Tolnay
7b824dd956
Fix boolean as $literal
2021-12-26 20:28:13 -08:00
David Tolnay
da9f24add0
Add test of boolean as a $literal
2021-12-26 20:27:52 -08:00
David Tolnay
445781ee6a
Fix push_literal expect message
2021-12-26 20:27:41 -08:00
David Tolnay
1700b1cae8
Merge pull request #195 from dtolnay/literal
...
Optimize literal tokens
2021-12-26 20:18:29 -08:00
David Tolnay
3e2b7edd7f
Optimize literal tokens
2021-12-26 19:58:47 -08:00
David Tolnay
20297968d2
Merge pull request #194 from dtolnay/lifetime
...
Optimize lifetime tokens
2021-12-26 19:58:36 -08:00
David Tolnay
02199874ef
Optimize lifetime tokens
2021-12-26 19:39:00 -08:00
David Tolnay
8f0d3c19eb
Add an example output in benchmark readme
2021-12-26 14:14:55 -08:00
David Tolnay
7cf0d46f6d
Merge pull request #192 from dtolnay/bench
...
Include a non-default span in proc macro benchmark
2021-12-26 13:59:32 -08:00
David Tolnay
862079205c
Include a non-default span in proc macro benchmark
2021-12-26 13:48:05 -08:00
David Tolnay
281db91762
Merge pull request #191 from dtolnay/bench
...
Adapt benchmark to run in both macro and non-macro context
2021-12-26 13:47:45 -08:00
David Tolnay
9a85a5a40b
Adapt benchmark to run in both macro and non-macro context
2021-12-26 13:22:02 -08:00
David Tolnay
7e423924cc
Run clippy on benches as well
2021-12-12 14:00:56 -08:00
David Tolnay
cc52ecd6a5
Update ui test suite to nightly-2021-11-22
2021-11-21 18:47:47 -08:00
David Tolnay
3ef90b3b27
Install newest build of cargo-outdated
...
The old version available by default in the GitHub Actions image fails
with:
thread 'main' panicked at 'package cache lock is not currently held, Cargo forgot to call `acquire_package_cache_lock` before we got to this stack frame', /usr/share/rust/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-0.57.0/src/cargo/util/config/mod.rs:1542:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2021-11-17 13:32:20 -08:00
David Tolnay
dbefd818d6
Update ui test suite to nightly-2021-10-27
2021-10-26 19:23:59 -07:00
David Tolnay
119f97d03a
Update ui tests to most recent trybuild normalization
2021-10-26 13:00:54 -07:00
David Tolnay
0e1e351a61
Avoid distracting extra error message in wrong-type-span test case
2021-10-25 19:25:02 -07:00
David Tolnay
711a570bf1
Update ui test suite to nightly-2021-10-26
2021-10-25 19:24:25 -07:00
David Tolnay
b84fcf009b
Update ui test suite to nightly-2021-10-17
2021-10-16 19:19:42 -07:00
David Tolnay
7a9efb0a28
Ui test changes for trybuild 1.0.49
2021-10-08 02:53:14 -04:00
David Tolnay
4ad54733bf
Add actions job to notice outdated dependencies
2021-10-08 01:47:06 -04:00
David Tolnay
7b25769bcc
Update ui test files
2021-10-07 00:31:33 -04:00
David Tolnay
da8a42c3f8
Update ui test suite to nightly-2021-10-07
2021-10-07 00:28:38 -04:00
David Tolnay
f1df6c7416
Release 1.0.10
2021-10-04 23:38:46 -04:00
David Tolnay
264221ecb5
Work around clippy semicolon_if_nothing_returned regression
...
https://github.com/rust-lang/rust-clippy/issues/7768
2021-10-04 23:36:07 -04:00
David Tolnay
9e1b974802
Declare minimum Rust version in Cargo metadata
2021-10-02 01:56:35 -04:00
David Tolnay
32431f6630
Update test suite to tool attrs
2021-09-30 01:44:10 -04:00
David Tolnay
6c4aba5a45
Run clippy on test suite too
2021-09-30 01:43:30 -04:00
David Tolnay
dcbfb23ca1
Skip clippy job on pull requests
2021-09-18 16:50:36 -07:00
David Tolnay
5a1d627c43
Update test suite to nightly-2021-09-18
2021-09-17 20:21:57 -07:00
David Tolnay
cbe5dedaeb
Update ui test suite to nightly-2021-07-20
2021-07-19 19:20:49 -07:00
David Tolnay
ef86ae7677
Include benches and ui stderr files in published crate
2021-05-24 20:06:49 -07:00
David Tolnay
4e689243ee
Update ui test suite to nightly-2021-05-14
2021-05-14 00:30:02 -07:00
David Tolnay
7d5d36017b
Merge pull request #181 from dtolnay/array
...
Delete fixed sized array repetition impls
2021-04-02 00:32:01 -04:00
David Tolnay
58bc466f0d
Delete fixed sized array repetition impls
2021-04-02 00:23:27 -04:00
David Tolnay
3dfd33a2a7
Test arrays containing non-Copy element too
2021-04-02 00:23:08 -04:00
David Tolnay
18c09dfbba
Add test of big array repetition
2021-04-02 00:23:01 -04:00
David Tolnay
b4b1087d5c
Merge pull request #180 from dtolnay/fmt
...
Format macro rules in consistent style
2021-04-01 19:44:37 -04:00
David Tolnay
8788e2799f
Format macro rules in consistent style
2021-04-01 18:20:16 -04:00
David Tolnay
4210276da5
Suppress false positive wrong_self_convention clippy lint
...
https://github.com/rust-lang/rust-clippy/issues/6983
warning: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value
--> src/to_tokens.rs:80:18
|
80 | fn to_tokens(&self, tokens: &mut TokenStream) {
| ^^^^^
|
= note: `#[warn(clippy::wrong_self_convention)]` on by default
= help: consider choosing a less ambiguous name
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
2021-03-26 23:00:23 -04:00
David Tolnay
68ebadbc1b
Release 1.0.9
2021-02-11 22:49:45 -08:00
David Tolnay
0de9cd535f
Revert "Adds an unsafe_code linting rule"
...
This reverts commit 6d65b99550
.
2021-02-11 22:48:20 -08:00
David Tolnay
0669697918
Ignore new missing_panics_doc pedantic clippy lint
2021-02-03 20:13:58 -08:00