Skip to content

Functions of core::fmt do not work #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Woyten opened this issue Mar 13, 2018 · 1 comment · Fixed by #73
Closed

Functions of core::fmt do not work #19

Woyten opened this issue Mar 13, 2018 · 1 comment · Fixed by #73

Comments

@Woyten
Copy link
Contributor

Woyten commented Mar 13, 2018

Formatting functions (probably all) like Debug::debug or the format! macro do not work in libtock-rs. They crash the program without any noticeable panics.

I can only guess but the problem might have the same cause as avr-rust/rust-legacy-fork/issues/37.

@alevy
Copy link
Member

alevy commented Mar 13, 2018

The reason is (almost certainly) because they compile to using vtables, which are going to require some relocation to work, unfortunately...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants