Skip to content

Commit 345b41b

Browse files
committed
uwu
1 parent 6e85685 commit 345b41b

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

tests/mir-opt/build_correct_coerce.main.built.after.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fn main() -> () {
99

1010
bb0: {
1111
StorageLive(_1);
12-
_1 = foo as for<'a> fn(&'a (), &'a ()) (PointerCoercion(ReifyFnPointer(Safe), AsCast));
12+
_1 = foo as for<'a> fn(&'a (), &'a ()) (PointerCoercion(ReifyFnPointer, AsCast));
1313
FakeRead(ForLet(None), _1);
1414
_0 = const ();
1515
StorageDead(_1);

tests/mir-opt/const_prop/reify_fn_ptr.main.GVN.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
StorageLive(_1);
1414
StorageLive(_2);
1515
StorageLive(_3);
16-
_3 = main as fn() (PointerCoercion(ReifyFnPointer(Safe), AsCast));
16+
_3 = main as fn() (PointerCoercion(ReifyFnPointer, AsCast));
1717
_2 = move _3 as usize (PointerExposeProvenance);
1818
StorageDead(_3);
1919
_1 = move _2 as *const fn() (PointerWithExposedProvenance);

tests/mir-opt/const_prop/reify_fn_ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
fn main() {
55
// CHECK-LABEL: fn main(
6-
// CHECK: [[ptr:_.*]] = main as fn() (PointerCoercion(ReifyFnPointer(Safe), AsCast));
6+
// CHECK: [[ptr:_.*]] = main as fn() (PointerCoercion(ReifyFnPointer, AsCast));
77
// CHECK: [[addr:_.*]] = move [[ptr]] as usize (PointerExposeProvenance);
88
// CHECK: [[back:_.*]] = move [[addr]] as *const fn() (PointerWithExposedProvenance);
99
let _ = main as usize as *const fn();

tests/mir-opt/gvn.fn_pointers.GVN.panic-abort.diff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
bb0: {
3838
- StorageLive(_1);
3939
+ nop;
40-
_1 = identity::<u8> as fn(u8) -> u8 (PointerCoercion(ReifyFnPointer(Safe), AsCast));
40+
_1 = identity::<u8> as fn(u8) -> u8 (PointerCoercion(ReifyFnPointer, AsCast));
4141
StorageLive(_2);
4242
StorageLive(_3);
4343
_3 = copy _1;
@@ -50,7 +50,7 @@
5050
StorageDead(_2);
5151
- StorageLive(_4);
5252
+ nop;
53-
_4 = identity::<u8> as fn(u8) -> u8 (PointerCoercion(ReifyFnPointer(Safe), AsCast));
53+
_4 = identity::<u8> as fn(u8) -> u8 (PointerCoercion(ReifyFnPointer, AsCast));
5454
StorageLive(_5);
5555
StorageLive(_6);
5656
_6 = copy _4;

tests/mir-opt/gvn.fn_pointers.GVN.panic-unwind.diff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
bb0: {
3838
- StorageLive(_1);
3939
+ nop;
40-
_1 = identity::<u8> as fn(u8) -> u8 (PointerCoercion(ReifyFnPointer(Safe), AsCast));
40+
_1 = identity::<u8> as fn(u8) -> u8 (PointerCoercion(ReifyFnPointer, AsCast));
4141
StorageLive(_2);
4242
StorageLive(_3);
4343
_3 = copy _1;
@@ -50,7 +50,7 @@
5050
StorageDead(_2);
5151
- StorageLive(_4);
5252
+ nop;
53-
_4 = identity::<u8> as fn(u8) -> u8 (PointerCoercion(ReifyFnPointer(Safe), AsCast));
53+
_4 = identity::<u8> as fn(u8) -> u8 (PointerCoercion(ReifyFnPointer, AsCast));
5454
StorageLive(_5);
5555
StorageLive(_6);
5656
_6 = copy _4;

0 commit comments

Comments
 (0)