Advertisement
Guest User

Untitled

a guest
Mar 26th, 2025
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 71.89 KB | None | 0 0
  1. Compiling rustc_codegen_nvvm v0.3.0
  2. warning: unexpected `cfg` condition value: `nvptx`
  3. --> matmul/src/lib.rs:5:1
  4. |
  5. 5 | #[kernel]
  6. | ^^^^^^^^^
  7. |
  8. = note: expected values for `target_arch` are: `aarch64`, `arm`, `arm64ec`, `avr`, `bpf`, `csky`, `hexagon`, `loongarch64`, `m68k`, `mips`, `mips32r6`, `mips64`, `mips64r6`, `msp430`, `nvptx64`, `powerpc`, `powerpc64`, `riscv32`, `riscv64`, `s390x`, `sparc`, `sparc64`, `wasm32`, `wasm64`, `x86`, `x86_64`, and `xtensa`
  9. = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate
  10. = help: try referring to `kernel` crate for guidance on how handle this unexpected cfg
  11. = help: the attribute macro `kernel` may come from an old version of the `cuda_std_macros` crate, try updating your dependency with `cargo update -p cuda_std_macros`
  12. = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
  13. = note: `#[warn(unexpected_cfgs)]` on by default
  14. = note: this warning originates in the attribute macro `kernel` (in Nightly builds, run with -Z macro-backtrace for more info)
  15.  
  16. warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
  17. --> matmul/src/lib.rs:9:25
  18. |
  19. 9 | let elem = &mut *c.add(idx);
  20. | ^^^^^^^^^^^ dereference of raw pointer
  21. |
  22. = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
  23. = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
  24. note: an unsafe function restricts its caller, but its body is safe by default
  25. --> matmul/src/lib.rs:6:1
  26. |
  27. 6 | pub unsafe fn add(a: &[f32], b: &[f32], c: *mut f32) {
  28. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  29. = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default
  30.  
  31. warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
  32. --> matmul/src/lib.rs:9:26
  33. |
  34. 9 | let elem = &mut *c.add(idx);
  35. | ^^^^^^^^^^ call to unsafe function
  36. |
  37. = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
  38. = note: consult the function's documentation for information on how to avoid undefined behavior
  39.  
  40. warning: `extern` fn uses type `[f32]`, which is not FFI-safe
  41. --> matmul/src/lib.rs:6:22
  42. |
  43. 6 | pub unsafe fn add(a: &[f32], b: &[f32], c: *mut f32) {
  44. | ^^^^^^ not FFI-safe
  45. |
  46. = help: consider using a raw pointer instead
  47. = note: slices have no C equivalent
  48. = note: `#[warn(improper_ctypes_definitions)]` on by default
  49.  
  50. warning: `extern` fn uses type `[f32]`, which is not FFI-safe
  51. --> matmul/src/lib.rs:6:33
  52. |
  53. 6 | pub unsafe fn add(a: &[f32], b: &[f32], c: *mut f32) {
  54. | ^^^^^^ not FFI-safe
  55. |
  56. = help: consider using a raw pointer instead
  57. = note: slices have no C equivalent
  58.  
  59. For more information about this error, try `rustc --explain E0133`.
  60. warning: `matmul` (lib) generated 5 warnings (run `cargo fix --lib -p matmul` to apply 1 suggestion)
  61. error[E0463]: can't find crate for `rustc_attr`
  62. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:10:1
  63. |
  64. 10 | extern crate rustc_attr;
  65. | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
  66. |
  67. = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
  68.  
  69. error[E0432]: unresolved import `rustc_codegen_ssa::traits::BaseTypeMethods`
  70. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/abi.rs:9:5
  71. |
  72. 9 | use rustc_codegen_ssa::traits::BaseTypeMethods;
  73. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `BaseTypeMethods` in `traits`
  74.  
  75. error[E0432]: unresolved imports `rustc_middle::ty::layout::FAT_PTR_ADDR`, `rustc_middle::ty::layout::FAT_PTR_EXTRA`
  76. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/abi.rs:13:36
  77. |
  78. 13 | pub use rustc_middle::ty::layout::{FAT_PTR_ADDR, FAT_PTR_EXTRA};
  79. | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ no `FAT_PTR_EXTRA` in `ty::layout`
  80. | |
  81. | no `FAT_PTR_ADDR` in `ty::layout`
  82. |
  83. help: a similar name exists in the module
  84. |
  85. 13 | pub use rustc_middle::ty::layout::{WIDE_PTR_ADDR, FAT_PTR_EXTRA};
  86. | ~~~~~~~~~~~~~
  87. help: a similar name exists in the module
  88. |
  89. 13 | pub use rustc_middle::ty::layout::{FAT_PTR_ADDR, WIDE_PTR_EXTRA};
  90. | ~~~~~~~~~~~~~~
  91.  
  92. error[E0432]: unresolved import `rustc_ast::LlvmAsmDialect`
  93. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/asm.rs:7:59
  94. |
  95. 7 | use rustc_ast::{InlineAsmOptions, InlineAsmTemplatePiece, LlvmAsmDialect};
  96. | ^^^^^^^^^^^^^^ no `LlvmAsmDialect` in the root
  97.  
  98. error[E0432]: unresolved imports `rustc_codegen_ssa::traits::AsmMethods`, `rustc_codegen_ssa::traits::BaseTypeMethods`, `rustc_codegen_ssa::traits::ConstMethods`
  99. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/asm.rs:11:28
  100. |
  101. 11 | AsmBuilderMethods, AsmMethods, BaseTypeMethods, BuilderMethods, ConstMethods,
  102. | ^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ no `ConstMethods` in `traits`
  103. | | |
  104. | | no `BaseTypeMethods` in `traits`
  105. | no `AsmMethods` in `traits`
  106.  
  107. error[E0432]: unresolved import `rustc_hir::LlvmInlineAsmInner`
  108. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/asm.rs:16:5
  109. |
  110. 16 | use rustc_hir::LlvmInlineAsmInner;
  111. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `LlvmInlineAsmInner` in the root
  112.  
  113. error[E0432]: unresolved import `rustc_ast::Lit`
  114. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/attributes.rs:2:28
  115. |
  116. 2 | use rustc_ast::{Attribute, Lit, LitKind};
  117. | ^^^ no `Lit` in the root
  118. |
  119. = help: consider importing one of these items instead:
  120. rustc_ast::ExprKind::Lit
  121. rustc_ast::MetaItemInner::Lit
  122. rustc_ast::PatKind::Lit
  123. rustc_ast::token::Lit
  124. rustc_hir::ExprKind::Lit
  125. rustc_hir::Lit
  126. rustc_hir::PatKind::Lit
  127.  
  128. error[E0432]: unresolved imports `rustc_codegen_ssa::traits::DebugInfoMethods`, `rustc_codegen_ssa::traits::MiscMethods`
  129. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/back.rs:6:33
  130. |
  131. 6 | use rustc_codegen_ssa::traits::{DebugInfoMethods, MiscMethods};
  132. | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ no `MiscMethods` in `traits`
  133. | |
  134. | no `DebugInfoMethods` in `traits`
  135.  
  136. error[E0432]: unresolved import `rustc_codegen_ssa::traits::BaseTypeMethods`
  137. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/back.rs:11:14
  138. |
  139. 11 | traits::{BaseTypeMethods, ThinBufferMethods},
  140. | ^^^^^^^^^^^^^^^ no `BaseTypeMethods` in `traits`
  141.  
  142. error[E0432]: unresolved import `rustc_errors::Handler`
  143. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/back.rs:15:32
  144. |
  145. 15 | use rustc_errors::{FatalError, Handler};
  146. | ^^^^^^^ no `Handler` in the root
  147.  
  148. error[E0432]: unresolved imports `rustc_codegen_ssa::traits::BaseTypeMethods`, `rustc_codegen_ssa::traits::ConstMethods`, `rustc_codegen_ssa::traits::DerivedTypeMethods`, `rustc_codegen_ssa::traits::MiscMethods`, `rustc_codegen_ssa::traits::StaticMethods`
  149. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/const_ty.rs:8:14
  150. |
  151. 8 | traits::{BaseTypeMethods, ConstMethods, DerivedTypeMethods, MiscMethods, StaticMethods},
  152. | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ no `StaticMethods` in `traits`
  153. | | | | |
  154. | | | | no `MiscMethods` in `traits`
  155. | | | no `DerivedTypeMethods` in `traits`
  156. | | no `ConstMethods` in `traits`
  157. | no `BaseTypeMethods` in `traits`
  158.  
  159. error[E0432]: unresolved imports `rustc_codegen_ssa::traits::BaseTypeMethods`, `rustc_codegen_ssa::traits::ConstMethods`, `rustc_codegen_ssa::traits::DerivedTypeMethods`, `rustc_codegen_ssa::traits::MiscMethods`, `rustc_codegen_ssa::traits::StaticMethods`
  160. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/consts.rs:7:5
  161. |
  162. 7 | BaseTypeMethods, ConstMethods, DerivedTypeMethods, MiscMethods, StaticMethods,
  163. | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ no `StaticMethods` in `traits`
  164. | | | | |
  165. | | | | no `MiscMethods` in `traits`
  166. | | | no `DerivedTypeMethods` in `traits`
  167. | | no `ConstMethods` in `traits`
  168. | no `BaseTypeMethods` in `traits`
  169.  
  170. error[E0432]: unresolved imports `rustc_codegen_ssa::traits::BaseTypeMethods`, `rustc_codegen_ssa::traits::CoverageInfoMethods`, `rustc_codegen_ssa::traits::MiscMethods`
  171. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:7:47
  172. |
  173. 7 | use rustc_codegen_ssa::traits::{BackendTypes, BaseTypeMethods, CoverageInfoMethods, MiscMethods};
  174. | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ no `MiscMethods` in `traits`
  175. | | |
  176. | | no `CoverageInfoMethods` in `traits`
  177. | | help: a similar name exists in the module: `CodegenMethods`
  178. | no `BaseTypeMethods` in `traits`
  179.  
  180. error[E0432]: unresolved imports `rustc_codegen_ssa::traits::ConstMethods`, `rustc_codegen_ssa::traits::DerivedTypeMethods`
  181. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:8:33
  182. |
  183. 8 | use rustc_codegen_ssa::traits::{ConstMethods, DerivedTypeMethods};
  184. | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ no `DerivedTypeMethods` in `traits`
  185. | |
  186. | no `ConstMethods` in `traits`
  187.  
  188. error[E0432]: unresolved import `rustc_middle::ty::layout::HasParamEnv`
  189. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:13:40
  190. |
  191. 13 | FnAbiError, FnAbiOf, FnAbiRequest, HasParamEnv, HasTyCtxt, LayoutError, TyAndLayout,
  192. | ^^^^^^^^^^^ no `HasParamEnv` in `ty::layout`
  193.  
  194. error[E0432]: unresolved imports `rustc_codegen_ssa::traits::BaseTypeMethods`, `rustc_codegen_ssa::traits::DerivedTypeMethods`
  195. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/ctx_intrinsics.rs:3:33
  196. |
  197. 3 | use rustc_codegen_ssa::traits::{BaseTypeMethods, DerivedTypeMethods};
  198. | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ no `DerivedTypeMethods` in `traits`
  199. | |
  200. | no `BaseTypeMethods` in `traits`
  201.  
  202. error[E0432]: unresolved import `rustc_middle::ty::subst`
  203. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:15:23
  204. |
  205. 15 | use rustc_middle::ty::subst::{GenericArgKind, SubstsRef};
  206. | ^^^^^ could not find `subst` in `ty`
  207.  
  208. error[E0432]: unresolved import `rustc_middle::mir::GeneratorLayout`
  209. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/metadata.rs:10:31
  210. |
  211. 10 | use rustc_middle::mir::{self, GeneratorLayout};
  212. | ^^^^^^^^^^^^^^^ no `GeneratorLayout` in `mir`
  213.  
  214. error[E0432]: unresolved import `rustc_middle::ty::subst`
  215. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/metadata.rs:12:23
  216. |
  217. 12 | use rustc_middle::ty::subst::GenericArgKind;
  218. | ^^^^^ could not find `subst` in `ty`
  219.  
  220. error[E0432]: unresolved import `rustc_middle::ty::GeneratorSubsts`
  221. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/metadata.rs:14:39
  222. |
  223. 14 | use rustc_middle::ty::{self, AdtKind, GeneratorSubsts, ParamEnv, Ty, TyCtxt};
  224. | ^^^^^^^^^^^^^^^ no `GeneratorSubsts` in `ty`
  225.  
  226. error[E0432]: unresolved import `rustc_query_system::ich::NodeIdHashingMode`
  227. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/metadata.rs:16:5
  228. |
  229. 16 | use rustc_query_system::ich::NodeIdHashingMode;
  230. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `NodeIdHashingMode` in `ich`
  231.  
  232. error[E0432]: unresolved import `rustc_target::abi::Abi`
  233. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/metadata.rs:21:25
  234. |
  235. 21 | use rustc_target::abi::{Abi, Align, HasDataLayout, Integer, TagEncoding};
  236. | ^^^ no `Abi` in `abi`
  237. |
  238. = help: consider importing one of these items instead:
  239. crate::abi::Abi
  240. crate::debug_info::mir::UnwindTerminateReason::Abi
  241. crate::debug_info::ty::inherent::Abi
  242. std::intrinsics::mir::UnwindTerminateReason::Abi
  243. rustc_middle::mir::UnwindTerminateReason::Abi
  244. rustc_middle::ty::inherent::Abi
  245. rustc_target::spec::abi::Abi
  246.  
  247. error[E0432]: unresolved import `rustc_middle::ty::DefIdTree`
  248. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/util.rs:2:5
  249. |
  250. 2 | use rustc_middle::ty::DefIdTree;
  251. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `DefIdTree` in `ty`
  252.  
  253. error[E0432]: unresolved import `rustc_metadata::dynamic_lib`
  254. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/init.rs:2:21
  255. |
  256. 2 | use rustc_metadata::dynamic_lib::DynamicLibrary;
  257. | ^^^^^^^^^^^ could not find `dynamic_lib` in `rustc_metadata`
  258.  
  259. error[E0432]: unresolved import `rustc_codegen_ssa::traits::BaseTypeMethods`
  260. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/int_replace.rs:1:5
  261. |
  262. 1 | use rustc_codegen_ssa::traits::BaseTypeMethods;
  263. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `BaseTypeMethods` in `traits`
  264.  
  265. error[E0432]: unresolved import `rustc_codegen_ssa::common::span_invalid_monomorphization_error`
  266. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:6:5
  267. |
  268. 6 | use rustc_codegen_ssa::common::span_invalid_monomorphization_error;
  269. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `span_invalid_monomorphization_error` in `common`
  270.  
  271. error[E0432]: unresolved import `rustc_codegen_ssa::traits::DerivedTypeMethods`
  272. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:8:5
  273. |
  274. 8 | use rustc_codegen_ssa::traits::DerivedTypeMethods;
  275. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `DerivedTypeMethods` in `traits`
  276.  
  277. error[E0432]: unresolved imports `rustc_codegen_ssa::traits::BaseTypeMethods`, `rustc_codegen_ssa::traits::ConstMethods`
  278. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:9:33
  279. |
  280. 9 | use rustc_codegen_ssa::traits::{BaseTypeMethods, BuilderMethods, ConstMethods, OverflowOp};
  281. | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ no `ConstMethods` in `traits`
  282. | |
  283. | no `BaseTypeMethods` in `traits`
  284.  
  285. error[E0432]: unresolved import `rustc_codegen_ssa::traits::IntrinsicCallMethods`
  286. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:10:51
  287. |
  288. 10 | use rustc_codegen_ssa::{mir::operand::OperandRef, traits::IntrinsicCallMethods};
  289. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `IntrinsicCallMethods` in `traits`
  290.  
  291. error[E0432]: unresolved import `abi::Abi`
  292. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:430:26
  293. |
  294. 430 | use abi::Abi::*;
  295. | ^^^ help: a similar path exists: `crate::abi::Abi`
  296. |
  297. = note: `use` statements changed in Rust 2018; read more at <https://doc.rust-lang.org/edition-guide/rust-2018/module-system/path-clarity.html>
  298.  
  299. error[E0432]: unresolved import `rustc_data_structures::owning_ref`
  300. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/link.rs:4:28
  301. |
  302. 4 | use rustc_data_structures::owning_ref::OwningRef;
  303. | ^^^^^^^^^^ could not find `owning_ref` in `rustc_data_structures`
  304.  
  305. error[E0432]: unresolved import `rustc_data_structures::rustc_erase_owner`
  306. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/link.rs:5:5
  307. |
  308. 5 | use rustc_data_structures::rustc_erase_owner;
  309. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `rustc_erase_owner` in the root
  310.  
  311. error[E0432]: unresolved import `rustc_data_structures::sync::MetadataRef`
  312. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/link.rs:6:5
  313. |
  314. 6 | use rustc_data_structures::sync::MetadataRef;
  315. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `MetadataRef` in `sync`
  316.  
  317. error[E0432]: unresolved import `rustc_session::cstore::MetadataLoader`
  318. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/link.rs:9:5
  319. |
  320. 9 | use rustc_session::cstore::MetadataLoader;
  321. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `MetadataLoader` in `cstore`
  322. |
  323. help: consider importing this trait instead
  324. |
  325. 9 | use rustc_metadata::creader::MetadataLoader;
  326. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  327.  
  328. error[E0432]: unresolved import `rustc_errors::Handler`
  329. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lto.rs:10:32
  330. |
  331. 10 | use rustc_errors::{FatalError, Handler};
  332. | ^^^^^^^ no `Handler` in the root
  333.  
  334. error[E0432]: unresolved import `rustc_codegen_ssa::traits::BaseTypeMethods`
  335. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/override_fns.rs:7:33
  336. |
  337. 7 | use rustc_codegen_ssa::traits::{BaseTypeMethods, BuilderMethods};
  338. | ^^^^^^^^^^^^^^^ no `BaseTypeMethods` in `traits`
  339.  
  340. error[E0432]: unresolved import `rustc_target::abi::Abi`
  341. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/ty.rs:17:5
  342. |
  343. 17 | use rustc_target::abi::Abi;
  344. | ^^^^^^^^^^^^^^^^^^^^^^ no `Abi` in `abi`
  345. |
  346. help: consider importing one of these items instead
  347. |
  348. 17 | use crate::abi::Abi;
  349. | ~~~~~~~~~~~~~~~
  350. 17 | use crate::ty::ty::inherent::Abi;
  351. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  352. 17 | use std::intrinsics::mir::UnwindTerminateReason::Abi;
  353. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  354. 17 | use rustc_middle::mir::UnwindTerminateReason::Abi;
  355. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  356. and 2 other candidates
  357.  
  358. error[E0432]: unresolved import `rustc_codegen_ssa::back::write::FatLTOInput`
  359. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:57:33
  360. |
  361. 57 | write::{CodegenContext, FatLTOInput, ModuleConfig, OngoingCodegen},
  362. | ^^^^^^^^^^^
  363. | |
  364. | no `FatLTOInput` in `back::write`
  365. | help: a similar name exists in the module: `FatLtoInput`
  366.  
  367. error[E0432]: unresolved imports `rustc_errors::ErrorReported`, `rustc_errors::Handler`
  368. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:62:20
  369. |
  370. 62 | use rustc_errors::{ErrorReported, FatalError, Handler};
  371. | ^^^^^^^^^^^^^ ^^^^^^^ no `Handler` in the root
  372. | |
  373. | no `ErrorReported` in the root
  374.  
  375. error[E0432]: unresolved import `rustc_middle::ty::query`
  376. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:65:5
  377. |
  378. 65 | use rustc_middle::ty::query;
  379. | ^^^^^^^^^^^^^^^^^^^^^^^ no `query` in `ty`
  380. |
  381. help: consider importing one of these modules instead
  382. |
  383. 65 | use rustc_middle::query;
  384. | ~~~~~~~~~~~~~~~~~~~
  385. 65 | use rustc_middle::traits::query;
  386. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  387. 65 | use rustc_query_system::query;
  388. | ~~~~~~~~~~~~~~~~~~~~~~~~~
  389.  
  390. error[E0432]: unresolved import `rustc_session::cstore::MetadataLoaderDyn`
  391. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:70:21
  392. |
  393. 70 | use rustc_session::{cstore::MetadataLoaderDyn, Session};
  394. | ^^^^^^^^^^^^^^^^^^^^^^^^^ no `MetadataLoaderDyn` in `cstore`
  395. |
  396. = help: consider importing this type alias instead:
  397. rustc_metadata::creader::MetadataLoaderDyn
  398.  
  399. error[E0603]: variant `Int` is private
  400. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/abi.rs:17:46
  401. |
  402. 17 | use rustc_target::abi::{self, HasDataLayout, Int};
  403. | ^^^ private variant
  404. |
  405. note: the variant `Int` is defined here
  406. --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_target/src/lib.rs:35:20
  407. help: import `Int` directly
  408. |
  409. 17 | use rustc_target::abi::{self, HasDataLayout, rustc_abi::Primitive::Int};
  410. | ~~~~~~~~~~~~~~~~~~~~~~~~~
  411.  
  412. error[E0603]: module `vec` is private
  413. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:12:18
  414. |
  415. 12 | use rustc_index::vec::IndexVec;
  416. | ^^^ private module
  417. |
  418. note: the module `vec` is defined here
  419. --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_index/src/lib.rs:15:1
  420.  
  421. error[E0603]: module `vec` is private
  422. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/create_scope_map.rs:13:18
  423. |
  424. 13 | use rustc_index::vec::Idx;
  425. | ^^^ private module
  426. |
  427. note: the module `vec` is defined here
  428. --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_index/src/lib.rs:15:1
  429. help: consider importing this trait instead
  430. |
  431. 13 | use rustc_index::Idx;
  432. | ~~~~~~~~~~~~~~~~
  433.  
  434. error[E0603]: module `vec` is private
  435. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/metadata.rs:9:18
  436. |
  437. 9 | use rustc_index::vec::{Idx, IndexVec};
  438. | ^^^ private module
  439. |
  440. help: consider importing this trait instead:
  441. rustc_index::Idx
  442. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/metadata.rs:9:24
  443. |
  444. 9 | use rustc_index::vec::{Idx, IndexVec};
  445. | ^^^
  446. note: the module `vec` is defined here
  447. --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_index/src/lib.rs:15:1
  448.  
  449. error[E0603]: module `vec` is private
  450. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/metadata.rs:9:18
  451. |
  452. 9 | use rustc_index::vec::{Idx, IndexVec};
  453. | ^^^ private module
  454. |
  455. note: the module `vec` is defined here
  456. --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_index/src/lib.rs:15:1
  457.  
  458. error[E0603]: tuple variant `Int` is private
  459. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:531:22
  460. |
  461. 531 | abi::Int(..) => {
  462. | ^^^ private tuple variant
  463. |
  464. note: the tuple variant `Int` is defined here
  465. --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_target/src/lib.rs:35:20
  466. help: consider importing this tuple variant instead
  467. |
  468. 531 | rustc_target::abi::Primitive::Int(..) => {
  469. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470. help: import `Int` directly
  471. |
  472. 531 | rustc_abi::Primitive::Int::Int(..) => {
  473. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474.  
  475. error[E0603]: tuple variant `Pointer` is private
  476. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:536:22
  477. |
  478. 536 | abi::Pointer if !scalar.valid_range.contains(0) => {
  479. | ^^^^^^^ private tuple variant
  480. |
  481. note: the tuple variant `Pointer` is defined here
  482. --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_target/src/lib.rs:35:20
  483. help: consider importing this tuple variant instead
  484. |
  485. 536 | rustc_target::abi::Primitive::Pointer if !scalar.valid_range.contains(0) => {
  486. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  487. help: import `Pointer` directly
  488. |
  489. 536 | rustc_abi::Primitive::Pointer::Pointer if !scalar.valid_range.contains(0) => {
  490. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  491.  
  492. error[E0554]: `#![feature]` may not be used on the stable release channel
  493. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:1:1
  494. |
  495. 1 | #![feature(rustc_private)]
  496. | ^^^^^^^^^^^^^^^^^^^^^^^^^^
  497.  
  498. error[E0554]: `#![feature]` may not be used on the stable release channel
  499. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:5:1
  500. |
  501. 5 | #![feature(extern_types)]
  502. | ^^^^^^^^^^^^^^^^^^^^^^^^^
  503.  
  504. error[E0554]: `#![feature]` may not be used on the stable release channel
  505. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:6:1
  506. |
  507. 6 | #![feature(backtrace)]
  508. | ^^^^^^^^^^^^^^^^^^^^^^
  509.  
  510. error[E0050]: method `join_codegen` has 3 parameters but the declaration in trait `join_codegen` has 4
  511. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:132:9
  512. |
  513. 132 | / &self,
  514. 133 | | ongoing_codegen: Box<dyn std::any::Any>,
  515. 134 | | sess: &Session,
  516. | |______________________^ expected 4 parameters, found 3
  517. |
  518. = note: `join_codegen` from trait: `fn(&Self, std::boxed::Box<(dyn std::any::Any + 'static)>, &Session, &OutputFilenames) -> (CodegenResults, indexmap::map::IndexMap<WorkProductId, WorkProduct, BuildHasherDefault<FxHasher>>)`
  519.  
  520. error[E0046]: not all trait items implemented, missing: `locale_resource`
  521. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:88:1
  522. |
  523. 88 | impl CodegenBackend for NvvmCodegenBackend {
  524. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `locale_resource` in implementation
  525. |
  526. = help: implement the missing item: `fn locale_resource(&self) -> &'static str { todo!() }`
  527.  
  528. error[E0053]: method `optimize_thin` has an incompatible type for trait
  529. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:215:22
  530. |
  531. 215 | thin_module: &mut ThinModule<Self>,
  532. | ^^^^^^^^^^^^^^^^^^^^^ expected `ThinModule<NvvmCodegenBackend>`, found `&mut ThinModule<NvvmCodegenBackend>`
  533. |
  534. = note: expected signature `unsafe fn(&CodegenContext<_>, ThinModule<_>) -> Result<_, _>`
  535. found signature `unsafe fn(&CodegenContext<_>, &mut ThinModule<_>) -> Result<_, _>`
  536. help: change the parameter type to match the trait
  537. |
  538. 215 | thin_module: ThinModule<NvvmCodegenBackend>,
  539. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  540.  
  541. error[E0050]: method `prepare_thin` has 1 parameter but the declaration in trait `prepare_thin` has 2
  542. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:229:29
  543. |
  544. 229 | fn prepare_thin(module: ModuleCodegen<Self::Module>) -> (String, Self::ThinBuffer) {
  545. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 2 parameters, found 1
  546. |
  547. = note: `prepare_thin` from trait: `fn(ModuleCodegen<<Self as rustc_codegen_ssa::traits::WriteBackendMethods>::Module>, bool) -> (std::string::String, <Self as rustc_codegen_ssa::traits::WriteBackendMethods>::ThinBuffer)`
  548.  
  549. error[E0046]: not all trait items implemented, missing: `TargetMachineError`, `print_statistics`, `optimize_fat`, `autodiff`
  550. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:163:1
  551. |
  552. 163 | impl WriteBackendMethods for NvvmCodegenBackend {
  553. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `TargetMachineError`, `print_statistics`, `optimize_fat`, `autodiff` in implementation
  554. |
  555. = help: implement the missing item: `type TargetMachineError = /* Type */;`
  556. = help: implement the missing item: `fn print_statistics(&self) { todo!() }`
  557. = help: implement the missing item: `fn optimize_fat(_: &CodegenContext<Self>, _: &mut ModuleCodegen<<Self as rustc_codegen_ssa::traits::WriteBackendMethods>::Module>) -> Result<(), FatalError> { todo!() }`
  558. = help: implement the missing item: `fn autodiff(_: &CodegenContext<Self>, _: TyCtxt<'_>, _: &ModuleCodegen<<Self as rustc_codegen_ssa::traits::WriteBackendMethods>::Module>, _: Vec<AutoDiffItem>, _: &ModuleConfig) -> Result<(), FatalError> { todo!() }`
  559.  
  560. error[E0050]: method `codegen_allocator` has 6 parameters but the declaration in trait `codegen_allocator` has 5
  561. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:274:9
  562. |
  563. 274 | / &self,
  564. 275 | | tcx: TyCtxt<'tcx>,
  565. 276 | | mods: &mut Self::Module,
  566. 277 | | _module_name: &str,
  567. 278 | | kind: rustc_ast::expand::allocator::AllocatorKind,
  568. 279 | | has_alloc_error_handler: bool,
  569. | |_____________________________________^ expected 5 parameters, found 6
  570. |
  571. = note: `codegen_allocator` from trait: `fn(&Self, TyCtxt<'tcx>, &str, AllocatorKind, AllocatorKind) -> <Self as rustc_codegen_ssa::traits::WriteBackendMethods>::Module`
  572.  
  573. error[E0050]: method `target_machine_factory` has 3 parameters but the declaration in trait `rustc_codegen_ssa::traits::ExtraBackendMethods::target_machine_factory` has 4
  574. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:293:9
  575. |
  576. 293 | / &self,
  577. 294 | | sess: &Session,
  578. 295 | | opt_level: rustc_session::config::OptLevel,
  579. | |__________________________________________________^ expected 4 parameters, found 3
  580. |
  581. = note: `target_machine_factory` from trait: `fn(&Self, &Session, OptLevel, &[std::string::String]) -> Arc<(dyn std::ops::Fn(TargetMachineFactoryConfig) -> Result<<Self as rustc_codegen_ssa::traits::WriteBackendMethods>::TargetMachine, <Self as rustc_codegen_ssa::traits::WriteBackendMethods>::TargetMachineError> + Send + std::marker::Sync + 'static)>`
  582.  
  583. error[E0223]: ambiguous associated type
  584. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/abi.rs:241:29
  585. |
  586. 241 | dst: PlaceRef<'tcx, Self::Value>,
  587. | ^^^^^^^^^^^ help: use fully-qualified syntax: `<builder::Builder<'a, 'll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
  588.  
  589. error[E0223]: ambiguous associated type
  590. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:249:40
  591. |
  592. 249 | fn declare_c_main(&self, _fn_type: Self::Type) -> Option<Self::Function> {
  593. | ^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Type`
  594.  
  595. error[E0223]: ambiguous associated type
  596. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:249:62
  597. |
  598. 249 | fn declare_c_main(&self, _fn_type: Self::Type) -> Option<Self::Function> {
  599. | ^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Function`
  600.  
  601. error[E0223]: ambiguous associated type
  602. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:254:44
  603. |
  604. 254 | fn apply_target_cpu_attr(&self, _llfn: Self::Function) {
  605. | ^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Function`
  606.  
  607. error[E0223]: ambiguous associated type
  608. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:258:53
  609. |
  610. 258 | fn compiler_used_statics(&self) -> &RefCell<Vec<Self::Value>> {
  611. | ^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
  612.  
  613. error[E0223]: ambiguous associated type
  614. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:262:45
  615. |
  616. 262 | fn set_frame_pointer_type(&self, _llfn: Self::Function) {}
  617. | ^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Function`
  618.  
  619. error[E0223]: ambiguous associated type
  620. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:651:67
  621. |
  622. 651 | fn get_pgo_func_name_var(&self, _instance: Instance<'tcx>) -> Self::Value {
  623. | ^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
  624.  
  625. error[E0223]: ambiguous associated type
  626. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:453:16
  627. |
  628. 453 | scope: Self::DIScope,
  629. | ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::DIScope`
  630.  
  631. error[E0223]: ambiguous associated type
  632. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:454:28
  633. |
  634. 454 | inlined_at: Option<Self::DILocation>,
  635. | ^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::DILocation`
  636.  
  637. error[E0223]: ambiguous associated type
  638. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:456:10
  639. |
  640. 456 | ) -> Self::DILocation {
  641. | ^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::DILocation`
  642.  
  643. error[E0223]: ambiguous associated type
  644. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:466:17
  645. |
  646. 466 | vtable: Self::Value,
  647. | ^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
  648.  
  649. error[E0223]: ambiguous associated type
  650. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:473:25
  651. |
  652. 473 | scope_metadata: Self::DIScope,
  653. | ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::DIScope`
  654.  
  655. error[E0223]: ambiguous associated type
  656. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:475:10
  657. |
  658. 475 | ) -> Self::DIScope {
  659. | ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::DIScope`
  660.  
  661. error[E0223]: ambiguous associated type
  662. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:489:25
  663. |
  664. 489 | scope_metadata: Self::DIScope,
  665. | ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::DIScope`
  666.  
  667. error[E0223]: ambiguous associated type
  668. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:492:10
  669. |
  670. 492 | ) -> Self::DIVariable {
  671. | ^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::DIVariable`
  672.  
  673. error[E0223]: ambiguous associated type
  674. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:491:31
  675. |
  676. 491 | fn assume(&mut self, val: Self::Value) {
  677. | ^^^^^^^^^^^ help: use fully-qualified syntax: `<builder::Builder<'a, 'll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
  678.  
  679. error[E0223]: ambiguous associated type
  680. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:497:32
  681. |
  682. 497 | fn expect(&mut self, cond: Self::Value, expected: bool) -> Self::Value {
  683. | ^^^^^^^^^^^ help: use fully-qualified syntax: `<builder::Builder<'a, 'll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
  684.  
  685. error[E0223]: ambiguous associated type
  686. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:497:64
  687. |
  688. 497 | fn expect(&mut self, cond: Self::Value, expected: bool) -> Self::Value {
  689. | ^^^^^^^^^^^ help: use fully-qualified syntax: `<builder::Builder<'a, 'll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
  690.  
  691. error[E0223]: ambiguous associated type
  692. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:508:39
  693. |
  694. 508 | fn type_test(&mut self, _pointer: Self::Value, _typeid: Self::Value) -> Self::Value {
  695. | ^^^^^^^^^^^ help: use fully-qualified syntax: `<builder::Builder<'a, 'll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
  696.  
  697. error[E0223]: ambiguous associated type
  698. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:508:61
  699. |
  700. 508 | fn type_test(&mut self, _pointer: Self::Value, _typeid: Self::Value) -> Self::Value {
  701. | ^^^^^^^^^^^ help: use fully-qualified syntax: `<builder::Builder<'a, 'll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
  702.  
  703. error[E0223]: ambiguous associated type
  704. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:508:77
  705. |
  706. 508 | fn type_test(&mut self, _pointer: Self::Value, _typeid: Self::Value) -> Self::Value {
  707. | ^^^^^^^^^^^ help: use fully-qualified syntax: `<builder::Builder<'a, 'll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
  708.  
  709. error[E0223]: ambiguous associated type
  710. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:513:52
  711. |
  712. 513 | fn va_start(&mut self, va_list: &'ll Value) -> Self::Value {
  713. | ^^^^^^^^^^^ help: use fully-qualified syntax: `<builder::Builder<'a, 'll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
  714.  
  715. error[E0223]: ambiguous associated type
  716. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:519:50
  717. |
  718. 519 | fn va_end(&mut self, va_list: &'ll Value) -> Self::Value {
  719. | ^^^^^^^^^^^ help: use fully-qualified syntax: `<builder::Builder<'a, 'll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
  720.  
  721. error[E0050]: method `codegen_inline_asm` has 6 parameters but the declaration in trait `codegen_inline_asm` has 8
  722. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/asm.rs:116:9
  723. |
  724. 116 | / &mut self,
  725. 117 | | template: &[InlineAsmTemplatePiece],
  726. 118 | | operands: &[InlineAsmOperandRef<'tcx, Self>],
  727. 119 | | options: rustc_ast::InlineAsmOptions,
  728. 120 | | line_spans: &[Span],
  729. 121 | | _inst: Instance,
  730. | |_______________________^ expected 8 parameters, found 6
  731. |
  732. = note: `codegen_inline_asm` from trait: `fn(&mut Self, &[InlineAsmTemplatePiece], &[InlineAsmOperandRef<'tcx, Self>], InlineAsmOptions, &[rustc_span::Span], Instance<'_>, std::option::Option<<Self as rustc_codegen_ssa::traits::BackendTypes>::BasicBlock>, std::option::Option<(<Self as rustc_codegen_ssa::traits::BackendTypes>::BasicBlock, std::option::Option<&<Self as rustc_codegen_ssa::traits::BackendTypes>::Funclet>)>)`
  733.  
  734. error[E0046]: not all trait items implemented, missing: `Metadata`
  735. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:54:1
  736. |
  737. 54 | impl<'ll, 'tcx> BackendTypes for Builder<'_, 'll, 'tcx> {
  738. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `Metadata` in implementation
  739. |
  740. = help: implement the missing item: `type Metadata = /* Type */;`
  741.  
  742. error[E0277]: the trait bound `builder::Builder<'_, '_, 'tcx>: HasTypingEnv<'tcx>` is not satisfied
  743. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:90:38
  744. |
  745. 90 | impl<'tcx> LayoutOfHelpers<'tcx> for Builder<'_, '_, 'tcx> {
  746. | ^^^^^^^^^^^^^^^^^^^^^ the trait `HasTypingEnv<'tcx>` is not implemented for `builder::Builder<'_, '_, 'tcx>`
  747. |
  748. = help: the following other types implement trait `HasTypingEnv<'tcx>`:
  749. LayoutCx<'tcx>
  750. rustc_const_eval::interpret::eval_context::InterpCx<'tcx, M>
  751. rustc_lint::context::LateContext<'tcx>
  752. rustc_smir::rustc_smir::Tables<'tcx>
  753. note: required by a bound in `LayoutOfHelpers`
  754. --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_middle/src/ty/layout.rs:657:1
  755.  
  756. error[E0277]: the trait bound `builder::Builder<'_, 'll, 'tcx>: HasTypingEnv<'tcx>` is not satisfied
  757. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:99:42
  758. |
  759. 99 | impl<'ll, 'tcx> FnAbiOfHelpers<'tcx> for Builder<'_, 'll, 'tcx> {
  760. | ^^^^^^^^^^^^^^^^^^^^^^ the trait `HasTypingEnv<'tcx>` is not implemented for `builder::Builder<'_, 'll, 'tcx>`
  761. |
  762. = help: the following other types implement trait `HasTypingEnv<'tcx>`:
  763. LayoutCx<'tcx>
  764. rustc_const_eval::interpret::eval_context::InterpCx<'tcx, M>
  765. rustc_lint::context::LateContext<'tcx>
  766. rustc_smir::rustc_smir::Tables<'tcx>
  767. = note: required for `builder::Builder<'_, 'll, 'tcx>` to implement `LayoutOfHelpers<'tcx>`
  768. note: required by a bound in `FnAbiOfHelpers`
  769. --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_middle/src/ty/layout.rs:1288:1
  770.  
  771. error[E0046]: not all trait items implemented, missing: `add_coverage`
  772. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:137:1
  773. |
  774. 137 | impl<'a, 'll, 'tcx> CoverageInfoBuilderMethods<'tcx> for Builder<'a, 'll, 'tcx> {
  775. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `add_coverage` in implementation
  776. |
  777. = help: implement the missing item: `fn add_coverage(&mut self, _: Instance<'tcx>, _: &CoverageKind) { todo!() }`
  778.  
  779. error[E0277]: the trait bound `builder::Builder<'a, 'll, 'tcx>: rustc_codegen_ssa::traits::IntrinsicCallBuilderMethods<'tcx>` is not satisfied
  780. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:176:50
  781. |
  782. 176 | impl<'ll, 'tcx, 'a> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
  783. | ^^^^^^^^^^^^^^^^^^^^^^ the trait `rustc_codegen_ssa::traits::IntrinsicCallBuilderMethods<'tcx>` is not implemented for `builder::Builder<'a, 'll, 'tcx>`
  784. |
  785. note: required by a bound in `rustc_codegen_ssa::traits::BuilderMethods`
  786. --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_codegen_ssa/src/traits/builder.rs:35:1
  787.  
  788. error[E0277]: the trait bound `builder::Builder<'a, 'll, 'tcx>: rustc_codegen_ssa::traits::ArgAbiBuilderMethods<'tcx>` is not satisfied
  789. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:176:50
  790. |
  791. 176 | impl<'ll, 'tcx, 'a> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
  792. | ^^^^^^^^^^^^^^^^^^^^^^ the trait `rustc_codegen_ssa::traits::ArgAbiBuilderMethods<'tcx>` is not implemented for `builder::Builder<'a, 'll, 'tcx>`
  793. |
  794. note: required by a bound in `rustc_codegen_ssa::traits::BuilderMethods`
  795. --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_codegen_ssa/src/traits/builder.rs:35:1
  796.  
  797. error[E0277]: the trait bound `builder::Builder<'a, 'll, 'tcx>: HasTypingEnv<'tcx>` is not satisfied
  798. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:176:50
  799. |
  800. 176 | impl<'ll, 'tcx, 'a> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
  801. | ^^^^^^^^^^^^^^^^^^^^^^ the trait `HasTypingEnv<'tcx>` is not implemented for `builder::Builder<'a, 'll, 'tcx>`
  802. |
  803. = help: the following other types implement trait `HasTypingEnv<'tcx>`:
  804. LayoutCx<'tcx>
  805. rustc_const_eval::interpret::eval_context::InterpCx<'tcx, M>
  806. rustc_lint::context::LateContext<'tcx>
  807. rustc_smir::rustc_smir::Tables<'tcx>
  808. = note: required for `builder::Builder<'a, 'll, 'tcx>` to implement `LayoutOfHelpers<'tcx>`
  809. = note: required for `builder::Builder<'a, 'll, 'tcx>` to implement `FnAbiOfHelpers<'tcx>`
  810. = note: required for `builder::Builder<'a, 'll, 'tcx>` to implement `FnAbiOf<'tcx>`
  811. note: required by a bound in `rustc_codegen_ssa::traits::BuilderMethods`
  812. --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_codegen_ssa/src/traits/builder.rs:35:1
  813.  
  814. error[E0050]: method `invoke` has 7 parameters but the declaration in trait `invoke` has 10
  815. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:261:9
  816. |
  817. 261 | / &mut self,
  818. 262 | | ty: &'ll Type,
  819. 263 | | llfn: &'ll Value,
  820. 264 | | args: &[&'ll Value],
  821. 265 | | then: &'ll BasicBlock,
  822. 266 | | _catch: &'ll BasicBlock,
  823. 267 | | funclet: Option<&()>,
  824. | |____________________________^ expected 10 parameters, found 7
  825. |
  826. = note: `invoke` from trait: `fn(&mut Self, <Self as rustc_codegen_ssa::traits::BackendTypes>::Type, std::option::Option<&CodegenFnAttrs>, std::option::Option<&rustc_target::callconv::FnAbi<'tcx, rustc_middle::ty::Ty<'tcx>>>, <Self as rustc_codegen_ssa::traits::BackendTypes>::Value, &[<Self as rustc_codegen_ssa::traits::BackendTypes>::Value], <Self as rustc_codegen_ssa::traits::BackendTypes>::BasicBlock, <Self as rustc_codegen_ssa::traits::BackendTypes>::BasicBlock, std::option::Option<&<Self as rustc_codegen_ssa::traits::BackendTypes>::Funclet>, std::option::Option<Instance<'tcx>>) -> <Self as rustc_codegen_ssa::traits::BackendTypes>::Value`
  827.  
  828. error[E0053]: method `alloca` has an incompatible type for trait
  829. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:447:30
  830. |
  831. 447 | fn alloca(&mut self, ty: &'ll Type, align: Align) -> &'ll Value {
  832. | ^^^^^^^^^ expected `rustc_target::abi::Size`, found `&'ll llvm::Type`
  833. |
  834. ::: /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/llvm.rs:454:5
  835. |
  836. 454 | pub(crate) type Type;
  837. | -------------------- one of the found foreign types
  838. ...
  839. 457 | pub(crate) type Value;
  840. | ---------------------
  841. | |
  842. | the expected foreign type
  843. | one of the found foreign types
  844. |
  845. = note: expected signature `fn(&mut builder::Builder<'_, '_, '_>, rustc_target::abi::Size, Align) -> &'ll _`
  846. found signature `fn(&mut builder::Builder<'_, '_, '_>, &'ll llvm::Type, Align) -> &'ll _`
  847. help: change the parameter type to match the trait
  848. |
  849. 447 | fn alloca(&mut self, ty: rustc_target::abi::Size, align: Align) -> &'ll Value {
  850. | ~~~~~~~~~~~~~~~~~~~~~~~
  851.  
  852. error[E0053]: method `dynamic_alloca` has an incompatible type for trait
  853. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:454:38
  854. |
  855. 454 | fn dynamic_alloca(&mut self, ty: &'ll Type, align: Align) -> &'ll Value {
  856. | ^^^^^^^^^ expected extern type `llvm::Value`, found extern type `llvm::Type`
  857. |
  858. ::: /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/llvm.rs:454:5
  859. |
  860. 454 | pub(crate) type Type;
  861. | -------------------- one of the found foreign types
  862. ...
  863. 457 | pub(crate) type Value;
  864. | ---------------------
  865. | |
  866. | the expected foreign type
  867. | one of the found foreign types
  868. |
  869. = note: expected signature `fn(&mut builder::Builder<'_, '_, '_>, &'ll llvm::Value, Align) -> &'ll _`
  870. found signature `fn(&mut builder::Builder<'_, '_, '_>, &'ll llvm::Type, Align) -> &'ll _`
  871. help: change the parameter type to match the trait
  872. |
  873. 454 | fn dynamic_alloca(&mut self, ty: &'ll llvm::Value, align: Align) -> &'ll Value {
  874. | ~~~~~~~~~~~~~~~~
  875.  
  876. error[E0053]: method `write_operand_repeatedly` has an incompatible type for trait
  877. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:592:13
  878. |
  879. 592 | mut self,
  880. | ^^^^ expected `&mut Builder<'a, 'll, 'tcx>`, found `builder::Builder<'a, 'll, 'tcx>`
  881. |
  882. ::: /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/llvm.rs:457:5
  883. |
  884. 457 | pub(crate) type Value;
  885. | ---------------------
  886. | |
  887. | the expected foreign type
  888. | the found foreign type
  889. |
  890. = note: expected signature `fn(&mut builder::Builder<'_, '_, '_>, OperandRef<'_, _>, _, rustc_codegen_ssa::mir::place::PlaceRef<'_, _>) -> ()`
  891. found signature `fn(builder::Builder<'_, '_, '_>, OperandRef<'_, _>, _, rustc_codegen_ssa::mir::place::PlaceRef<'_, _>) -> builder::Builder<'a, 'll, 'tcx>`
  892. help: change the self-receiver type to match the trait
  893. |
  894. 592 | mut &mut self,
  895. | ~~~~~~~~~
  896.  
  897. error[E0053]: method `fptoui_sat` has an incompatible type for trait
  898. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:776:72
  899. |
  900. 776 | fn fptoui_sat(&mut self, _val: &'ll Value, _dest_ty: &'ll Type) -> Option<&'ll Value> {
  901. | ^^^^^^^^^^^^^^^^^^ expected `&'ll llvm::Value`, found `Option<&llvm::Value>`
  902. |
  903. ::: /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/llvm.rs:454:5
  904. |
  905. 454 | pub(crate) type Type;
  906. | --------------------
  907. | |
  908. | one of the expected foreign types
  909. | one of the found foreign types
  910. ...
  911. 457 | pub(crate) type Value;
  912. | ---------------------
  913. | |
  914. | one of the expected foreign types
  915. | one of the found foreign types
  916. |
  917. = note: expected signature `fn(&mut builder::Builder<'_, '_, '_>, &'ll _, &'ll _) -> &'ll llvm::Value`
  918. found signature `fn(&mut builder::Builder<'_, '_, '_>, &'ll _, &'ll _) -> std::option::Option<&'ll llvm::Value>`
  919. help: change the output type to match the trait
  920. |
  921. 776 | fn fptoui_sat(&mut self, _val: &'ll Value, _dest_ty: &'ll Type) -> &'ll llvm::Value {
  922. | ~~~~~~~~~~~~~~~~
  923.  
  924. error[E0053]: method `fptosi_sat` has an incompatible type for trait
  925. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:780:72
  926. |
  927. 780 | fn fptosi_sat(&mut self, _val: &'ll Value, _dest_ty: &'ll Type) -> Option<&'ll Value> {
  928. | ^^^^^^^^^^^^^^^^^^ expected `&'ll llvm::Value`, found `Option<&llvm::Value>`
  929. |
  930. ::: /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/llvm.rs:454:5
  931. |
  932. 454 | pub(crate) type Type;
  933. | --------------------
  934. | |
  935. | one of the expected foreign types
  936. | one of the found foreign types
  937. ...
  938. 457 | pub(crate) type Value;
  939. | ---------------------
  940. | |
  941. | one of the expected foreign types
  942. | one of the found foreign types
  943. |
  944. = note: expected signature `fn(&mut builder::Builder<'_, '_, '_>, &'ll _, &'ll _) -> &'ll llvm::Value`
  945. found signature `fn(&mut builder::Builder<'_, '_, '_>, &'ll _, &'ll _) -> std::option::Option<&'ll llvm::Value>`
  946. help: change the output type to match the trait
  947. |
  948. 780 | fn fptosi_sat(&mut self, _val: &'ll Value, _dest_ty: &'ll Type) -> &'ll llvm::Value {
  949. | ~~~~~~~~~~~~~~~~
  950.  
  951. error[E0050]: method `resume` has 2 parameters but the declaration in trait `rustc_codegen_ssa::traits::BuilderMethods::resume` has 3
  952. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:1004:15
  953. |
  954. 1004 | fn resume(&mut self, _exn: &'ll Value) -> &'ll Value {
  955. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters, found 2
  956. |
  957. = note: `resume` from trait: `fn(&mut Self, <Self as rustc_codegen_ssa::traits::BackendTypes>::Value, <Self as rustc_codegen_ssa::traits::BackendTypes>::Value)`
  958.  
  959. error[E0053]: method `cleanup_ret` has an incompatible type for trait
  960. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:1010:83
  961. |
  962. 1010 | fn cleanup_ret(&mut self, _funclet: &(), _unwind: Option<&'ll BasicBlock>) -> &'ll Value {
  963. | ^^^^^^^^^^ expected `()`, found `&'ll llvm::Value`
  964. |
  965. ::: /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/llvm.rs:457:5
  966. |
  967. 457 | pub(crate) type Value;
  968. | --------------------- one of the found foreign types
  969. ...
  970. 466 | pub(crate) type BasicBlock;
  971. | --------------------------
  972. | |
  973. | the expected foreign type
  974. | one of the found foreign types
  975. |
  976. = note: expected signature `fn(&mut builder::Builder<'_, '_, '_>, &(), std::option::Option<_>) -> ()`
  977. found signature `fn(&mut builder::Builder<'_, '_, '_>, &(), std::option::Option<_>) -> &'ll llvm::Value`
  978. help: change the output type to match the trait
  979. |
  980. 1010 | fn cleanup_ret(&mut self, _funclet: &(), _unwind: Option<&'ll BasicBlock>) -> () {
  981. | ~~
  982.  
  983. error[E0053]: method `catch_switch` has an incompatible type for trait
  984. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:1021:24
  985. |
  986. 1021 | _num_handlers: usize,
  987. | ^^^^^ expected `&[&'ll llvm::BasicBlock]`, found `usize`
  988. |
  989. ::: /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/llvm.rs:457:5
  990. |
  991. 457 | pub(crate) type Value;
  992. | ---------------------
  993. | |
  994. | one of the expected foreign types
  995. | one of the found foreign types
  996. ...
  997. 466 | pub(crate) type BasicBlock;
  998. | --------------------------
  999. | |
  1000. | one of the expected foreign types
  1001. | one of the found foreign types
  1002. |
  1003. = note: expected signature `fn(&mut builder::Builder<'_, '_, '_>, std::option::Option<_>, std::option::Option<_>, &[&'ll llvm::BasicBlock]) -> &'ll _`
  1004. found signature `fn(&mut builder::Builder<'_, '_, '_>, std::option::Option<_>, std::option::Option<_>, usize) -> &'ll _`
  1005. help: change the parameter type to match the trait
  1006. |
  1007. 1021 | _num_handlers: &[&'ll llvm::BasicBlock],
  1008. | ~~~~~~~~~~~~~~~~~~~~~~~~
  1009.  
  1010. error[E0053]: method `atomic_cmpxchg` has an incompatible type for trait
  1011. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:1041:10
  1012. |
  1013. 1041 | ) -> &'ll Value {
  1014. | ^^^^^^^^^^ expected `(&llvm::Value, &llvm::Value)`, found `&'ll llvm::Value`
  1015. |
  1016. ::: /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/llvm.rs:457:5
  1017. |
  1018. 457 | pub(crate) type Value;
  1019. | ---------------------
  1020. | |
  1021. | the expected foreign type
  1022. | the found foreign type
  1023. |
  1024. = note: expected signature `fn(&mut builder::Builder<'_, '_, '_>, &'ll _, &'ll _, &'ll _, rustc_codegen_ssa::common::AtomicOrdering, rustc_codegen_ssa::common::AtomicOrdering, _) -> (&'ll llvm::Value, &'ll llvm::Value)`
  1025. found signature `fn(&mut builder::Builder<'_, '_, '_>, &'ll _, &'ll _, &'ll _, rustc_codegen_ssa::common::AtomicOrdering, rustc_codegen_ssa::common::AtomicOrdering, _) -> &'ll llvm::Value`
  1026. help: change the output type to match the trait
  1027. |
  1028. 1041 | ) -> (&'ll llvm::Value, &'ll llvm::Value) {
  1029. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1030.  
  1031. error[E0050]: method `call` has 5 parameters but the declaration in trait `rustc_codegen_ssa::traits::BuilderMethods::call` has 8
  1032. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:1094:9
  1033. |
  1034. 1094 | / &mut self,
  1035. 1095 | | _: &'ll Type,
  1036. 1096 | | llfn: &'ll Value,
  1037. 1097 | | args: &[&'ll Value],
  1038. 1098 | | _funclet: Option<&()>,
  1039. | |_____________________________^ expected 8 parameters, found 5
  1040. |
  1041. = note: `call` from trait: `fn(&mut Self, <Self as rustc_codegen_ssa::traits::BackendTypes>::Type, std::option::Option<&CodegenFnAttrs>, std::option::Option<&rustc_target::callconv::FnAbi<'tcx, rustc_middle::ty::Ty<'tcx>>>, <Self as rustc_codegen_ssa::traits::BackendTypes>::Value, &[<Self as rustc_codegen_ssa::traits::BackendTypes>::Value], std::option::Option<&<Self as rustc_codegen_ssa::traits::BackendTypes>::Funclet>, std::option::Option<Instance<'tcx>>) -> <Self as rustc_codegen_ssa::traits::BackendTypes>::Value`
  1042.  
  1043. error[E0046]: not all trait items implemented, missing: `CodegenCx`, `switch_to_block`, `fadd_algebraic`, `fsub_algebraic`, `fmul_algebraic`, `fdiv_algebraic`, `frem_algebraic`, `cleanup_landing_pad`, `filter_landing_pad`, `apply_attrs_to_cleanup_callsite`
  1044. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:176:1
  1045. |
  1046. 176 | impl<'ll, 'tcx, 'a> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
  1047. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `CodegenCx`, `switch_to_block`, `fadd_algebraic`, `fsub_algebraic`, `fmul_algebraic`, `fdiv_algebraic`, `frem_algebraic`, `cleanup_landing_pad`, `filter_landing_pad`, `apply_attrs_to_cleanup_callsite` in implementation
  1048. |
  1049. = help: implement the missing item: `type CodegenCx = /* Type */;`
  1050. = help: implement the missing item: `fn switch_to_block(&mut self, _: <Self as rustc_codegen_ssa::traits::BackendTypes>::BasicBlock) { todo!() }`
  1051. = help: implement the missing item: `fn fadd_algebraic(&mut self, _: <Self as rustc_codegen_ssa::traits::BackendTypes>::Value, _: <Self as rustc_codegen_ssa::traits::BackendTypes>::Value) -> <Self as rustc_codegen_ssa::traits::BackendTypes>::Value { todo!() }`
  1052. = help: implement the missing item: `fn fsub_algebraic(&mut self, _: <Self as rustc_codegen_ssa::traits::BackendTypes>::Value, _: <Self as rustc_codegen_ssa::traits::BackendTypes>::Value) -> <Self as rustc_codegen_ssa::traits::BackendTypes>::Value { todo!() }`
  1053. = help: implement the missing item: `fn fmul_algebraic(&mut self, _: <Self as rustc_codegen_ssa::traits::BackendTypes>::Value, _: <Self as rustc_codegen_ssa::traits::BackendTypes>::Value) -> <Self as rustc_codegen_ssa::traits::BackendTypes>::Value { todo!() }`
  1054. = help: implement the missing item: `fn fdiv_algebraic(&mut self, _: <Self as rustc_codegen_ssa::traits::BackendTypes>::Value, _: <Self as rustc_codegen_ssa::traits::BackendTypes>::Value) -> <Self as rustc_codegen_ssa::traits::BackendTypes>::Value { todo!() }`
  1055. = help: implement the missing item: `fn frem_algebraic(&mut self, _: <Self as rustc_codegen_ssa::traits::BackendTypes>::Value, _: <Self as rustc_codegen_ssa::traits::BackendTypes>::Value) -> <Self as rustc_codegen_ssa::traits::BackendTypes>::Value { todo!() }`
  1056. = help: implement the missing item: `fn cleanup_landing_pad(&mut self, _: <Self as rustc_codegen_ssa::traits::BackendTypes>::Value) -> (<Self as rustc_codegen_ssa::traits::BackendTypes>::Value, <Self as rustc_codegen_ssa::traits::BackendTypes>::Value) { todo!() }`
  1057. = help: implement the missing item: `fn filter_landing_pad(&mut self, _: <Self as rustc_codegen_ssa::traits::BackendTypes>::Value) -> (<Self as rustc_codegen_ssa::traits::BackendTypes>::Value, <Self as rustc_codegen_ssa::traits::BackendTypes>::Value) { todo!() }`
  1058. = help: implement the missing item: `fn apply_attrs_to_cleanup_callsite(&mut self, _: <Self as rustc_codegen_ssa::traits::BackendTypes>::Value) { todo!() }`
  1059.  
  1060. error[E0046]: not all trait items implemented, missing: `Metadata`
  1061. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:550:1
  1062. |
  1063. 550 | impl<'ll, 'tcx> BackendTypes for CodegenCx<'ll, 'tcx> {
  1064. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `Metadata` in implementation
  1065. |
  1066. = help: implement the missing item: `type Metadata = /* Type */;`
  1067.  
  1068. error[E0277]: the trait bound `CodegenCx<'ll, 'tcx>: HasTypingEnv<'tcx>` is not satisfied
  1069. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:583:43
  1070. |
  1071. 583 | impl<'ll, 'tcx> LayoutOfHelpers<'tcx> for CodegenCx<'ll, 'tcx> {
  1072. | ^^^^^^^^^^^^^^^^^^^^ the trait `HasTypingEnv<'tcx>` is not implemented for `CodegenCx<'ll, 'tcx>`
  1073. |
  1074. = help: the following other types implement trait `HasTypingEnv<'tcx>`:
  1075. LayoutCx<'tcx>
  1076. rustc_const_eval::interpret::eval_context::InterpCx<'tcx, M>
  1077. rustc_lint::context::LateContext<'tcx>
  1078. rustc_smir::rustc_smir::Tables<'tcx>
  1079. note: required by a bound in `LayoutOfHelpers`
  1080. --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_middle/src/ty/layout.rs:657:1
  1081.  
  1082. error[E0277]: the trait bound `CodegenCx<'ll, 'tcx>: HasTypingEnv<'tcx>` is not satisfied
  1083. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:602:42
  1084. |
  1085. 602 | impl<'ll, 'tcx> FnAbiOfHelpers<'tcx> for CodegenCx<'ll, 'tcx> {
  1086. | ^^^^^^^^^^^^^^^^^^^^ the trait `HasTypingEnv<'tcx>` is not implemented for `CodegenCx<'ll, 'tcx>`
  1087. |
  1088. = help: the following other types implement trait `HasTypingEnv<'tcx>`:
  1089. LayoutCx<'tcx>
  1090. rustc_const_eval::interpret::eval_context::InterpCx<'tcx, M>
  1091. rustc_lint::context::LateContext<'tcx>
  1092. rustc_smir::rustc_smir::Tables<'tcx>
  1093. = note: required for `CodegenCx<'ll, 'tcx>` to implement `LayoutOfHelpers<'tcx>`
  1094. note: required by a bound in `FnAbiOfHelpers`
  1095. --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_middle/src/ty/layout.rs:1288:1
  1096.  
  1097. error[E0050]: method `dbg_var_addr` has 6 parameters but the declaration in trait `dbg_var_addr` has 7
  1098. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:103:9
  1099. |
  1100. 103 | / &mut self,
  1101. 104 | | dbg_var: &'ll DIVariable,
  1102. 105 | | dbg_loc: &'ll DILocation,
  1103. 106 | | variable_alloca: &'ll Value,
  1104. 107 | | direct_offset: Size,
  1105. 108 | | indirect_offsets: &[Size],
  1106. | |_________________________________^ expected 7 parameters, found 6
  1107. |
  1108. = note: `dbg_var_addr` from trait: `fn(&mut Self, <Self as rustc_codegen_ssa::traits::BackendTypes>::DIVariable, <Self as rustc_codegen_ssa::traits::BackendTypes>::DILocation, <Self as rustc_codegen_ssa::traits::BackendTypes>::Value, rustc_target::abi::Size, &[rustc_target::abi::Size], std::option::Option<std::ops::Range<rustc_target::abi::Size>>)`
  1109.  
  1110. error[E0046]: not all trait items implemented, missing: `clear_dbg_loc`, `get_dbg_loc`
  1111. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:101:1
  1112. |
  1113. 101 | impl<'a, 'll, 'tcx> DebugInfoBuilderMethods for Builder<'a, 'll, 'tcx> {
  1114. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `clear_dbg_loc`, `get_dbg_loc` in implementation
  1115. |
  1116. = help: implement the missing item: `fn clear_dbg_loc(&mut self) { todo!() }`
  1117. = help: implement the missing item: `fn get_dbg_loc(&self) -> std::option::Option<<Self as rustc_codegen_ssa::traits::BackendTypes>::DILocation> { todo!() }`
  1118.  
  1119. error[E0046]: not all trait items implemented, missing: `thin_link_data`
  1120. --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lto.rs:65:1
  1121. |
  1122. 65 | impl ThinBufferMethods for ThinBuffer {
  1123. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `thin_link_data` in implementation
  1124. |
  1125. = help: implement the missing item: `fn thin_link_data(&self) -> &[u8] { todo!() }`
  1126.  
  1127. Some errors have detailed explanations: E0046, E0050, E0053, E0223, E0277, E0432, E0463, E0554, E0603.
  1128. For more information about an error, try `rustc --explain E0046`.
  1129. warning: [email protected]: In file included from /opt/llvm70/include/llvm/CodeGen/TargetSubtargetInfo.h:22,
  1130. warning: [email protected]: from rustc_llvm_wrapper/PassWrapper.cpp:29:
  1131. warning: [email protected]: /opt/llvm70/include/llvm/CodeGen/SchedulerRegistry.h: In constructor 'llvm::RegisterScheduler::RegisterScheduler(const char*, const char*, FunctionPassCtor)':
  1132. warning: [email protected]: /opt/llvm70/include/llvm/CodeGen/SchedulerRegistry.h:40:35: warning: cast between incompatible function types from 'llvm::RegisterScheduler::FunctionPassCtor' {aka 'llvm::ScheduleDAGSDNodes* (*)(llvm::SelectionDAGISel*, llvm::CodeGenOpt::Level)'} to 'llvm::MachinePassCtor' {aka 'void* (*)()'} [-Wcast-function-type]
  1133. warning: [email protected]: 40 | : MachinePassRegistryNode(N, D, (MachinePassCtor)C)
  1134. warning: [email protected]: | ^~~~~~~~~~~~~~~~~~
  1135. warning: [email protected]: In file included from rustc_llvm_wrapper/rustllvm.h:15,
  1136. warning: [email protected]: from rustc_llvm_wrapper/RustWrapper.cpp:11:
  1137. warning: [email protected]: /opt/llvm70/include/llvm/ADT/ArrayRef.h: In instantiation of 'llvm::ArrayRef<T>::ArrayRef(const std::initializer_list<_Tp>&) [with T = long unsigned int]':
  1138. warning: [email protected]: /opt/llvm70/include/llvm/IR/DIBuilder.h:640:31: required from here
  1139. warning: [email protected]: 640 | return DIExpression::get(
  1140. warning: [email protected]: | ~~~~~~~~~~~~~~~~~^
  1141. warning: [email protected]: 641 | VMContext, {dwarf::DW_OP_constu, Val, dwarf::DW_OP_stack_value});
  1142. warning: [email protected]: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1143. warning: [email protected]: /opt/llvm70/include/llvm/ADT/ArrayRef.h:102:37: warning: initializing 'llvm::ArrayRef<long unsigned int>::Data' from 'std::initializer_list<long unsigned int>::begin' does not extend the lifetime of the underlying array [-Winit-list-lifetime]
  1144. warning: [email protected]: 102 | : Data(Vec.begin() == Vec.end() ? (T*)nullptr : Vec.begin()),
  1145. warning: [email protected]: | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
  1146. warning: [email protected]: In file included from rustc_llvm_wrapper/rustllvm.h:15,
  1147. warning: [email protected]: from rustc_llvm_wrapper/PassWrapper.cpp:16:
  1148. warning: [email protected]: /opt/llvm70/include/llvm/ADT/ArrayRef.h: In instantiation of 'llvm::ArrayRef<T>::ArrayRef(const std::initializer_list<_Tp>&) [with T = long unsigned int]':
  1149. warning: [email protected]: /opt/llvm70/include/llvm/IR/DIBuilder.h:640:31: required from here
  1150. warning: [email protected]: 640 | return DIExpression::get(
  1151. warning: [email protected]: | ~~~~~~~~~~~~~~~~~^
  1152. warning: [email protected]: 641 | VMContext, {dwarf::DW_OP_constu, Val, dwarf::DW_OP_stack_value});
  1153. warning: [email protected]: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1154. warning: [email protected]: /opt/llvm70/include/llvm/ADT/ArrayRef.h:102:37: warning: initializing 'llvm::ArrayRef<long unsigned int>::Data' from 'std::initializer_list<long unsigned int>::begin' does not extend the lifetime of the underlying array [-Winit-list-lifetime]
  1155. warning: [email protected]: 102 | : Data(Vec.begin() == Vec.end() ? (T*)nullptr : Vec.begin()),
  1156. warning: [email protected]: | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
  1157. error: could not compile `rustc_codegen_nvvm` (lib) due to 107 previous errors
  1158.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement