diff options
author | John Hodge <tpg@mutabah.net> | 2016-08-17 22:14:25 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-08-17 22:14:25 +0800 |
commit | 1c8db13e4a9d1d3aabe1333197e4e07301fb8bf4 (patch) | |
tree | 2c0f52bc67f43b5f6baab4d5c3bd00f81f1fa484 /src/resolve | |
parent | 83dbbbf519677dac24a6eac3c2ef2c95894db501 (diff) | |
download | mrust-1c8db13e4a9d1d3aabe1333197e4e07301fb8bf4.tar.gz |
Parse - Fix many parser bugs
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/absolute.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp index abfaa672..f2e58703 100644 --- a/src/resolve/absolute.cpp +++ b/src/resolve/absolute.cpp @@ -1136,14 +1136,9 @@ void Resolve_Absolute_Generic(Context& context, ::AST::GenericParams& params) // Locals shouldn't be possible, as they'd end up as MaybeBind. Will assert the path class. void Resolve_Absolute_PatternValue(/*const*/ Context& context, const Span& sp, ::AST::Pattern::Value& val) { - TU_MATCH(::AST::Pattern::Value, (val), (e), - (Invalid, ), - (Integer, ), - (String, ), - (Named, + TU_IFLET(::AST::Pattern::Value, val, Named, e, //assert( ! e.is_trivial() ); Resolve_Absolute_Path(context, sp, Context::LookupMode::Constant, e); - ) ) } void Resolve_Absolute_Pattern(Context& context, bool allow_refutable, ::AST::Pattern& pat) |