Skip to content

Commit bb1480b

Browse files
committed
Remove unused directives
1 parent be38da8 commit bb1480b

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

tests/compiletests/ui/lang/core/intrinsics/black_box.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// build-pass
22
// compile-flags: -C llvm-args=--disassemble-fn=black_box::disassemble
33
#![no_std]
4-
#![allow(internal_features)]
5-
#![feature(core_intrinsics)]
64

75
use core::hint::black_box;
86
use spirv_std::spirv;
@@ -16,8 +14,6 @@ pub fn main(#[spirv(descriptor_set = 0, binding = 0, storage_buffer)] out: &mut
1614
}
1715
}
1816

19-
// Exercise scalars, arrays, references, pairs, and ZSTs
20-
// This ensures each `black_box` backend path is hit: Immediate, Ref, Pair, ZeroSized.
2117
#[inline(never)]
2218
pub fn disassemble() -> [u32; 12] {
2319
let x = 42i32;

tests/compiletests/ui/lang/core/intrinsics/black_box.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ warning: black_box intrinsic does not prevent optimization in Rust GPU
22

33
%1 = OpFunction %2 DontInline %3
44
%4 = OpLabel
5-
OpLine %5 39 17
5+
OpLine %5 32 17
66
%6 = OpIAdd %7 %8 %9
7-
OpLine %5 48 19
7+
OpLine %5 41 19
88
%10 = OpIAdd %7 %11 %12
9-
OpLine %5 54 8
9+
OpLine %5 47 8
1010
%13 = OpBitcast %7 %14
1111
OpLine %15 1092 17
1212
%16 = OpBitcast %7 %17
13-
OpLine %5 53 4
13+
OpLine %5 46 4
1414
%18 = OpCompositeConstruct %2 %13 %16 %19 %20 %21 %22 %6 %23 %10 %24 %24 %24
1515
OpNoLine
1616
OpReturnValue %18

0 commit comments

Comments
 (0)