David Tolnay
f73d579b5a
Skip traversing into const generic path arg in precedence test
2022-03-13 21:14:08 -07:00
David Tolnay
aaf9155477
Merge pull request #1137 from dtolnay/up
...
Update test suite to nightly-2022-03-14
2022-03-13 21:14:02 -07:00
David Tolnay
a9330e46b8
Categorize new round of rust repo source file failures
2022-03-13 20:44:35 -07:00
David Tolnay
b7c0842a14
Update test suite to nightly-2022-03-14
2022-03-13 20:31:16 -07:00
David Tolnay
b49e9a30f8
Update test suite to nightly-2022-03-07
2022-03-06 20:44:30 -08:00
David Tolnay
28fe8d7f2f
Update test suite to nightly-2022-02-26
2022-02-28 14:56:07 -08:00
David Tolnay
7ff292d5ac
Release 1.0.86
2022-01-19 17:01:06 -08:00
David Tolnay
088592065c
Merge pull request #1128 from dtolnay/letchain
...
Add support for let chains
2022-01-19 17:00:35 -08:00
David Tolnay
dd82fff62e
Reduce predence of rhs of let-expr
2022-01-19 16:53:45 -08:00
David Tolnay
24684570ce
Merge pull request #1127 from dtolnay/staticasync
...
Fix static async closure keyword order
2022-01-19 16:53:36 -08:00
David Tolnay
5aeec41f38
Update generated code for ExprClosure field order
2022-01-19 16:46:06 -08:00
David Tolnay
fc0c37082e
Fix static async closure keyword order
2022-01-19 16:40:08 -08:00
David Tolnay
6a8bf28a3f
Merge pull request #1126 from dtolnay/tests
...
Advance test suite past the let-chains PR
2022-01-19 16:39:51 -08:00
David Tolnay
2d96ccd74d
Categorize most recent group of upstream's tests
2022-01-19 16:30:54 -08:00
David Tolnay
cb8d9c45a4
Advance test suite past the let-chains PR
2022-01-19 16:08:09 -08:00
David Tolnay
089e3c96c3
Update ui test suite to nightly-2022-01-19
2022-01-18 18:44:06 -08:00
David Tolnay
3f37a953c0
Add eq constraints on associated constants
2022-01-18 18:43:06 -08:00
David Tolnay
cb7b6eb6d4
Exclude test suite's generated code from rustfmt
2022-01-17 18:25:27 -08:00
David Tolnay
6ac8f4d0d6
Update test suite to nightly-2022-01-18
2022-01-17 18:23:26 -08:00
David Tolnay
ad62c946e7
Disable buggy iter_not_returning_iterator lint
...
https://github.com/rust-lang/rust-clippy/issues/8285
error: this method is named `iter` but its return type does not implement `Iterator`
--> src/data.rs:79:5
|
79 | pub fn iter(&self) -> punctuated::Iter<Field> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::iter-not-returning-iterator` implied by `-D clippy::pedantic`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_not_returning_iterator
error: this method is named `iter_mut` but its return type does not implement `Iterator`
--> src/data.rs:90:5
|
90 | pub fn iter_mut(&mut self) -> punctuated::IterMut<Field> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_not_returning_iterator
error: this method is named `iter` but its return type does not implement `Iterator`
--> src/punctuated.rs:105:5
|
105 | pub fn iter(&self) -> Iter<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_not_returning_iterator
error: this method is named `iter_mut` but its return type does not implement `Iterator`
--> src/punctuated.rs:116:5
|
116 | pub fn iter_mut(&mut self) -> IterMut<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_not_returning_iterator
2022-01-14 18:53:54 -08:00
David Tolnay
158288cbd8
Merge pull request #1121 from dtolnay/prettyplease
...
Replace rustfmt with prettyplease crate
2022-01-12 10:37:28 -08:00
David Tolnay
c889ea58a3
Regenerate src/gen using prettyplease
2022-01-12 10:01:36 -08:00
David Tolnay
76a4d857d7
Replace rustfmt with prettyplease crate
2022-01-12 10:01:19 -08:00
David Tolnay
7ab5312db6
Update rustfmt for generated code to 1.4.38
2022-01-12 10:00:02 -08:00
David Tolnay
7fe4cbf858
Emit imports in rustfmt's preferred order
2022-01-11 13:35:29 -08:00
David Tolnay
f6a73463a6
Disable reorder_imports in code generator
2022-01-11 13:28:46 -08:00
David Tolnay
efa6eebe15
Eliminate unneeded closure braces from fold impl
2022-01-10 23:36:52 -08:00
David Tolnay
b9c9e8a82b
Release 1.0.85
2022-01-05 21:07:04 -08:00
David Tolnay
87f0338a7d
Merge pull request #1119 from dtolnay/token
...
Expose original token reprsentation of syn::Lit
2022-01-05 21:05:58 -08:00
David Tolnay
cfc2f67f72
Expose original token reprsentation of syn::Lit
2022-01-05 20:49:33 -08:00
David Tolnay
216c98de3f
Update test suite to nightly-2022-01-06
2022-01-05 19:35:01 -08:00
David Tolnay
a0b0fdf81c
Fix unused import when parsing disabled
...
warning: unused import: `proc_macro2::TokenTree`
--> src/lit.rs:10:5
|
10 | use proc_macro2::TokenTree;
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
2021-12-31 22:21:20 -08:00
David Tolnay
b45f2da158
Detect warnings in CI
2021-12-31 22:11:56 -08:00
David Tolnay
c8029ac7fd
Run nightly-only test suite on dev builds of rustc too
2021-12-29 15:26:57 -08:00
David Tolnay
31250c202c
Fix typo in documentation of Cursor::punct
...
"An Punct" here is left over from when Punct used to be named "an Op".
a74a1c89fd
2021-12-25 19:57:20 -08:00
David Tolnay
8e59a551c5
Consistently use Self in return type of constructors
2021-12-25 19:51:29 -08:00
David Tolnay
bb0e6897e5
Clarify new vs new2 in TokenBuffer documentation
2021-12-25 19:46:11 -08:00
David Tolnay
977d4cfc89
Use into_compile_error in the unwrap_or_else in Error docs
2021-12-25 19:44:06 -08:00
David Tolnay
277b55ff3e
Release 1.0.84
2021-12-25 19:15:39 -08:00
David Tolnay
002a247c19
Merge pull request #1114 from dtolnay/punctuatedlink
...
Rely on rustdoc to resolve Punctuated<T, P> to an intra doc link
2021-12-25 19:14:53 -08:00
David Tolnay
31c0ba61db
Merge pull request #1113 from dtolnay/parsequotespanned
...
Add parse_quote_spanned macro = parse_quote + quote_spanned
2021-12-25 19:08:23 -08:00
David Tolnay
008cb1704b
Rely on rustdoc to resolve Punctuated<T, P> to an intra doc link
2021-12-25 19:05:47 -08:00
David Tolnay
ce69299330
Add parse_quote_spanned macro = parse_quote + quote_spanned
2021-12-25 18:59:38 -08:00
David Tolnay
c39aa78b8f
Change test suite atomic from SeqCst to Relaxed
...
These atomics are not synchronizing anything outside of their own value,
so we don't need the Acquire/Release guarantee that all memory
operations prior to the store are visible after the subsequent load, nor
the SeqCst guarantee of all threads seeing all of the sequentially
consistent operations in the same order.
2021-12-23 11:08:41 -08:00
David Tolnay
27ee511721
Release 1.0.83
2021-12-22 16:21:55 -08:00
David Tolnay
47e1bc3c03
Merge pull request #1110 from dtolnay/attrletelse
...
Preserve attributes on let-else stmt
2021-12-22 16:11:21 -08:00
David Tolnay
8d24d27756
Preserve attributes on let-else stmt
2021-12-22 16:03:28 -08:00
David Tolnay
b5834ab6a2
Update test suite to nightly-2021-12-22
2021-12-22 16:01:59 -08:00
David Tolnay
04fdba9b8b
Merge pull request #1109 from dtolnay/implqself
...
Fix parsing trait impl with qself in trait type
2021-12-22 15:41:50 -08:00
David Tolnay
548d2d98b9
Ignore let_underscore_drop clippy pedantic lint in test suite
...
error: non-binding `let` on a type that implements `Drop`
--> tests/regression/issue1108.rs:4:5
|
4 | let _ = syn::parse_file(data);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::let-underscore-drop` implied by `-D clippy::pedantic`
= help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_drop
2021-12-22 15:32:03 -08:00