about summary refs log tree commit diff
path: root/compiler/rustc_span/src/span_encoding.rs
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-04-30 20:15:22 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-09-10 20:18:22 +0200
commit940fa9251e3c538a4c9d35d84dcaa09065e45687 (patch)
tree86ad3e37e3fca726eb62a2ec30cfc9ddb954b1a8 /compiler/rustc_span/src/span_encoding.rs
parentb19ae20aada117a589ec238f97c97a98b483f97d (diff)
downloadrust-940fa9251e3c538a4c9d35d84dcaa09065e45687.tar.gz
rust-940fa9251e3c538a4c9d35d84dcaa09065e45687.zip
Rename decode to data_untracked.
Diffstat (limited to 'compiler/rustc_span/src/span_encoding.rs')
-rw-r--r--compiler/rustc_span/src/span_encoding.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_span/src/span_encoding.rs b/compiler/rustc_span/src/span_encoding.rs
index f74c259d53d..e9120b98aab 100644
--- a/compiler/rustc_span/src/span_encoding.rs
+++ b/compiler/rustc_span/src/span_encoding.rs
@@ -101,7 +101,7 @@ impl Span {
 
     #[inline]
     pub fn data(self) -> SpanData {
-        let data = self.decode();
+        let data = self.data_untracked();
         if let Some(parent) = data.parent {
             (*SPAN_TRACK)(parent);
         }
@@ -111,7 +111,7 @@ impl Span {
     /// Internal function to translate between an encoded span and the expanded representation.
     /// This function must not be used outside the incremental engine.
     #[inline]
-    pub fn decode(self) -> SpanData {
+    pub fn data_untracked(self) -> SpanData {
         if self.len_or_tag != LEN_TAG {
             // Inline format.
             debug_assert!(self.len_or_tag as u32 <= MAX_LEN);