]> git.lizzy.rs Git - rust.git/commit
Merge #3518
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Mon, 9 Mar 2020 08:43:07 +0000 (08:43 +0000)
committerGitHub <noreply@github.com>
Mon, 9 Mar 2020 08:43:07 +0000 (08:43 +0000)
commit0363c9495a6a07db276dce4c67fa35fbfc20153c
tree0a98e2b4659d0d0f4df98f41613c6da90e19551f
parent7ac99aad28a36e7cdb27edcb319d7f540dbd8471
parente7206467d57c555f1ca1fee6acc0461d7579f4f7
Merge #3518

3518: Add parse_to_token_tree r=matklad a=edwin0cheng

This PR introduce a function for parsing `&str` to `tt::TokenTree`:

```rust
// Convert a string to a `TokenTree`
pub fn parse_to_token_tree(text: &str) -> Option<(tt::Subtree, TokenMap)> {
````

Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>