about summary refs log tree commit diff
path: root/src/libsyntax/tokenstream.rs
diff options
context:
space:
mode:
authorBaoshan <pangbw@gmail.com>2019-09-03 16:33:18 -0700
committerGitHub <noreply@github.com>2019-09-03 16:33:18 -0700
commite316ba3b60433bd703575a00d7fd5e344e29912d (patch)
tree4d74702faa98a70d127b17f19f908dc3875e8faa /src/libsyntax/tokenstream.rs
parent964c37cdecbd1aa0e7870afac9ba38e5168be65f (diff)
parentb9de4ef89e0e53099a084001b26ec3207c5f8391 (diff)
downloadrust-e316ba3b60433bd703575a00d7fd5e344e29912d.tar.gz
rust-e316ba3b60433bd703575a00d7fd5e344e29912d.zip
Merge pull request #12 from rust-lang/master
sync with rust-lang/rust branch master
Diffstat (limited to 'src/libsyntax/tokenstream.rs')
-rw-r--r--src/libsyntax/tokenstream.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/libsyntax/tokenstream.rs b/src/libsyntax/tokenstream.rs
index 09a1b93c7bb..0d9f3769ce9 100644
--- a/src/libsyntax/tokenstream.rs
+++ b/src/libsyntax/tokenstream.rs
@@ -19,7 +19,7 @@ use crate::parse::Directory;
 use crate::parse::token::{self, DelimToken, Token, TokenKind};
 use crate::print::pprust;
 
-use syntax_pos::{BytePos, ExpnId, Span, DUMMY_SP};
+use syntax_pos::{BytePos, Span, DUMMY_SP};
 #[cfg(target_arch = "x86_64")]
 use rustc_data_structures::static_assert_size;
 use rustc_data_structures::sync::Lrc;
@@ -547,11 +547,4 @@ impl DelimSpan {
     pub fn entire(self) -> Span {
         self.open.with_hi(self.close.hi())
     }
-
-    pub fn apply_mark(self, expn_id: ExpnId) -> Self {
-        DelimSpan {
-            open: self.open.apply_mark(expn_id),
-            close: self.close.apply_mark(expn_id),
-        }
-    }
 }