Advertisement
Stovent

Rust core compilation errors

Feb 9th, 2022
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.49 KB | None | 0 0
  1. Checking core v0.0.0 (C:\Users\Stovent\Documents\Dev\rust\library\core)
  2. error: cannot find a built-in macro with name `unreachable`
  3. --> library\core\src\macros\mod.rs:603:1
  4. |
  5. 603 | / macro_rules! unreachable {
  6. 604 | | // Expands to either `$crate::panic::unreachable_2015` or `$crate::panic::unreachable_2021`
  7. 605 | | // depending on the edition of the caller.
  8. 606 | | ($($arg:tt)*) => {
  9. 607 | | /* compiler built-in */
  10. 608 | | };
  11. 609 | | }
  12. | |_^
  13.  
  14. error: macro expansion ends with an incomplete expression: expected expression
  15. --> library\core\src\iter\adapters\zip.rs:192:22
  16. |
  17. 192 | _ => unreachable!(),
  18. | ^^^^^^^^^^^^^^ expected expression
  19. ...
  20. 207 | zip_impl_general_defaults! {}
  21. | ----------------------------- in this macro invocation
  22. |
  23. ::: library\core\src\macros\mod.rs:606:22
  24. |
  25. 606 | ($($arg:tt)*) => {
  26. | ______________________-
  27. 607 | | /* compiler built-in */
  28. 608 | | };
  29. | |_____- in this macro arm
  30. |
  31. = note: the macro call doesn't expand to an expression, but it can expand to a statement
  32. = note: this error originates in the macro `zip_impl_general_defaults` (in Nightly builds, run with -Z macro-backtrace for more info)
  33. help: add `;` to interpret the expansion as a statement
  34. |
  35. 192 | _ => unreachable!();,
  36. | +
  37.  
  38. error: macro expansion ends with an incomplete expression: expected expression
  39. --> library\core\src\iter\adapters\zip.rs:192:22
  40. |
  41. 192 | _ => unreachable!(),
  42. | ^^^^^^^^^^^^^^ expected expression
  43. ...
  44. 240 | zip_impl_general_defaults! {}
  45. | ----------------------------- in this macro invocation
  46. |
  47. ::: library\core\src\macros\mod.rs:606:22
  48. |
  49. 606 | ($($arg:tt)*) => {
  50. | ______________________-
  51. 607 | | /* compiler built-in */
  52. 608 | | };
  53. | |_____- in this macro arm
  54. |
  55. = note: the macro call doesn't expand to an expression, but it can expand to a statement
  56. = note: this error originates in the macro `zip_impl_general_defaults` (in Nightly builds, run with -Z macro-backtrace for more info)
  57. help: add `;` to interpret the expansion as a statement
  58. |
  59. 192 | _ => unreachable!();,
  60. | +
  61.  
  62. error: macro expansion ends with an incomplete expression: expected expression
  63. --> library\core\src\lazy.rs:59:27
  64. |
  65. 59 | Err(_) => unreachable!(),
  66. | ^^^^^^^^^^^^^^ expected expression
  67. |
  68. ::: library\core\src\macros\mod.rs:606:22
  69. |
  70. 606 | ($($arg:tt)*) => {
  71. | ______________________-
  72. 607 | | /* compiler built-in */
  73. 608 | | };
  74. | |_____- in this macro arm
  75. |
  76. = note: the macro call doesn't expand to an expression, but it can expand to a statement
  77. help: add `;` to interpret the expansion as a statement
  78. |
  79. 59 | Err(_) => unreachable!();,
  80. | +
  81.  
  82. error: macro expansion ends with an incomplete expression: expected expression
  83. --> library\core\src\slice\mod.rs:101:14
  84. |
  85. 101 | _ => unreachable!(),
  86. | ^^^^^^^^^^^^^^ expected expression
  87. |
  88. ::: library\core\src\macros\mod.rs:606:22
  89. |
  90. 606 | ($($arg:tt)*) => {
  91. | ______________________-
  92. 607 | | /* compiler built-in */
  93. 608 | | };
  94. | |_____- in this macro arm
  95. |
  96. = note: the macro call doesn't expand to an expression, but it can expand to a statement
  97. help: add `;` to interpret the expansion as a statement
  98. |
  99. 101 | _ => unreachable!();,
  100. | +
  101.  
  102. error: macro expansion ends with an incomplete expression: expected expression
  103. --> library\core\src\future\join.rs:166:22
  104. |
  105. 166 | _ => unreachable!(),
  106. | ^^^^^^^^^^^^^^ expected expression
  107. |
  108. ::: library\core\src\macros\mod.rs:606:22
  109. |
  110. 606 | ($($arg:tt)*) => {
  111. | ______________________-
  112. 607 | | /* compiler built-in */
  113. 608 | | };
  114. | |_____- in this macro arm
  115. |
  116. = note: the macro call doesn't expand to an expression, but it can expand to a statement
  117. help: add `;` to interpret the expansion as a statement
  118. |
  119. 166 | _ => unreachable!();,
  120. | +
  121.  
  122. error: macro expansion ends with an incomplete expression: expected expression
  123. --> library\core\src\future\join.rs:187:37
  124. |
  125. 187 | MaybeDone::Taken => unreachable!(),
  126. | ^^^^^^^^^^^^^^ expected expression
  127. |
  128. ::: library\core\src\macros\mod.rs:606:22
  129. |
  130. 606 | ($($arg:tt)*) => {
  131. | ______________________-
  132. 607 | | /* compiler built-in */
  133. 608 | | };
  134. | |_____- in this macro arm
  135. |
  136. = note: the macro call doesn't expand to an expression, but it can expand to a statement
  137. help: add `;` to interpret the expansion as a statement
  138. |
  139. 187 | MaybeDone::Taken => unreachable!();,
  140. | +
  141.  
  142. error[E0308]: mismatched types
  143. --> library\core\src\iter\adapters\zip.rs:226:64
  144. |
  145. 226 | default unsafe fn get_unchecked(&mut self, _idx: usize) -> <Self as Iterator>::Item
  146. | ------------- ^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found `()`
  147. | |
  148. | implicitly returns `()` as its body has no tail or `return` expression
  149. |
  150. = note: expected tuple `(<A as Iterator>::Item, <B as Iterator>::Item)`
  151. found unit type `()`
  152.  
  153. error[E0308]: mismatched types
  154. --> library\core\src\iter\traits\iterator.rs:3588:5
  155. |
  156. 3588 | / {
  157. 3589 | | unreachable!("Always specialized");
  158. 3590 | | }
  159. | |_____^ expected associated type, found `()`
  160. |
  161. = note: expected associated type `<Self as Iterator>::Item`
  162. found unit type `()`
  163. = help: consider constraining the associated type `<Self as Iterator>::Item` to `()` or calling a method that returns `<Self as Iterator>::Item`
  164. = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
  165.  
  166. For more information about this error, try `rustc --explain E0308`.
  167. error: could not compile `core` due to 9 previous errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement