diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-06-23 20:09:11 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-06-23 20:40:25 +0300 |
| commit | c00f5af4d6e709cb23f9d47ceb466c13a073f7b5 (patch) | |
| tree | 78b05b5d6bdc3249fcb85f859b8c35b276b634af /src/libproc_macro | |
| parent | fffe9fbb5134da7ce77660dfc4562b5e395853e8 (diff) | |
| download | rust-c00f5af4d6e709cb23f9d47ceb466c13a073f7b5.tar.gz rust-c00f5af4d6e709cb23f9d47ceb466c13a073f7b5.zip | |
hygiene: Do not reset expansion info for `quote!`
Diffstat (limited to 'src/libproc_macro')
| -rw-r--r-- | src/libproc_macro/quote.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libproc_macro/quote.rs b/src/libproc_macro/quote.rs index c9d0bc1405f..4cd822aa9d0 100644 --- a/src/libproc_macro/quote.rs +++ b/src/libproc_macro/quote.rs @@ -85,9 +85,6 @@ impl ProcMacro for Quoter { _: ::syntax_pos::Span, stream: tokenstream::TokenStream) -> tokenstream::TokenStream { - let mut info = cx.current_expansion.mark.expn_info().unwrap(); - info.callee.allow_internal_unstable = true; - cx.current_expansion.mark.set_expn_info(info); ::__internal::set_sess(cx, || TokenStream(stream).quote().0) } } |
