summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2018-06-02 11:19:44 +0800
committerJohn Hodge <tpg@mutabah.net>2018-06-02 11:20:25 +0800
commit5098d733af5daa569bfb57b2a9a3c521df9aeb06 (patch)
tree3a9b56537845638fe62fa02f989a31591b65ff2d /src
parent00a391895c9be6fa66128dbdeb8a368269960ec8 (diff)
downloadmrust-5098d733af5daa569bfb57b2a9a3c521df9aeb06.tar.gz
Misc - Clean up/triage some tests
Diffstat (limited to 'src')
-rw-r--r--src/resolve/absolute.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp
index 46a27c2d..f5e0d9e5 100644
--- a/src/resolve/absolute.cpp
+++ b/src/resolve/absolute.cpp
@@ -1839,7 +1839,10 @@ void Resolve_Absolute_Pattern(Context& context, bool allow_refutable, ::AST::Pa
),
(Value,
if( ! allow_refutable )
+ {
+ // TODO: If this is a single value of a unit-like struct, accept
BUG(pat.span(), "Resolve_Absolute_Pattern - Encountered refutable pattern where only irrefutable allowed - " << pat);
+ }
Resolve_Absolute_PatternValue(context, pat.span(), e.start);
Resolve_Absolute_PatternValue(context, pat.span(), e.end);
),