about summary refs log tree commit diff
path: root/src/libsyntax/ext
diff options
context:
space:
mode:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-11-29 02:07:02 +0000
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-12-18 23:25:30 +0000
commit83ab9f7faccddee23545e12d323791f9e2d06380 (patch)
treeabca5f723d6a611e544b478fef7f78bebd9c7be0 /src/libsyntax/ext
parentb35c306b657c25f676c3981e2c78ea73f44ef378 (diff)
downloadrust-83ab9f7faccddee23545e12d323791f9e2d06380.tar.gz
rust-83ab9f7faccddee23545e12d323791f9e2d06380.zip
Remove some unused functions and fix formatting.
Diffstat (limited to 'src/libsyntax/ext')
-rw-r--r--src/libsyntax/ext/hygiene.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libsyntax/ext/hygiene.rs b/src/libsyntax/ext/hygiene.rs
index 0fd72277cca..8842cb55b1e 100644
--- a/src/libsyntax/ext/hygiene.rs
+++ b/src/libsyntax/ext/hygiene.rs
@@ -115,12 +115,12 @@ impl SyntaxContext {
         })
     }
 
-   /// If `ident` is macro expanded, return the source ident from the macro definition
-   /// and the mark of the expansion that created the macro definition.
-   pub fn source(self) -> (Self /* source context */, Mark /* source macro */) {
-        let macro_def_ctxt = self.data().prev_ctxt.data();
-        (macro_def_ctxt.prev_ctxt, macro_def_ctxt.outer_mark)
-   }
+    /// If `ident` is macro expanded, return the source ident from the macro definition
+    /// and the mark of the expansion that created the macro definition.
+    pub fn source(self) -> (Self /* source context */, Mark /* source macro */) {
+         let macro_def_ctxt = self.data().prev_ctxt.data();
+         (macro_def_ctxt.prev_ctxt, macro_def_ctxt.outer_mark)
+    }
 }
 
 impl fmt::Debug for SyntaxContext {