Skip to content
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

Revert back DMA API to StableDeref #100

Merged
merged 1 commit into from
Apr 9, 2020

Conversation

thalesfragoso
Copy link
Member

@thalesfragoso thalesfragoso commented Apr 6, 2020

In #94 I suggested that there wasn't a need for StableDeref if we had 'static. I was wrong, right now the DMA API is unsound. This PR reverts back to StableDeref.

Blocked on rust-embedded/heapless#148

@thalesfragoso thalesfragoso marked this pull request as ready for review April 6, 2020 20:33
@thalesfragoso
Copy link
Member Author

This should be ready for review/merge now.

Copy link
Collaborator

@korken89 korken89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@korken89
Copy link
Collaborator

korken89 commented Apr 7, 2020

Lets just wait for @MabezDev to have time to review this :)

@MabezDev
Copy link
Member

MabezDev commented Apr 9, 2020

Interesting, is there somewhere I can read the discussion as to why it was unsound?

Either way, LGTM!

@MabezDev MabezDev merged commit be8c4ea into stm32-rs:master Apr 9, 2020
@thalesfragoso
Copy link
Member Author

thalesfragoso commented Apr 10, 2020

@MabezDev Most of the discussion was in the matrix chat, but this kinda sums it up:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=aeb00197cc728944d1bc4290d28eead5

And also, see this:
rust-embedded/embedonomicon#64

@thalesfragoso thalesfragoso deleted the stable-deref branch July 19, 2020 02:55
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 this pull request may close these issues.

3 participants