rust/crates
Kevin Mehall 632fa8ef4a Fix TokenStream::from_str for input consisting of a single Group
TokenStream holds a `tt::Subtree` but assumes its `delimiter` is always
`None`. In particular, the iterator implementation iterates over the
inner `token_trees` and ignores the `delimiter`.

However, `TokenStream::from_str` violated this assumption when the input
consists of a single Group by producing a Subtree with an outer
delimiter, which was ignored as seen by a procedural macro.

In this case, wrap an extra level of Subtree around it.

Fixes #7810
Fixes #7875
2021-03-06 09:48:08 -07:00
..
base_db Fixed remaining references to AnalysisChange (now: Change) 2021-02-28 12:57:41 +01:00
cfg
flycheck Bump cargo_metadata 2021-03-02 14:27:29 +02:00
hir Use chalk_ir::AdtId 2021-03-04 19:38:02 +01:00
hir_def Make two calls virtual 2021-03-05 20:25:24 +02:00
hir_expand Fix assert split exprs on comma 2021-02-28 20:46:24 +08:00
hir_ty Make two calls virtual 2021-03-05 20:25:24 +02:00
ide Fix some warnings 2021-03-05 15:59:50 +02:00
ide_assists Merge #7869 2021-03-05 19:52:15 +00:00
ide_completion Complete while let 2021-03-03 23:04:11 +01:00
ide_db Show docs on hover for keywords and primitives 2021-03-02 14:41:01 +01:00
ide_ssr 7526: Renamed create ssr to ide_ssr. 2021-02-23 00:59:16 +05:30
mbe Fix fail to parse :: for meta in mbe 2021-03-06 04:57:34 +08:00
parser Fix fail to parse :: for meta in mbe 2021-03-06 04:57:34 +08:00
paths
proc_macro_api Remove redundant clones 2021-02-05 16:57:26 +01:00
proc_macro_srv Fix TokenStream::from_str for input consisting of a single Group 2021-03-06 09:48:08 -07:00
proc_macro_test
profile
project_model Bump cargo_metadata 2021-03-02 14:27:29 +02:00
rust-analyzer Migrate to user-centric config name for cargo check stuff 2021-03-04 15:38:53 +03:00
stdx Cleanup decl_check 2021-02-05 16:09:45 +01:00
syntax Update lexer 2021-03-02 15:33:22 -05:00
test_utils Add benchmark test for mbe 2021-02-25 05:47:13 +08:00
text_edit
toolchain
tt
vfs Fix slow tests sometimes failing 2021-02-12 16:31:16 +01:00
vfs-notify Fix slow tests sometimes failing 2021-02-12 16:31:16 +01:00