summaryrefslogtreecommitdiff
path: root/src/mir/from_hir.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2019-11-23 12:01:40 +0800
committerJohn Hodge <tpg@ucc.asn.au>2019-11-23 12:01:40 +0800
commit87df981564afc3debfe5b11842f375bfae5900ff (patch)
tree803047f1d90bf6b01ac6445bdb9c7e592d81466f /src/mir/from_hir.cpp
parentfb2b1202e916e2e3f406d03005237b1d2447269f (diff)
downloadmrust-87df981564afc3debfe5b11842f375bfae5900ff.tar.gz
HIR - Restructure resolve to replace `Self` type later in processing
Diffstat (limited to 'src/mir/from_hir.cpp')
-rw-r--r--src/mir/from_hir.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mir/from_hir.cpp b/src/mir/from_hir.cpp
index b373e6e0..dac11b43 100644
--- a/src/mir/from_hir.cpp
+++ b/src/mir/from_hir.cpp
@@ -2394,8 +2394,7 @@ namespace {
{
TRACE_FUNCTION_F("_StructLiteral");
- ASSERT_BUG(node.span(), node.m_path.m_data.is_Generic(), "_StructLiteral with non-Generic path - " << node.m_path);
- const auto& ty_path = node.m_path.m_data.as_Generic();
+ const auto& ty_path = node.m_real_path;
TU_MATCH_HDRA( (node.m_res_type.m_data.as_Path().binding), {)
TU_ARMA(Unbound, _e) {