Skip to content

fix compilation to ARMv6-M with +alloc#290

Merged
japaric merged 4 commits intomainfrom
fix-v6m
Nov 30, 2020
Merged

fix compilation to ARMv6-M with +alloc#290
japaric merged 4 commits intomainfrom
fix-v6m

Conversation

@japaric
Copy link
Copy Markdown
Member

@japaric japaric commented Nov 30, 2020

fixes #285

explanation: there's no Arc type in the alloc crate (or the standard library) when you compile for ARMv6-M because the type uses CAS operations (compare_and_swap) in its implementation and that API is not available on ARMv6-M. this PR fixes the issue by omitting the impl Format for Arc when the target is ARMv6-M

actually there are more "no CAS" targets than ARMv6-M so this PR does the same for all those (that we know of as of rust 1.48)

@japaric japaric merged commit a83a8f3 into main Nov 30, 2020
@japaric japaric deleted the fix-v6m branch November 30, 2020 14:17
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.

docs.rs fails to build defmt

2 participants