diff options
| author | David Wood <david@davidtw.co> | 2019-05-31 15:50:06 +0100 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2019-06-03 10:20:35 +0100 |
| commit | 32771071e8d6731e2ff747de04aabe9a4d499b24 (patch) | |
| tree | 1c3aa6366f0882d2b4a4d5698aa4e3d32bda58dc /src/libsyntax/source_map.rs | |
| parent | d0c78dd7aa692a9338b2085e8d227cde73d2a5f9 (diff) | |
| download | rust-32771071e8d6731e2ff747de04aabe9a4d499b24.tar.gz rust-32771071e8d6731e2ff747de04aabe9a4d499b24.zip | |
syntax/rustc: move `mark_span_with_reason` back.
Diffstat (limited to 'src/libsyntax/source_map.rs')
| -rw-r--r-- | src/libsyntax/source_map.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/libsyntax/source_map.rs b/src/libsyntax/source_map.rs index 4b6893b2423..a21d2df4162 100644 --- a/src/libsyntax/source_map.rs +++ b/src/libsyntax/source_map.rs @@ -935,27 +935,6 @@ impl SourceMap { None } - - /// Reuses the span but adds information like the kind of the desugaring and features that are - /// allowed inside this span. - pub fn mark_span_with_reason( - &self, - reason: hygiene::CompilerDesugaringKind, - span: Span, - allow_internal_unstable: Option<Lrc<[symbol::Symbol]>>, - ) -> Span { - let mark = Mark::fresh(Mark::root()); - mark.set_expn_info(ExpnInfo { - call_site: span, - def_site: Some(span), - format: CompilerDesugaring(reason), - allow_internal_unstable, - allow_internal_unsafe: false, - local_inner_macros: false, - edition: edition::Edition::from_session(), - }); - span.with_ctxt(SyntaxContext::empty().apply_mark(mark)) - } } impl SourceMapper for SourceMap { |
