summary refs log tree commit diff
path: root/src/libsyntax/ext
diff options
context:
space:
mode:
authorLuqman Aden <me@luqman.ca>2013-03-12 00:09:53 -0700
committerLuqman Aden <me@luqman.ca>2013-03-12 01:03:34 -0700
commit7f500ab4c1303723192952f9ae1f09290bc1fe1e (patch)
tree57b72b84cf4d8ca50b3d8f0ec903894522cc4e28 /src/libsyntax/ext
parent5aa734d6a1946e526832bb602e1bb271bf26c0b1 (diff)
downloadrust-7f500ab4c1303723192952f9ae1f09290bc1fe1e.tar.gz
rust-7f500ab4c1303723192952f9ae1f09290bc1fe1e.zip
Keep everything tidy.
Diffstat (limited to 'src/libsyntax/ext')
-rw-r--r--src/libsyntax/ext/asm.rs17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/libsyntax/ext/asm.rs b/src/libsyntax/ext/asm.rs
index 229d1d2a95e..3f1aea59ab5 100644
--- a/src/libsyntax/ext/asm.rs
+++ b/src/libsyntax/ext/asm.rs
@@ -55,7 +55,6 @@ pub fn expand_asm(cx: ext_ctxt, sp: span, tts: &[ast::token_tree])
 
     let mut state = Asm;
     loop outer: {
-        
         match state {
             Asm => {
                 asm = expr_to_str(cx, p.parse_expr(),
@@ -65,11 +64,11 @@ pub fn expand_asm(cx: ext_ctxt, sp: span, tts: &[ast::token_tree])
                 while *p.token != token::EOF &&
                       *p.token != token::COLON &&
                       *p.token != token::MOD_SEP {
-                    
+
                     if outputs.len() != 0 {
                         p.eat(&token::COMMA);
                     }
-                    
+
                     let constraint = p.parse_str();
                     p.expect(&token::LPAREN);
                     let out = p.parse_expr();
@@ -82,11 +81,11 @@ pub fn expand_asm(cx: ext_ctxt, sp: span, tts: &[ast::token_tree])
                 while *p.token != token::EOF &&
                       *p.token != token::COLON &&
                       *p.token != token::MOD_SEP {
-                    
+
                     if inputs.len() != 0 {
                         p.eat(&token::COMMA);
                     }
-                    
+
                     let constraint = p.parse_str();
                     p.expect(&token::LPAREN);
                     let in = p.parse_expr();
@@ -100,11 +99,11 @@ pub fn expand_asm(cx: ext_ctxt, sp: span, tts: &[ast::token_tree])
                 while *p.token != token::EOF &&
                       *p.token != token::COLON &&
                       *p.token != token::MOD_SEP {
-                    
+
                     if clobs.len() != 0 {
                         p.eat(&token::COMMA);
                     }
-                    
+
                     let clob = ~"~{" + *p.parse_str() + ~"}";
                     clobs.push(clob);
                 }
@@ -113,7 +112,7 @@ pub fn expand_asm(cx: ext_ctxt, sp: span, tts: &[ast::token_tree])
             }
             Options => {
                 let option = *p.parse_str();
-                
+
                 if option == ~"volatile" {
                     volatile = true;
                 }
@@ -146,7 +145,7 @@ pub fn expand_asm(cx: ext_ctxt, sp: span, tts: &[ast::token_tree])
             } else if *p.token == token::EOF {
                 break outer;
             } else {
-               state 
+               state
             };
         }
     }