Volatile option in new asm! macro

Instead of having to explicitly use volatile, volatile is the default and you have to opt-out if you want using pure. This is done to prevent forgetting to use volatile when you need to.

https://github.com/rust-lang/rust/pull/69171/files#diff-6e23b9d7fff06f32f7b69cd2e63b0826R265

let volatile = !options.contains(InlineAsmOptions::PURE);
3 Likes