summaryrefslogtreecommitdiff
path: root/src/trans/enumerate.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2018-03-07 22:07:38 +0800
committerJohn Hodge <tpg@mutabah.net>2018-03-17 18:52:16 +0800
commit912f54efc564f1928b70349960e0eee6020242fe (patch)
tree0cac524044d9c2d6ccde629a9585fd60e39446ef /src/trans/enumerate.cpp
parent5118328a10bf3042f4301080cb72762ed4c0ca49 (diff)
downloadmrust-912f54efc564f1928b70349960e0eee6020242fe.tar.gz
VTables - Rename vtable static to have the # at the end (helps parsing in mmir)
Diffstat (limited to 'src/trans/enumerate.cpp')
-rw-r--r--src/trans/enumerate.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/trans/enumerate.cpp b/src/trans/enumerate.cpp
index cecf87de..fbf747f8 100644
--- a/src/trans/enumerate.cpp
+++ b/src/trans/enumerate.cpp
@@ -191,7 +191,7 @@ TransList Trans_Enumerate_Public(::HIR::Crate& crate)
else if( vi.second.is_Function() && vi.second.as_Function().m_params.m_types.size() > 0 )
;
// VTable, magic
- else if( vi.first == "#vtable" )
+ else if( vi.first == "vtable#" )
;
else
{
@@ -1226,7 +1226,7 @@ namespace {
is_spec = it->second.is_specialisable;
),
(Static,
- if( pe->item == "#vtable" ) {
+ if( pe->item == "vtable#" ) {
is_spec = true;
break;
}
@@ -1281,7 +1281,7 @@ namespace {
TODO(sp, "Associated constant - " << path);
),
(Static,
- if( pe->item == "#vtable" )
+ if( pe->item == "vtable#" )
{
DEBUG("VTable, autogen");
return EntPtr::make_AutoGenerate( {} );
@@ -1357,7 +1357,7 @@ void Trans_Enumerate_FillFrom_Path(EnumState& state, const ::HIR::Path& path, co
state.rv.m_constructors.insert( mv$(path_mono.m_data.as_Generic()) );
}
// - <T as U>::#vtable
- else if( path_mono.m_data.is_UfcsKnown() && path_mono.m_data.as_UfcsKnown().item == "#vtable" )
+ else if( path_mono.m_data.is_UfcsKnown() && path_mono.m_data.as_UfcsKnown().item == "vtable#" )
{
if( state.rv.add_vtable( path_mono.clone(), {} ) )
{