| 
1 | 1 | error: intrinsic safety mismatch between list of intrinsics within the compiler and core library intrinsics for intrinsic `size_of`  | 
2 |  | -  --> $DIR/safe-intrinsic-mismatch.rs:5:5  | 
 | 2 | +  --> $DIR/safe-intrinsic-mismatch.rs:6:5  | 
3 | 3 |    |  | 
4 | 4 | LL |     fn size_of<T>() -> usize;  | 
5 | 5 |    |     ^^^^^^^^^^^^^^^^^^^^^^^^  | 
6 | 6 | 
 
  | 
7 | 7 | error: intrinsic safety mismatch between list of intrinsics within the compiler and core library intrinsics for intrinsic `assume`  | 
8 |  | -  --> $DIR/safe-intrinsic-mismatch.rs:9:5  | 
 | 8 | +  --> $DIR/safe-intrinsic-mismatch.rs:10:5  | 
9 | 9 |    |  | 
10 | 10 | LL |     fn assume(b: bool);  | 
11 | 11 |    |     ^^^^^^^^^^^^^^^^^^  | 
12 | 12 | 
 
  | 
13 | 13 | error: intrinsic safety mismatch between list of intrinsics within the compiler and core library intrinsics for intrinsic `size_of`  | 
14 |  | -  --> $DIR/safe-intrinsic-mismatch.rs:5:5  | 
 | 14 | +  --> $DIR/safe-intrinsic-mismatch.rs:6:5  | 
15 | 15 |    |  | 
16 | 16 | LL |     fn size_of<T>() -> usize;  | 
17 | 17 |    |     ^^^^^^^^^^^^^^^^^^^^^^^^  | 
18 | 18 |    |  | 
19 | 19 |    = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`  | 
20 | 20 | 
 
  | 
21 | 21 | error: intrinsic safety mismatch between list of intrinsics within the compiler and core library intrinsics for intrinsic `assume`  | 
22 |  | -  --> $DIR/safe-intrinsic-mismatch.rs:9:5  | 
 | 22 | +  --> $DIR/safe-intrinsic-mismatch.rs:10:5  | 
23 | 23 |    |  | 
24 | 24 | LL |     fn assume(b: bool);  | 
25 | 25 |    |     ^^^^^^^^^^^^^^^^^^  | 
26 | 26 |    |  | 
27 | 27 |    = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`  | 
28 | 28 | 
 
  | 
29 |  | -error: aborting due to 4 previous errors  | 
 | 29 | +error: intrinsic safety mismatch between list of intrinsics within the compiler and core library intrinsics for intrinsic `const_deallocate`  | 
 | 30 | +  --> $DIR/safe-intrinsic-mismatch.rs:15:1  | 
 | 31 | +   |  | 
 | 32 | +LL | const fn const_deallocate(_ptr: *mut u8, _size: usize, _align: usize) {}  | 
 | 33 | +   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  | 
 | 34 | + | 
 | 35 | +error[E0308]: intrinsic has wrong type  | 
 | 36 | +  --> $DIR/safe-intrinsic-mismatch.rs:15:26  | 
 | 37 | +   |  | 
 | 38 | +LL | const fn const_deallocate(_ptr: *mut u8, _size: usize, _align: usize) {}  | 
 | 39 | +   |                          ^ expected unsafe fn, found normal fn  | 
 | 40 | +   |  | 
 | 41 | +   = note: expected signature `unsafe fn(_, _, _)`  | 
 | 42 | +              found signature `fn(_, _, _)`  | 
 | 43 | + | 
 | 44 | +error[E0094]: intrinsic has wrong number of const parameters: found 0, expected 1  | 
 | 45 | +  --> $DIR/safe-intrinsic-mismatch.rs:21:31  | 
 | 46 | +   |  | 
 | 47 | +LL |     unsafe fn const_deallocate(_ptr: *mut u8, _size: usize, _align: usize) {}  | 
 | 48 | +   |                               ^ expected 1 const parameter  | 
 | 49 | + | 
 | 50 | +error: aborting due to 7 previous errors  | 
30 | 51 | 
 
  | 
 | 52 | +Some errors have detailed explanations: E0094, E0308.  | 
 | 53 | +For more information about an error, try `rustc --explain E0094`.  | 
0 commit comments