Skip to content
This repository has been archived by the owner on Aug 19, 2019. It is now read-only.

oom() compile error (nightly change) #3

Closed
MarkSwanson opened this issue Apr 28, 2018 · 2 comments
Closed

oom() compile error (nightly change) #3

MarkSwanson opened this issue Apr 28, 2018 · 2 comments

Comments

@MarkSwanson
Copy link

MarkSwanson commented Apr 28, 2018

Just an fyi...

@MarkSwanson
Copy link
Author

MarkSwanson commented Apr 28, 2018

fyi this 'fixed' it for me: added to lib.rs:

+#![feature(lang_items)]
+#[lang = "oom"]
+fn oom() -> ! {
+    panic!("oom")
+}
+

In src/map.rs and src/table.rs I did things like:
+use oom;
-            Err(CollectionAllocErr::AllocErr) => Global.oom(),
+            Err(CollectionAllocErr::AllocErr) => oom(),

@Amanieu
Copy link
Owner

Amanieu commented Jan 20, 2019

Fixed by #10.

@Amanieu Amanieu closed this as completed Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants