aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/examples/data_overflow.rs
diff options
context:
space:
mode:
authorGravatar bors[bot] <bors[bot]@users.noreply.github.com> 2018-09-17 22:52:01 +0000
committerGravatar bors[bot] <bors[bot]@users.noreply.github.com> 2018-09-17 22:52:01 +0000
commit98ce8a1f5d30e3c5c421c0e9c19c078cea7c0473 (patch)
tree9f2f8e03f77a604b3669c26232873b3c527f2f61 /cortex-m-rt/examples/data_overflow.rs
parent403d8881ac3be806b519dedf107f6038d220bb59 (diff)
parent8385882be93fd4ba4e20ea0a812766cdc1a74c33 (diff)
downloadcortex-m-98ce8a1f5d30e3c5c421c0e9c19c078cea7c0473.tar.gz
cortex-m-98ce8a1f5d30e3c5c421c0e9c19c078cea7c0473.tar.zst
cortex-m-98ce8a1f5d30e3c5c421c0e9c19c078cea7c0473.zip
Merge #123
123: respect declared unsafety r=therealprof a=japaric the `#[entry]` and `#[exception]` attributes ignored the declared unsafety and always expanded to a safe function. This caused the following valid code to error at compile time: ``` rust #[entry] unsafe fn main() -> ! { foo(); //~^ ERROR call to unsafe function is unsafe and requires unsafe function or block loop {} } unsafe fn foo() {} ``` r? @rust-embedded/cortex-m (anyone) Co-authored-by: Jorge Aparicio <jorge@japaric.io>
Diffstat (limited to 'cortex-m-rt/examples/data_overflow.rs')
0 files changed, 0 insertions, 0 deletions