Skip to content

Commit 3ea5744

Browse files
committed
mark interrupts tokens as !Send
1 parent fab4c98 commit 3ea5744

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
## [v0.7.2] - 2017-05-08
11+
12+
### Fixed
13+
14+
- Mark interrupt tokens as `!Send`. This is required to fully fix the memory
15+
unsafety bug reported in japaric/cortex-m#27.
16+
1017
## [v0.7.1] - 2017-05-07
1118

1219
### Added

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ keywords = ["arm", "cortex-m", "register", "map", "generator"]
88
license = "MIT OR Apache-2.0"
99
name = "svd2rust"
1010
repository = "https://github.com/japaric/svd2rust"
11-
version = "0.7.1"
11+
version = "0.7.2"
1212

1313
[dependencies]
1414
cast = "0.2.0"

src/generate.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ pub fn device(d: &Device, items: &mut Vec<Tokens>) -> Result<()> {
2525
#![deny(missing_docs)]
2626
#![deny(warnings)]
2727
#![feature(const_fn)]
28+
#![feature(optin_builtin_traits)]
2829
#![no_std]
2930

3031
extern crate cortex_m;
@@ -156,6 +157,7 @@ pub fn interrupt(peripherals: &[Peripheral], items: &mut Vec<Tokens>) {
156157
#value
157158
}
158159
}
160+
impl !Send for #name_pc {}
159161
},
160162
);
161163

0 commit comments

Comments
 (0)