Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@ryansg.com>2020-03-26 00:10:47 -0400
committerMike Gerwitz <mike.gerwitz@ryansg.com>2020-03-26 09:18:08 -0400
commit40eaeb3dc86dd44e5aa4ba2e422b3773f9f23e43 (patch)
treed6e218772e9e11117d5bd59b0593613fc640816f /tamer/src/ld/poc.rs
parent7dd8717f2f5c3bfe5d6186da843af8bfe3192901 (diff)
downloadtame-40eaeb3dc86dd44e5aa4ba2e422b3773f9f23e43.tar.gz
tame-40eaeb3dc86dd44e5aa4ba2e422b3773f9f23e43.tar.bz2
tame-40eaeb3dc86dd44e5aa4ba2e422b3773f9f23e43.zip
[DEV-7087] TAMER: Remote optional Source from ASG and Object
This undoes work I did earlier today...but now we'll be able to support a Source on an extern. There is duplicate code between `BaseAsg::declare{,_extern}` that will be resolved in an upcoming commit. Upcoming commits will also simplify terminology and clean up methods on ObjectState.
Diffstat (limited to 'tamer/src/ld/poc.rs')
-rw-r--r--tamer/src/ld/poc.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/tamer/src/ld/poc.rs b/tamer/src/ld/poc.rs
index 8bf680f..975ca35 100644
--- a/tamer/src/ld/poc.rs
+++ b/tamer/src/ld/poc.rs
@@ -201,11 +201,8 @@ fn load_xmlo<'a, 'i, I: Interner<'i>>(
if extern_ {
depgraph.declare_extern(sym, kindval, src)?;
} else {
- let node = depgraph.declare(
- sym,
- kindval,
- Some(src),
- )?;
+ let node =
+ depgraph.declare(sym, kindval, src)?;
if link_root {
roots.push(node);