about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-04-10 18:24:01 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-04-10 18:24:01 -0700
commitab35b64fa2636a08aae271371c56f35f62c76c9d (patch)
tree804d839eefc0e0e139f671b69b18aeeadaece265
parent44d018b6155c93e899f4509ac8a4f0f2d2340d5b (diff)
downloadmu-ab35b64fa2636a08aae271371c56f35f62c76c9d.tar.gz
2824
Undo commit 9da3fc3118; looks like we don't need it anymore, and the
test was poorly done. Let's see if we hit the error again.
-rw-r--r--030address.cc4
-rw-r--r--031container.cc7
2 files changed, 0 insertions, 11 deletions
diff --git a/030address.cc b/030address.cc
index b742731f..dde4d79a 100644
--- a/030address.cc
+++ b/030address.cc
@@ -94,10 +94,6 @@ bool canonize_type(reagent& r) {
 }
 
 void drop_from_type(reagent& r, string expected_type) {
-  if (!r.type) {
-    raise << "can't drop " << expected_type << " from " << to_string(r) << '\n' << end();
-    return;
-  }
   if (r.type->name != expected_type) {
     raise << "can't drop2 " << expected_type << " from " << to_string(r) << '\n' << end();
     return;
diff --git a/031container.cc b/031container.cc
index 63ef85f2..fa008404 100644
--- a/031container.cc
+++ b/031container.cc
@@ -399,13 +399,6 @@ def main [
 ]
 +mem: storing 2 in location 4
 
-:(scenario canonize_non_pointer_fails_without_crashing)
-% Hide_errors = true;
-def foo [
-  1:address:number <- get-address *p, x:offset
-]
-# don't crash
-
 //:: Allow containers to be defined in mu code.
 
 :(scenarios load)