summaryrefslogtreecommitdiff
path: root/src/expand/file_line.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-09-27 21:55:28 +0800
committerJohn Hodge <tpg@mutabah.net>2016-09-27 21:55:28 +0800
commit1b9a90949e310428e3b6e175c4568260a222a53a (patch)
tree8535e10c384971018fb5f391236cfd5a822b2e3f /src/expand/file_line.cpp
parentefcec71e53c560d8c8f5348dcb7bc11b6e4a9b78 (diff)
downloadmrust-1b9a90949e310428e3b6e175c4568260a222a53a.tar.gz
Expand - Remove two-pass expand
Diffstat (limited to 'src/expand/file_line.cpp')
-rw-r--r--src/expand/file_line.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/expand/file_line.cpp b/src/expand/file_line.cpp
index c3bfc2de..28bd73b7 100644
--- a/src/expand/file_line.cpp
+++ b/src/expand/file_line.cpp
@@ -6,8 +6,6 @@
class CExpanderFile:
public ExpandProcMacro
{
- bool expand_early() const override { return true; }
-
::std::unique_ptr<TokenStream> expand(const Span& sp, const AST::Crate& crate, const ::std::string& ident, const TokenTree& tt, AST::Module& mod) override
{
return box$( TTStreamO(TokenTree(Token(TOK_STRING, sp.filename.c_str()))) );
@@ -17,8 +15,6 @@ class CExpanderFile:
class CExpanderLine:
public ExpandProcMacro
{
- bool expand_early() const override { return true; }
-
::std::unique_ptr<TokenStream> expand(const Span& sp, const AST::Crate& crate, const ::std::string& ident, const TokenTree& tt, AST::Module& mod) override
{
return box$( TTStreamO(TokenTree(Token((uint64_t)sp.start_line, CORETYPE_U32))) );