Commit Graph

100 Commits

Author SHA1 Message Date
徐未来
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
13cd0a2f6d
Ignore using destructuring assignment to wildcard pattern 2022-08-31 00:35:49 -07:00
David Tolnay
c592781b4f
Format examples with rustfmt 1.5.0 2022-06-18 17:33:21 -07:00
David Tolnay
1f8dff24a0
Update outdated deps in all the examples
dump-syntax
    ================
    Name     Project  Compat  Latest  Kind    Platform
    ----     -------  ------  ------  ----    --------
    colored  1.9.3    ---     2.0.0   Normal  ---

    lazy-static-example
    ================
    Name          Project  Compat  Latest   Kind    Platform
    ----          -------  ------  ------   ----    --------
    aho-corasick  0.6.10   ---     0.7.18   Normal  ---
    lazy_static   1.4.0    ---     Removed  Normal  ---
    regex         0.2.11   ---     1.5.6    Normal  ---
    regex-syntax  0.5.6    ---     0.6.26   Normal  ---
    thread_local  0.3.6    ---     Removed  Normal  ---
    ucd-util      0.1.8    ---     Removed  Normal  ---
    utf8-ranges   1.0.5    ---     Removed  Normal  ---
2022-06-06 14:57:22 -07:00
David Tolnay
2cb380eae6
Distinguish examples that have a conflicting package name
error: two packages named `example` in this workspace:
    - /git/syn/examples/lazy-static/example/Cargo.toml
    - /git/syn/examples/trace-var/example/Cargo.toml
2022-06-06 13:21:58 -07:00
David Tolnay
5ea8931523
Add all examples into top-level workspace 2022-06-06 13:21:50 -07:00
David Tolnay
ab059367b4
Condense some import blocks 2020-09-05 22:04:36 -07:00
David Tolnay
0af800cecb
Quote no longer requires recursion 2020-07-16 10:54:25 -07:00
David Tolnay
8a2a0d6fc6
Remove extern crate proc_macro from docs 2020-06-09 20:46:54 -07:00
David Tolnay
c1de8a5468
Fix some docs.rs links to point to most recent compatible versions 2020-03-31 11:18:41 -07:00
David Tolnay
d3805ea2b4 Update versions in readme and links
Fixes #695.
2019-08-14 19:09:37 -07:00
David Tolnay
5a06e7beac
Release 1.0.0 2019-08-13 09:06:54 -07:00
David Tolnay
b2d1aa80f1
Update rustc requirements in preparation for release 2019-08-11 15:01:50 -07:00
David Tolnay
80d2a3bf79
Replace the term custom derive 2019-08-11 14:54:28 -07:00
David Tolnay
d95097703f
Update to proc-macro2 rc3 2019-08-10 22:24:23 -07:00
David Tolnay
3ba76cd686
Update to quote rc3 2019-08-10 20:38:16 -07:00
David Tolnay
51b5541f64
Em dashes 2019-08-10 14:15:15 -07:00
David Tolnay
062cfc58de
Sort examples dependencies 2019-08-10 13:58:05 -07:00
David Tolnay
5a619b16e4
Update to quote 1.0.0-rc2 2019-08-10 12:48:45 -07:00
David Tolnay
68b1aae1c4
Release 1.0.0-rc1 2019-07-29 09:53:37 -07:00
David Tolnay
06e338457f
Update tests and examples to new syntax tree 2019-07-28 21:44:34 -07:00
David Tolnay
8e30f8860f
Update use of first() in trace-var 2019-07-28 14:27:22 -07:00
David Tolnay
b1cd699138
Fix bare_trait_objects lint 2019-07-27 17:25:28 -07:00
David Tolnay
6a52ce666c
Update deprecated ONCE_INIT to Once::new() 2019-07-27 15:46:24 -07:00
David Tolnay
741cbfe5b5
Patch examples to include updated crates 2019-07-27 15:42:16 -07:00
David Tolnay
20985b9231
Use 2018-style absolute paths in examples 2019-04-29 14:16:40 -07:00
David Tolnay
d9d5b25b9d
Show example of rustc-style error message in comment 2019-03-09 22:25:17 -08:00
David Tolnay
f91eab457c
Update path to dump-syntax main.rs in example invocation 2019-03-09 22:21:45 -08:00
David Tolnay
8c26e87143
Color the dump-syntax output 2019-03-02 00:45:48 -08:00
David Tolnay
72cd7e8dd9
Trim trailing whitespace in error message 2019-03-02 00:35:17 -08:00
David Tolnay
2e7bd2581c
Add dump-syntax fallback error message 2019-03-02 00:34:44 -08:00
David Tolnay
c2ddaaf1c0
Use more conventional crate layout for dump-syntax 2019-03-02 00:30:08 -08:00
David Tolnay
558d7baa6a
Include actual filename in dump-syntax error message 2019-03-02 00:19:47 -08:00
David Tolnay
daa0588915
Format dump-syntax errors in rustc style 2019-03-02 00:08:12 -08:00
David Tolnay
078e550686
Show token that failed to parse in dump-syntax 2019-03-01 23:48:22 -08:00
David Tolnay
f4a8002228
Remove "Error:" prefix inserted by returning error from main 2019-03-01 23:23:39 -08:00
David Tolnay
314e1e66d8
Replace deprecated Span::unstable method with unwrap 2019-03-01 23:08:59 -08:00
David Tolnay
73d052b0a0
Implement question mark error handling in dump-syntax 2019-03-01 23:06:55 -08:00
David Tolnay
3f4d6ef67c
Use std::fs helper function in dump-syntax example 2019-03-01 23:01:41 -08:00
David Tolnay
936a9ffafd
Place each standalone example in a workspace
This became necessary after adding `[workspace] members = ["dev"]` at
the top of the repo. The crates in the examles directory cannot be part
of the root workspace because multiple of them have the same crate name
"example".
2019-03-01 22:58:30 -08:00
David Tolnay
0bf1ba0f24
Re-export heapsize_derive from heapsize 2018-10-28 18:07:27 -07:00
David Tolnay
c467aa7ccf
Work around mut warning in trace-var 2018-10-28 18:05:53 -07:00
David Tolnay
c3e6c329f5
Update examples to Rust 2018 2018-10-28 18:05:13 -07:00
David Tolnay
b4f5724062
Use a familiar way to specify compiler versions 2018-10-28 17:57:08 -07:00
David Tolnay
3be1b78c42
Combine the two heapsize examples 2018-10-28 17:54:59 -07:00
David Tolnay
0454eaf64b
Move to parse_macro_input in examples dir 2018-09-06 21:25:01 -07:00