summaryrefslogtreecommitdiff
path: root/src/expand/rustc_diagnostics.cpp
diff options
context:
space:
mode:
authorJohn Hodge (Mutabah) <acessdev@gmail.com>2016-12-25 17:19:27 +1100
committerGitHub <noreply@github.com>2016-12-25 17:19:27 +1100
commit753a2f44cc4c00b952cddae2ceed066ebb18a470 (patch)
treeed4bbff4be39c44c57164641f4ed32b5ad4675f0 /src/expand/rustc_diagnostics.cpp
parentd12a8a886caf2e0edf33c1af831b1df990d2c892 (diff)
parent0c14c734fa32014fd24297ccdbed927016185ffd (diff)
downloadmrust-753a2f44cc4c00b952cddae2ceed066ebb18a470.tar.gz
Merge pull request #11 from ubsan/whitespace-fix
No more tears!
Diffstat (limited to 'src/expand/rustc_diagnostics.cpp')
-rw-r--r--src/expand/rustc_diagnostics.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/expand/rustc_diagnostics.cpp b/src/expand/rustc_diagnostics.cpp
index 917a5e4d..f2e436c4 100644
--- a/src/expand/rustc_diagnostics.cpp
+++ b/src/expand/rustc_diagnostics.cpp
@@ -34,16 +34,16 @@ class CExpanderBuildDiagnosticArray:
if( ident != "" )
ERROR(sp, E0000, "__build_diagnostic_array! doesn't take an ident");
auto lex = TTStream(tt);
-
+
Token tok;
-
+
GET_CHECK_TOK(tok, lex, TOK_IDENT);
//auto crate_name = mv$(tok.str());
GET_CHECK_TOK(tok, lex, TOK_COMMA);
GET_CHECK_TOK(tok, lex, TOK_IDENT);
auto item_name = mv$(tok.str());
GET_CHECK_TOK(tok, lex, TOK_EOF);
-
+
::std::vector<TokenTree> toks;
toks.push_back( TOK_RWORD_STATIC );
toks.push_back( Token(TOK_IDENT, item_name) );
@@ -63,7 +63,7 @@ class CExpanderBuildDiagnosticArray:
toks.push_back( TOK_SQUARE_OPEN );
toks.push_back( TOK_SQUARE_CLOSE );
toks.push_back( TOK_SEMICOLON );
-
+
return box$( TTStreamO(TokenTree( lex.getHygiene(), mv$(toks) )) );
}
};