diff options
| author | Aleksey Kladov <aleksey.kladov@gmail.com> | 2019-08-31 20:08:06 +0300 |
|---|---|---|
| committer | Aleksey Kladov <aleksey.kladov@gmail.com> | 2019-09-03 21:15:45 +0300 |
| commit | fa893a322570ea60cc8815b3dddb5311f0cb3b63 (patch) | |
| tree | e693cfd3e9ad5b53aba23bcfe17725afa749aa48 /src/libsyntax/tokenstream.rs | |
| parent | b3146549abf25818fecfc7555f35358a948e27ad (diff) | |
| download | rust-fa893a322570ea60cc8815b3dddb5311f0cb3b63.tar.gz rust-fa893a322570ea60cc8815b3dddb5311f0cb3b63.zip | |
use TokenStream rather than &[TokenTree] for built-in macros
That way, we don't loose the jointness info
Diffstat (limited to 'src/libsyntax/tokenstream.rs')
| -rw-r--r-- | src/libsyntax/tokenstream.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/tokenstream.rs b/src/libsyntax/tokenstream.rs index 0d9f3769ce9..48055358619 100644 --- a/src/libsyntax/tokenstream.rs +++ b/src/libsyntax/tokenstream.rs @@ -506,7 +506,7 @@ impl Cursor { impl fmt::Display for TokenStream { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.write_str(&pprust::tokens_to_string(self.clone())) + f.write_str(&pprust::tts_to_string(self.clone())) } } |
