Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@ryansg.com>2020-01-13 15:15:38 -0500
committerMike Gerwitz <mike.gerwitz@ryansg.com>2020-02-26 10:49:00 -0500
commit85a4934db55b8f3f4b8f0f82a75d31c967963a96 (patch)
treeb8e4344cab663bd6b368c8802c05326b603606c8 /tamer/src/ld/poc.rs
parentbcc2ab12211f2565863ea6c37f1580de6ddee5b5 (diff)
downloadtame-85a4934db55b8f3f4b8f0f82a75d31c967963a96.tar.gz
tame-85a4934db55b8f3f4b8f0f82a75d31c967963a96.tar.bz2
tame-85a4934db55b8f3f4b8f0f82a75d31c967963a96.zip
TAMER: Symbol source data and metadata
Diffstat (limited to 'tamer/src/ld/poc.rs')
-rw-r--r--tamer/src/ld/poc.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tamer/src/ld/poc.rs b/tamer/src/ld/poc.rs
index 521f843..d11d863 100644
--- a/tamer/src/ld/poc.rs
+++ b/tamer/src/ld/poc.rs
@@ -135,10 +135,12 @@ fn load_xmlo<'a, 'i, I: Interner<'i>>(
let owned = attrs.src.is_none();
- let kind = attrs.try_into().map_err(|err| {
+ let kind = (&attrs).try_into().map_err(|err| {
format!("sym `{}` attrs error: {}", sym, err)
});
+ let src = attrs.into();
+
// TODO: should probably track these down in the XSLT linker...
match kind {
Ok(kindval) => {
@@ -148,7 +150,7 @@ fn load_xmlo<'a, 'i, I: Interner<'i>>(
|| sym.starts_with(":map:")
|| sym.starts_with(":retmap:"));
- let node = depgraph.declare(sym, kindval)?;
+ let node = depgraph.declare(sym, kindval, src)?;
if link_root {
roots.push(node);