diff options
| author | bors <bors@rust-lang.org> | 2018-06-30 09:19:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-06-30 09:19:21 +0000 |
| commit | bfc1ee4968ff5778cd80e12150f379ddfe6c2767 (patch) | |
| tree | 1e61b5ce7879de8613a142ffd6c029f8866bf70a /src/librustc_save_analysis | |
| parent | acf50b79beb5909c16861cc7c91e8226b7f78272 (diff) | |
| parent | 84f1bc8b662da4ceb0e448bf0d24ce627e6a462b (diff) | |
| download | rust-bfc1ee4968ff5778cd80e12150f379ddfe6c2767.tar.gz rust-bfc1ee4968ff5778cd80e12150f379ddfe6c2767.zip | |
Auto merge of #51762 - petrochenkov:oh-hi-mark, r=oli-obk
hygiene: Implement transparent marks and use them for call-site hygiene in proc-macros Fixes https://github.com/rust-lang/rust/issues/50050
Diffstat (limited to 'src/librustc_save_analysis')
| -rw-r--r-- | src/librustc_save_analysis/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_save_analysis/lib.rs b/src/librustc_save_analysis/lib.rs index 89d30fd666a..c07db44b36c 100644 --- a/src/librustc_save_analysis/lib.rs +++ b/src/librustc_save_analysis/lib.rs @@ -1157,7 +1157,7 @@ fn escape(s: String) -> String { // Helper function to determine if a span came from a // macro expansion or syntax extension. fn generated_code(span: Span) -> bool { - span.ctxt() != NO_EXPANSION || span == DUMMY_SP + span.ctxt() != NO_EXPANSION || span.is_dummy() } // DefId::index is a newtype and so the JSON serialisation is ugly. Therefore |
