931 Commits

Author SHA1 Message Date
ljy9810 b44ec53ef1 syn升级到2.0.114版本
Signed-off-by: ljy9810 <longjianyin@h-partners.com>
2026-03-03 14:22:30 +08:00
徐未来 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 65e0e4248e Fix invalid use of insta snapshot inside a loop 2022-12-03 13:16:17 -08:00
David Tolnay 1d0902414b Update test suite to nightly-2022-12-03 2022-12-02 18:51:37 -08:00
David Tolnay 3eaa443c3a Add regression test for issue 1246
error[E0505]: cannot move out of `p` because it is borrowed
      --> tests/test_iterators.rs:56:18
       |
    54 |     for element in &p {
       |                    --
       |                    |
       |                    borrow of `p` occurs here
       |                    a temporary with access to the borrow is created here ...
    55 |         if *element == 2 {
    56 |             drop(p);
       |                  ^ move out of `p` occurs here
    ...
    59 |     }
       |     - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `syn::punctuated::Iter<'_, i32>`

    error[E0505]: cannot move out of `p` because it is borrowed
      --> tests/test_iterators.rs:64:18
       |
    62 |     for element in &mut p {
       |                    ------
       |                    |
       |                    borrow of `p` occurs here
       |                    a temporary with access to the borrow is created here ...
    63 |         if *element == 2 {
    64 |             drop(p);
       |                  ^ move out of `p` occurs here
    ...
    67 |     }
       |     - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `syn::punctuated::IterMut<'_, i32>`
2022-11-30 22:37:38 -08:00
David Tolnay 3e915e5c98 Clean up naming in rustc syntax tree manipulation 2022-11-28 19:15:42 -08:00
David Tolnay ecacc475dd Import token::Lit now there's no conflict with MetaItemLit 2022-11-28 19:11:45 -08:00
David Tolnay 2647b2a189 Update test suite to nightly-2022-11-29 2022-11-28 19:10:13 -08:00
David Tolnay f510eb0ba9 Update test suite to nightly-2022-11-25 2022-11-24 18:53:32 -08:00
David Tolnay 20087fc51c Update test suite to nightly-2022-11-24 2022-11-23 19:49:39 -08:00
David Tolnay dbc86fe1ed Suppress "emit":"dep-info" json from syn-test-suite-feature-check
Previously:

    NOTE:  use --release
      Syn's test suite has some tests that run on every source file
      and test case in the rust-lang/rust repo, which can be pretty
      slow in debug mode. Consider running cargo test with `--release`
      to speed things up.
    {"artifact":"/git/syn/target/debug/deps/syn_test_suite-695bcafef2321389.d","emit":"dep-info"}
2022-11-22 22:47:28 -08:00
David Tolnay 1e8227295e Fix renamed let_underscore_drop lint
warning: lint `clippy::let_underscore_drop` has been renamed to `let_underscore_drop`
       --> src/lib.rs:270:5
        |
    270 |     clippy::let_underscore_drop,
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `let_underscore_drop`
        |
        = note: `#[warn(renamed_and_removed_lints)]` on by default

    warning: lint `clippy::let_underscore_drop` has been renamed to `let_underscore_drop`
      --> tests/crates/main.rs:13:10
       |
    13 | #![allow(clippy::let_underscore_drop)]
       |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `let_underscore_drop`
       |
       = note: `#[warn(renamed_and_removed_lints)]` on by default

    warning: lint `clippy::let_underscore_drop` has been renamed to `let_underscore_drop`
     --> tests/features/macro/lib.rs:1:10
      |
    1 | #![allow(clippy::let_underscore_drop, clippy::toplevel_ref_arg)]
      |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `let_underscore_drop`
      |
      = note: `#[warn(renamed_and_removed_lints)]` on by default

    warning: lint `clippy::let_underscore_drop` has been renamed to `let_underscore_drop`
     --> tests/regression.rs:1:10
      |
    1 | #![allow(clippy::let_underscore_drop)]
      |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `let_underscore_drop`
      |
      = note: `#[warn(renamed_and_removed_lints)]` on by default
2022-11-22 22:38:08 -08:00
David Tolnay 754236dbe6 Update test suite to nightly-2022-11-23 2022-11-22 22:36:23 -08:00
David Tolnay 4245c41f22 Update test suite to nightly-2022-11-19 2022-11-18 22:11:00 -08:00
David Tolnay 1043106dc8 Update test suite to nightly-2022-11-18 2022-11-17 23:10:59 -08:00
David Tolnay df8b10aa64 Update test suite to nightly-2022-11-13 2022-11-12 21:32:46 -08:00
David Tolnay 4510c1b1ef Resolve needless_borrow pedantic clippy lint
error: the borrowed expression implements the required traits
       --> tests/repo/mod.rs:191:43
        |
    191 |     let response = reqwest::blocking::get(&url)?.error_for_status()?;
        |                                           ^^^^ help: change this to: `url`
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
        = note: `-D clippy::needless-borrow` implied by `-D clippy::all`
2022-10-24 21:25:53 -07:00
David Tolnay 8dd9b01c58 Touch up PR 1236 2022-10-20 13:41:59 -07:00
Christopher Durham 26a605e565 Add test for Item::Verbatim splitting a None group
(see issue #1235)
2022-10-20 15:13:52 -05:00
David Tolnay a807b16011 Update test suite to nightly-2022-10-13 2022-10-13 09:13:00 -07:00
David Tolnay 711cd8c3d4 Update test suite to nightly-2022-10-11 2022-10-10 22:11:03 -07:00
David Tolnay 3c49303bed Combine tests gitignore into single top level gitignore 2022-09-24 10:54:50 -07:00
David Tolnay 9b589ba216 Fix printing of variadic extern fn with trailing comma 2022-09-18 17:11:28 -07:00
David Tolnay 6e09f2d9eb Parse associated type on path with parenthesized generic arguments 2022-09-18 16:55:07 -07:00
David Tolnay 15c00753ec Skip traversing into const params for precedence test 2022-09-18 16:45:34 -07:00
David Tolnay e3d6e7b66c Reorder GenericArgument::Const next to Type
Now that const generics were stabilized.
2022-09-18 16:16:53 -07:00
David Tolnay f8558311c0 Preserve ordering of associated type constraints relative to types
Rustc appears to have settled on no ordering restriction beyond
lifetimes going first.
2022-09-18 16:09:58 -07:00
David Tolnay aa4fa7001a Parse 'static async' closures 2022-09-18 16:00:31 -07:00
David Tolnay 0c3ff6c8fc Parse Struct { #[attr] .. } in pattern position 2022-09-18 15:52:33 -07:00
David Tolnay c6b2e5c6eb Parse dyn* syntax 2022-09-18 15:32:08 -07:00
David Tolnay 7d6ad91dea Parse closures with explicit empty lifetime list 2022-09-18 15:20:05 -07:00
David Tolnay 125066b850 Categorize all the new parse failures 2022-09-18 14:56:59 -07:00
David Tolnay 8fddb0c508 Move rust-analyzer err tests and fuzz failures to exclude dirs 2022-09-18 14:10:05 -07:00
David Tolnay e3af9d6e6e Add currently failing rustc source files to test exclude 2022-09-18 14:04:33 -07:00
David Tolnay 57ee24b8a3 Update test suite to nightly-2022-09-18 2022-09-18 14:04:16 -07:00
David Tolnay e2ce6e43d9 Factor out a static array of directories to skip testing 2022-09-18 14:03:49 -07:00
David Tolnay 4f4a2671ff Update test suite to nightly-2022-09-15 2022-09-14 21:35:20 -07:00
David Tolnay 6e5c4fa1bb Update test suite to nightly-2022-09-14 2022-09-13 21:17:19 -07:00
David Tolnay fa1a855ea0 Update test suite to nightly-2022-09-09 2022-09-08 22:26:51 -07:00
David Tolnay 6e89df9f7d Update test suite to nightly-2022-09-07 2022-09-07 00:01:38 -07:00
David Tolnay 5e35e822b3 Update test suite to nightly-2022-09-02 2022-09-01 22:25:22 -07:00
David Tolnay 13cd0a2f6d Ignore using destructuring assignment to wildcard pattern 2022-08-31 00:35:49 -07:00
David Tolnay cf5a71099b Update test suite to nightly-2022-08-24 2022-08-24 02:14:33 -07:00
David Tolnay 6663483492 Update test suite to nightly-2022-08-23 2022-08-22 23:09:30 -07:00
David Tolnay 7694f5bb62 Update test suite to nightly-2022-08-18 2022-08-17 21:42:47 -07:00
David Tolnay 9d658e1799 Update test suite to nightly-2022-08-17 2022-08-16 21:34:32 -07:00