File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -138,13 +138,15 @@ class RsUnsafeExpressionErrorAnnotatorTest : RsAnnotatorTestBase(RsUnsafeExpress
138
138
139
139
@ProjectDescriptor(WithStdlibRustProjectDescriptor ::class )
140
140
fun `test need unsafe asm macro call` () = checkErrors("""
141
+ use std::arch::asm; // required since 1.59
141
142
fn main() {
142
143
<error descr="use of `asm!()` is unsafe and requires unsafe function or block [E0133]">asm!("nop")</error>;
143
144
}
144
145
""" )
145
146
146
147
@ProjectDescriptor(WithStdlibRustProjectDescriptor ::class )
147
148
fun `test need unsafe asm macro expr` () = checkErrors("""
149
+ use std::arch::asm; // required since 1.59
148
150
fn main() {
149
151
<error descr="use of `asm!()` is unsafe and requires unsafe function or block [E0133]">asm!("nop")</error>
150
152
}
Original file line number Diff line number Diff line change @@ -279,6 +279,8 @@ class RsStdlibResolveTest : RsResolveTestBase() {
279
279
fun `test asm macro` () = stubOnlyResolve("""
280
280
//- main.rs
281
281
#![feature(asm)]
282
+
283
+ use std::arch::asm; // required since 1.59
282
284
fn main() {
283
285
asm!("nop");
284
286
} //^ ...libcore/macros/mod.rs|...core/src/macros/mod.rs|...core/src/lib.rs
You can’t perform that action at this time.
0 commit comments