徐未来
76b407eb79
syn 1.0.107升级至2.0.48
...
Signed-off-by: 徐未来 <xuweilai2@huawei.com>
2024-04-02 16:51:27 +08:00
openharmony_ci
e4c68997d9
回退 'Pull Request !6 : syn 1.0.107升级至2.0.48'
2024-04-02 03:27:54 +00:00
徐未来
20f0300a69
syn 1.0.107升级至2.0.48
...
Signed-off-by: 徐未来 <xuweilai2@huawei.com>
2024-04-01 20:47:12 +08:00
openharmony_ci
cf68197ecf
回退 'Pull Request !4 : syn 1.0.107升级至2.0.48'
2024-04-01 12:11:54 +00:00
徐未来
f138b90acb
syn 1.0.107升级至2.0.48
...
Signed-off-by: 徐未来 <xuweilai2@huawei.com>
2024-03-08 17:26:00 +08:00
David Tolnay
c6ce512015
Switch non exhaustive syntax tree enums to use #[non_exhaustive]
...
This follows through on the comments on the __TestExhaustive variants
promising that their purpose will be substituted with a deny(reachable)
rustc lint once one is available.
That lint is now landing as non_exhaustive_omitted_patterns in Rust 1.57.
The correct way to use it for checking exhaustivity of a match is:
match expr {
Expr::Array(e) => {...}
Expr::Assign(e) => {...}
...
Expr::Yield(e) => {...}
#[cfg_attr(test, deny(non_exhaustive_omitted_patterns))]
_ => { /* some sane fallback */ }
}
2022-03-27 14:19:01 -07: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
d9a9ff4398
Bypass negative literal workaround on 1.56+
2021-10-26 11:14:06 -07:00
David Tolnay
f2b69c4c0a
Make Punctuated::new const fn on rustc 1.39+
2021-01-01 00:27:06 -08:00
David Tolnay
50c975270b
Condense build script further
2020-04-08 12:42:22 -07:00
David Tolnay
ea82ed3bd6
Condense build script using question mark
2020-04-08 12:38:51 -07:00
David Tolnay
c7230e4c2f
Resolve redundant_field_names lint in build.rs
2020-01-01 11:08:27 -08:00
David Tolnay
015b523650
Work around await in macro_rules bug
2019-07-28 13:37:22 -07:00
David Tolnay
91b211fe1c
Remove parsing of rustc minor version
2019-07-27 23:21:48 -07:00
David Tolnay
2b84ae6509
Remove syn_can_call_macro_by_path cfg
2019-07-27 23:18:41 -07:00
David Tolnay
155c2c6c47
Remove syn_can_match_ident_after_attrs cfg
2019-07-27 23:17:37 -07:00
David Tolnay
2862001be0
Remove syn_can_use_associated_constants cfg
2019-07-27 23:15:10 -07:00
David Tolnay
6ac22ada83
Remove syn_can_use_thread_id cfg
2019-07-27 23:11:43 -07:00
David Tolnay
e325458bb6
Remove syn_can_match_trailing_dollar cfg
2019-07-27 23:06:41 -07:00
Nika Layzell
918854c4ad
Add fallback support for older rustc versions
2019-06-29 18:00:03 -04:00
Jannis Harder
2ccec118ce
Support Token![$]
for token::Dollar
as documented
2019-06-26 10:11:18 +02:00
David Tolnay
e1da66f094
Require rustc that can support assoc consts for peek_any
2019-04-22 14:42:16 -07:00
David Tolnay
f83b6c9816
Disable nightly-only tests on non nightly compiler
2019-03-10 00:13:33 -08:00
David Tolnay
3287480975
Make parse errors implement Send and Sync
2018-11-11 09:07:21 -08:00
David Tolnay
e0ba920b90
Call the right quote from parse_quote on sufficiently new compilers
2018-10-06 20:19:14 -07:00