Make export_prefix use fn name not export name

This commit is contained in:
J Henry Waugh
2020-09-02 20:10:52 -05:00
parent ce00ce77f0
commit 5585405bdc
2 changed files with 8 additions and 18 deletions

View File

@@ -228,7 +228,7 @@ impl ExportedFn {
let keep = match (self.params.skip, parent_scope) {
(true, _) => false,
(_, ExportScope::PubOnly) => self.is_public,
(_, ExportScope::Prefix(s)) => self.exported_name().as_ref().starts_with(s),
(_, ExportScope::Prefix(s)) => self.name().to_string().starts_with(s),
(_, ExportScope::All) => true,
};
self.params.skip = !keep;