summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2017-11-16 19:07:40 +0800
committerJohn Hodge <tpg@ucc.asn.au>2017-11-16 19:07:40 +0800
commit71d15c624b816309ebf81015f48e9a951216f485 (patch)
treea510c7090f8415d5daf4b316353bc968458e9939 /lib
parent6724a409d6fd72dfc0b031c217881d480fec3378 (diff)
downloadmrust-71d15c624b816309ebf81015f48e9a951216f485.tar.gz
proc_macro - Expression output stubbed, fix bug in libproc_macro parse
Diffstat (limited to 'lib')
-rw-r--r--lib/libproc_macro/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libproc_macro/src/lib.rs b/lib/libproc_macro/src/lib.rs
index 6d094893..9a19dafb 100644
--- a/lib/libproc_macro/src/lib.rs
+++ b/lib/libproc_macro/src/lib.rs
@@ -274,6 +274,9 @@ impl FromStr for TokenStream {
{
// Could be an ident starting with 'b', or it's just 'b'
// - Fall through
+ let ident = get_ident(&mut it, "b".into());
+ rv.push(Token::Ident(ident));
+ continue 'outer;
}
}