Propagate rename in struct literals

This commit is contained in:
IGI-111
2018-10-31 17:35:32 +01:00
committed by Ryan Hunt
parent d310b7c181
commit d163daad57
+7 -2
View File
@@ -54,8 +54,13 @@ impl Literal {
Literal::Struct {
name: _,
ref mut export_name,
fields: _,
} => config.export.rename(export_name),
fields,
} => {
config.export.rename(export_name);
for (_, lit) in fields {
lit.rename_for_config(config);
}
}
Literal::Expr(_) => {}
}
}