diff options
author | 2020-03-15 23:29:28 +0000 | |
---|---|---|
committer | 2020-03-15 23:29:33 +0000 | |
commit | 715e59506e3a4482500f252270b42f12e2498849 (patch) | |
tree | 5467e381da92944e7c0e266ba03fbcfad25e1650 /src/asm.rs | |
parent | e3d7092189b76ff31edc24b43e6d2a75c84b6358 (diff) | |
download | cortex-m-715e59506e3a4482500f252270b42f12e2498849.tar.gz cortex-m-715e59506e3a4482500f252270b42f12e2498849.tar.zst cortex-m-715e59506e3a4482500f252270b42f12e2498849.zip |
Swap infinite loops for unreachable_unchecked()
Diffstat (limited to 'src/asm.rs')
-rw-r--r-- | src/asm.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -91,7 +91,7 @@ pub fn udf() -> ! { #[cfg(all(cortex_m, feature = "inline-asm"))] () => unsafe { asm!("udf" :::: "volatile"); - loop { continue } + core::hint::unreachable_unchecked(); }, #[cfg(all(cortex_m, not(feature = "inline-asm")))] @@ -102,7 +102,7 @@ pub fn udf() -> ! { __udf(); - loop { continue } + core::hint::unreachable_unchecked(); }, #[cfg(not(cortex_m))] |