bors[bot] 477c1ac105
Merge #7827
7827: Fix proc macro TokenStream::from_str token ids r=vlad20012 a=vlad20012

To be honest, I don't know what it changes from a user perspective.

Internally, this fixes spans (token ids) of a `TokenStream` parsed from a string:

```rust
#[proc_macro_derive(FooDerive)]
pub fn foo_derive(item: TokenStream) -> TokenStream {
    "fn foo() {}".parse().unwrap()
}
```

Previously, `TokenStream` was constructed from tokens with incremental ids (that conflicted with call-site tokens). Now they are `-1`.

Co-authored-by: vlad20012 <beskvlad@gmail.com>
2021-03-02 00:01:14 +00:00
..
2021-01-03 14:43:29 +01:00
2021-03-01 19:57:36 +01:00
2021-03-01 19:31:01 +00:00
2021-03-01 14:50:58 +00:00
2021-02-15 18:33:12 +01:00
2021-01-22 15:38:33 +01:00
2021-02-05 16:57:26 +01:00
2021-01-27 12:39:19 +03:00
2021-03-01 12:14:16 +03:00
2021-02-05 16:09:45 +01:00
2021-02-25 10:34:48 -05:00
2021-02-25 05:47:13 +08:00
2021-01-05 02:00:46 +08:00
2021-02-12 16:31:16 +01:00