Skip to content

Commit fb42fac

Browse files
Bless tests for portable-simd sync
API changes resulted in subtle MIR and impl differences
1 parent d8448c7 commit fb42fac

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/mir-opt/lower_intrinsics.wrapping.LowerIntrinsics.diff

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
_4 = _1; // scope 0 at $DIR/lower_intrinsics.rs:+1:45: +1:46
3131
StorageLive(_5); // scope 0 at $DIR/lower_intrinsics.rs:+1:48: +1:49
3232
_5 = _2; // scope 0 at $DIR/lower_intrinsics.rs:+1:48: +1:49
33-
- _3 = wrapping_add::<i32>(move _4, move _5) -> [return: bb1, unwind unreachable]; // scope 0 at $DIR/lower_intrinsics.rs:+1:14: +1:50
33+
- _3 = std::intrinsics::wrapping_add::<i32>(move _4, move _5) -> [return: bb1, unwind unreachable]; // scope 0 at $DIR/lower_intrinsics.rs:+1:14: +1:50
3434
- // mir::Constant
3535
- // + span: $DIR/lower_intrinsics.rs:9:14: 9:44
36-
- // + literal: Const { ty: extern "rust-intrinsic" fn(i32, i32) -> i32 {wrapping_add::<i32>}, val: Value(<ZST>) }
36+
- // + literal: Const { ty: extern "rust-intrinsic" fn(i32, i32) -> i32 {std::intrinsics::wrapping_add::<i32>}, val: Value(<ZST>) }
3737
+ _3 = Add(move _4, move _5); // scope 0 at $DIR/lower_intrinsics.rs:+1:14: +1:50
3838
+ goto -> bb1; // scope 0 at $DIR/lower_intrinsics.rs:+1:14: +1:50
3939
}
@@ -46,10 +46,10 @@
4646
_7 = _1; // scope 1 at $DIR/lower_intrinsics.rs:+2:45: +2:46
4747
StorageLive(_8); // scope 1 at $DIR/lower_intrinsics.rs:+2:48: +2:49
4848
_8 = _2; // scope 1 at $DIR/lower_intrinsics.rs:+2:48: +2:49
49-
- _6 = wrapping_sub::<i32>(move _7, move _8) -> [return: bb2, unwind unreachable]; // scope 1 at $DIR/lower_intrinsics.rs:+2:14: +2:50
49+
- _6 = std::intrinsics::wrapping_sub::<i32>(move _7, move _8) -> [return: bb2, unwind unreachable]; // scope 1 at $DIR/lower_intrinsics.rs:+2:14: +2:50
5050
- // mir::Constant
5151
- // + span: $DIR/lower_intrinsics.rs:10:14: 10:44
52-
- // + literal: Const { ty: extern "rust-intrinsic" fn(i32, i32) -> i32 {wrapping_sub::<i32>}, val: Value(<ZST>) }
52+
- // + literal: Const { ty: extern "rust-intrinsic" fn(i32, i32) -> i32 {std::intrinsics::wrapping_sub::<i32>}, val: Value(<ZST>) }
5353
+ _6 = Sub(move _7, move _8); // scope 1 at $DIR/lower_intrinsics.rs:+2:14: +2:50
5454
+ goto -> bb2; // scope 1 at $DIR/lower_intrinsics.rs:+2:14: +2:50
5555
}

tests/ui/fmt/ifmt-unimpl.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ LL | format!("{:X}", "3");
1515
NonZeroI64
1616
NonZeroI8
1717
NonZeroIsize
18-
and 21 others
18+
and 20 others
1919
= note: required for `&str` to implement `UpperHex`
2020
note: required by a bound in `core::fmt::rt::Argument::<'a>::new_upper_hex`
2121
--> $SRC_DIR/core/src/fmt/rt.rs:LL:COL

0 commit comments

Comments
 (0)