@@ -89,7 +89,7 @@ error: fn_abi_of(test) = FnAbi {
89
89
conv: Rust,
90
90
can_unwind: $SOME_BOOL,
91
91
}
92
- --> $DIR/debug.rs:19 :1
92
+ --> $DIR/debug.rs:23 :1
93
93
|
94
94
LL | fn test(_x: u8) -> bool { true }
95
95
| ^^^^^^^^^^^^^^^^^^^^^^^
@@ -185,7 +185,7 @@ error: fn_abi_of(TestFnPtr) = FnAbi {
185
185
conv: Rust,
186
186
can_unwind: $SOME_BOOL,
187
187
}
188
- --> $DIR/debug.rs:22 :1
188
+ --> $DIR/debug.rs:26 :1
189
189
|
190
190
LL | type TestFnPtr = fn(bool) -> u8;
191
191
| ^^^^^^^^^^^^^^
@@ -263,13 +263,13 @@ error: fn_abi_of(test_generic) = FnAbi {
263
263
conv: Rust,
264
264
can_unwind: $SOME_BOOL,
265
265
}
266
- --> $DIR/debug.rs:25 :1
266
+ --> $DIR/debug.rs:29 :1
267
267
|
268
268
LL | fn test_generic<T>(_x: *const T) { }
269
269
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
270
270
271
271
error: `#[rustc_abi]` can only be applied to function items, type aliases, and associated functions
272
- --> $DIR/debug.rs:28 :1
272
+ --> $DIR/debug.rs:32 :1
273
273
|
274
274
LL | const C: () = ();
275
275
| ^^^^^^^^^^^
@@ -419,7 +419,7 @@ error: ABIs are not compatible
419
419
conv: Rust,
420
420
can_unwind: $SOME_BOOL,
421
421
}
422
- --> $DIR/debug.rs:44 :1
422
+ --> $DIR/debug.rs:48 :1
423
423
|
424
424
LL | type TestAbiNe = (fn(u8), fn(u32));
425
425
| ^^^^^^^^^^^^^^
@@ -571,7 +571,7 @@ error: ABIs are not compatible
571
571
conv: Rust,
572
572
can_unwind: $SOME_BOOL,
573
573
}
574
- --> $DIR/debug.rs:47 :1
574
+ --> $DIR/debug.rs:51 :1
575
575
|
576
576
LL | type TestAbiNeLarger = (fn([u8; 32]), fn([u32; 32]));
577
577
| ^^^^^^^^^^^^^^^^^^^^
@@ -720,7 +720,7 @@ error: ABIs are not compatible
720
720
conv: Rust,
721
721
can_unwind: $SOME_BOOL,
722
722
}
723
- --> $DIR/debug.rs:50 :1
723
+ --> $DIR/debug.rs:54 :1
724
724
|
725
725
LL | type TestAbiNeFloat = (fn(f32), fn(u32));
726
726
| ^^^^^^^^^^^^^^^^^^^
@@ -870,28 +870,27 @@ error: ABIs are not compatible
870
870
conv: Rust,
871
871
can_unwind: $SOME_BOOL,
872
872
}
873
- --> $DIR/debug.rs:54 :1
873
+ --> $DIR/debug.rs:58 :1
874
874
|
875
875
LL | type TestAbiNeSign = (fn(i32), fn(u32));
876
876
| ^^^^^^^^^^^^^^^^^^
877
877
878
- error[E0277]: the size for values of type `str` cannot be known at compilation time
879
- --> $DIR/debug.rs:57 :46
878
+ error[E0277]: the trait bound `str: Sized` is not satisfied
879
+ --> $DIR/debug.rs:61 :46
880
880
|
881
881
LL | type TestAbiEqNonsense = (fn((str, str)), fn((str, str)));
882
- | ^^^^^^^^^^ doesn't have a size known at compile-time
882
+ | ^^^^^^^^^^ the trait `Sized` is not implemented for `str`
883
883
|
884
- = help: the trait `Sized` is not implemented for `str`
885
884
= note: only the last element of a tuple may have a dynamically sized type
886
885
887
886
error: unrecognized argument
888
- --> $DIR/debug.rs:59 :13
887
+ --> $DIR/debug.rs:63 :13
889
888
|
890
889
LL | #[rustc_abi("assert_eq")]
891
890
| ^^^^^^^^^^^
892
891
893
892
error: `#[rustc_abi]` can only be applied to function items, type aliases, and associated functions
894
- --> $DIR/debug.rs:32 :5
893
+ --> $DIR/debug.rs:36 :5
895
894
|
896
895
LL | const C: () = ();
897
896
| ^^^^^^^^^^^
@@ -981,7 +980,7 @@ error: fn_abi_of(assoc_test) = FnAbi {
981
980
conv: Rust,
982
981
can_unwind: $SOME_BOOL,
983
982
}
984
- --> $DIR/debug.rs:37 :5
983
+ --> $DIR/debug.rs:41 :5
985
984
|
986
985
LL | fn assoc_test(&self) { }
987
986
| ^^^^^^^^^^^^^^^^^^^^
0 commit comments