David Tolnay
f169b98e29
Delete TokenBuffer's empty Drop impl
...
See https://github.com/dtolnay/syn/pull/1223#pullrequestreview-1124705030
2022-09-29 09:13:28 -07:00
David Tolnay
65ee83a0ad
Simplify Cursor::lifetime using a question mark
2022-09-28 22:47:08 -07:00
David Tolnay
502968cc68
Implement skip and token_tree using the 'len' of entries being stepped over
2022-09-28 22:12:55 -07:00
David Tolnay
f895b8aa3f
Inline some of the logic for entering a Group
2022-09-28 21:58:17 -07:00
David Tolnay
71260defc6
Touch up PR 1223
2022-09-28 21:41:37 -07:00
David Tolnay
296e0469b8
Merge pull request #1226 from dtolnay/bom
...
Pull in proc-macro2 1.0.46 for byte order mark fix
2022-09-28 19:10:14 -07:00
David Tolnay
5f8ddfb5a8
Pull in proc-macro2 1.0.46 for byte order mark fix
...
Without this, our benchmarks fail against the current contents of the
rust-lang/rust repo.
$ cargo test --release --bench rust --features full,test
871050 lines in 12914 files
read_from_disk: elapsed=0.170s
tokenstream_parse: FAIL tests/rust/src/test/ui/json/json-bom-plus-crlf-multifile-aux.rs
thread 'main' panicked at 'assertion failed: `(left == right)`
left: `12913`,
right: `12914`', benches/rust.rs:122:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2022-09-28 19:02:05 -07:00
David Tolnay
ce00ab0755
Merge pull request #1225 from dtolnay/benchtest
...
Fix instruction for running benchmarks
2022-09-28 18:56:41 -07:00
David Tolnay
b0fcbabe5b
Fix instruction for running benchmarks
2022-09-28 18:24:19 -07:00
David Tolnay
91f01419b7
Merge pull request #1223 from CAD97/flat-tokenbuffer
...
Use a flat layout for TokenBuffer
2022-09-28 16:55:27 -07:00
David Tolnay
b74703d9d5
Merge pull request #1224 from dtolnay/fuzz
...
Add fuzz target for TokenBuffer and file parse
2022-09-28 14:04:16 -07:00
David Tolnay
f199b225f0
Check for outdated deps in fuzz target
2022-09-28 13:55:48 -07:00
David Tolnay
93497ba9e2
Add CI build to cover fuzz target
2022-09-28 13:55:48 -07:00
David Tolnay
01f198f601
Add fuzz targets for TokenBuffer and file parse
2022-09-28 13:55:48 -07:00
Christopher Durham
65cc34a4a3
Use a flat layout for TokenBuffer
2022-09-27 19:49:10 -05:00
David Tolnay
96beb3bdd6
Release 1.0.101
2022-09-26 10:59:31 -07:00
David Tolnay
8f0368e1bd
Merge pull request #1221 from dtolnay/litparse
...
Bypass a round trip through TokenBuffer in LitStr::parse
2022-09-24 14:16:53 -07:00
David Tolnay
ea637b2bf6
Bypass a round trip through ParseBuffer in LitStr::parse
2022-09-24 14:05:08 -07:00
David Tolnay
638e96751d
Merge pull request #1220 from dtolnay/rustdoclink
...
Remove workaround for mod@crate::parse rustdoc links
2022-09-24 13:58:23 -07:00
David Tolnay
620852b739
Link to parse module using an intra rustdoc link
2022-09-24 13:49:54 -07:00
David Tolnay
c1d6739182
Revert "Work around rustdoc ambiguity bug"
...
This reverts commit ae1983c87afe0e04c884b7d11f513ea6baf54f84.
2022-09-24 13:47:07 -07:00
David Tolnay
3c49303bed
Combine tests gitignore into single top level gitignore
2022-09-24 10:54:50 -07:00
David Tolnay
3d01fc3fea
Release 1.0.100
2022-09-18 17:18:53 -07:00
David Tolnay
308d77b768
Merge pull request #1218 from dtolnay/variadiccomma
...
Fix printing of variadic extern fn with trailing comma
2022-09-18 17:18:31 -07:00
David Tolnay
9b589ba216
Fix printing of variadic extern fn with trailing comma
2022-09-18 17:11:28 -07:00
David Tolnay
42e9942cc6
Allow multiple parenthesized path argument segments in the same path
2022-09-18 17:07:40 -07:00
David Tolnay
ba6cd8ef49
Merge pull request #1217 from dtolnay/typepathfnwithcoloncolon
...
Parse associated type on path with parenthesized generic arguments
2022-09-18 17:05:46 -07:00
David Tolnay
194c3d4011
Insane syntax on feature="full" only
2022-09-18 16:56:59 -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
be1b7585a5
Merge pull request #1216 from dtolnay/anglebracketedorder
...
Preserve ordering of associated type constraints relative to types
2022-09-18 16:16:41 -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
3e09e3ba89
Merge pull request #1215 from dtolnay/staticasync
...
Parse 'static async' closures
2022-09-18 16:07:50 -07:00
David Tolnay
aa4fa7001a
Parse 'static async' closures
2022-09-18 16:00:31 -07:00
David Tolnay
2de2d8c059
Merge pull request #1214 from dtolnay/patstructrest
...
Parse Struct { #[attr] .. } in pattern position
2022-09-18 16:00:14 -07:00
David Tolnay
0c3ff6c8fc
Parse Struct { #[attr] .. } in pattern position
2022-09-18 15:52:33 -07:00
David Tolnay
caa54bd48e
Merge pull request #1213 from dtolnay/dynstar
...
Parse dyn* syntax
2022-09-18 15:45:04 -07:00
David Tolnay
c6b2e5c6eb
Parse dyn* syntax
2022-09-18 15:32:08 -07:00
David Tolnay
eb0db059f9
Merge pull request #1212 from dtolnay/forclosure
...
Parse closures with explicit empty lifetime list
2022-09-18 15:29:16 -07:00
David Tolnay
7d6ad91dea
Parse closures with explicit empty lifetime list
2022-09-18 15:20:05 -07:00
David Tolnay
f9455f8509
Merge pull request #1211 from dtolnay/up
...
Update test suite to nightly-2022-09-18
2022-09-18 15:08:19 -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
64e34ba69f
Remove default package.readme metadata from Cargo.toml
...
Since cargo 1.46.0, README.md is recognized by default.
2022-09-14 09:16:01 -07:00
David Tolnay
6e5c4fa1bb
Update test suite to nightly-2022-09-14
2022-09-13 21:17:19 -07:00