Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Compiling rustc_codegen_nvvm v0.3.0
- warning: unexpected `cfg` condition value: `nvptx`
- --> matmul/src/lib.rs:5:1
- |
- 5 | #[kernel]
- | ^^^^^^^^^
- |
- = 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`
- = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate
- = help: try referring to `kernel` crate for guidance on how handle this unexpected cfg
- = 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`
- = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
- = note: `#[warn(unexpected_cfgs)]` on by default
- = note: this warning originates in the attribute macro `kernel` (in Nightly builds, run with -Z macro-backtrace for more info)
- warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
- --> matmul/src/lib.rs:9:25
- |
- 9 | let elem = &mut *c.add(idx);
- | ^^^^^^^^^^^ dereference of raw pointer
- |
- = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
- = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
- note: an unsafe function restricts its caller, but its body is safe by default
- --> matmul/src/lib.rs:6:1
- |
- 6 | pub unsafe fn add(a: &[f32], b: &[f32], c: *mut f32) {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default
- warning[E0133]: call to unsafe function `std::ptr::mut_ptr::<impl *mut T>::add` is unsafe and requires unsafe block
- --> matmul/src/lib.rs:9:26
- |
- 9 | let elem = &mut *c.add(idx);
- | ^^^^^^^^^^ call to unsafe function
- |
- = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
- = note: consult the function's documentation for information on how to avoid undefined behavior
- warning: `extern` fn uses type `[f32]`, which is not FFI-safe
- --> matmul/src/lib.rs:6:22
- |
- 6 | pub unsafe fn add(a: &[f32], b: &[f32], c: *mut f32) {
- | ^^^^^^ not FFI-safe
- |
- = help: consider using a raw pointer instead
- = note: slices have no C equivalent
- = note: `#[warn(improper_ctypes_definitions)]` on by default
- warning: `extern` fn uses type `[f32]`, which is not FFI-safe
- --> matmul/src/lib.rs:6:33
- |
- 6 | pub unsafe fn add(a: &[f32], b: &[f32], c: *mut f32) {
- | ^^^^^^ not FFI-safe
- |
- = help: consider using a raw pointer instead
- = note: slices have no C equivalent
- For more information about this error, try `rustc --explain E0133`.
- warning: `matmul` (lib) generated 5 warnings (run `cargo fix --lib -p matmul` to apply 1 suggestion)
- error[E0463]: can't find crate for `rustc_attr`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:10:1
- |
- 10 | extern crate rustc_attr;
- | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
- |
- = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
- error[E0432]: unresolved import `rustc_codegen_ssa::traits::BaseTypeMethods`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/abi.rs:9:5
- |
- 9 | use rustc_codegen_ssa::traits::BaseTypeMethods;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `BaseTypeMethods` in `traits`
- error[E0432]: unresolved imports `rustc_middle::ty::layout::FAT_PTR_ADDR`, `rustc_middle::ty::layout::FAT_PTR_EXTRA`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/abi.rs:13:36
- |
- 13 | pub use rustc_middle::ty::layout::{FAT_PTR_ADDR, FAT_PTR_EXTRA};
- | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ no `FAT_PTR_EXTRA` in `ty::layout`
- | |
- | no `FAT_PTR_ADDR` in `ty::layout`
- |
- help: a similar name exists in the module
- |
- 13 | pub use rustc_middle::ty::layout::{WIDE_PTR_ADDR, FAT_PTR_EXTRA};
- | ~~~~~~~~~~~~~
- help: a similar name exists in the module
- |
- 13 | pub use rustc_middle::ty::layout::{FAT_PTR_ADDR, WIDE_PTR_EXTRA};
- | ~~~~~~~~~~~~~~
- error[E0432]: unresolved import `rustc_ast::LlvmAsmDialect`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/asm.rs:7:59
- |
- 7 | use rustc_ast::{InlineAsmOptions, InlineAsmTemplatePiece, LlvmAsmDialect};
- | ^^^^^^^^^^^^^^ no `LlvmAsmDialect` in the root
- error[E0432]: unresolved imports `rustc_codegen_ssa::traits::AsmMethods`, `rustc_codegen_ssa::traits::BaseTypeMethods`, `rustc_codegen_ssa::traits::ConstMethods`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/asm.rs:11:28
- |
- 11 | AsmBuilderMethods, AsmMethods, BaseTypeMethods, BuilderMethods, ConstMethods,
- | ^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ no `ConstMethods` in `traits`
- | | |
- | | no `BaseTypeMethods` in `traits`
- | no `AsmMethods` in `traits`
- error[E0432]: unresolved import `rustc_hir::LlvmInlineAsmInner`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/asm.rs:16:5
- |
- 16 | use rustc_hir::LlvmInlineAsmInner;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `LlvmInlineAsmInner` in the root
- error[E0432]: unresolved import `rustc_ast::Lit`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/attributes.rs:2:28
- |
- 2 | use rustc_ast::{Attribute, Lit, LitKind};
- | ^^^ no `Lit` in the root
- |
- = help: consider importing one of these items instead:
- rustc_ast::ExprKind::Lit
- rustc_ast::MetaItemInner::Lit
- rustc_ast::PatKind::Lit
- rustc_ast::token::Lit
- rustc_hir::ExprKind::Lit
- rustc_hir::Lit
- rustc_hir::PatKind::Lit
- error[E0432]: unresolved imports `rustc_codegen_ssa::traits::DebugInfoMethods`, `rustc_codegen_ssa::traits::MiscMethods`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/back.rs:6:33
- |
- 6 | use rustc_codegen_ssa::traits::{DebugInfoMethods, MiscMethods};
- | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ no `MiscMethods` in `traits`
- | |
- | no `DebugInfoMethods` in `traits`
- error[E0432]: unresolved import `rustc_codegen_ssa::traits::BaseTypeMethods`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/back.rs:11:14
- |
- 11 | traits::{BaseTypeMethods, ThinBufferMethods},
- | ^^^^^^^^^^^^^^^ no `BaseTypeMethods` in `traits`
- error[E0432]: unresolved import `rustc_errors::Handler`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/back.rs:15:32
- |
- 15 | use rustc_errors::{FatalError, Handler};
- | ^^^^^^^ no `Handler` in the root
- 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`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/const_ty.rs:8:14
- |
- 8 | traits::{BaseTypeMethods, ConstMethods, DerivedTypeMethods, MiscMethods, StaticMethods},
- | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ no `StaticMethods` in `traits`
- | | | | |
- | | | | no `MiscMethods` in `traits`
- | | | no `DerivedTypeMethods` in `traits`
- | | no `ConstMethods` in `traits`
- | no `BaseTypeMethods` in `traits`
- 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`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/consts.rs:7:5
- |
- 7 | BaseTypeMethods, ConstMethods, DerivedTypeMethods, MiscMethods, StaticMethods,
- | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ no `StaticMethods` in `traits`
- | | | | |
- | | | | no `MiscMethods` in `traits`
- | | | no `DerivedTypeMethods` in `traits`
- | | no `ConstMethods` in `traits`
- | no `BaseTypeMethods` in `traits`
- error[E0432]: unresolved imports `rustc_codegen_ssa::traits::BaseTypeMethods`, `rustc_codegen_ssa::traits::CoverageInfoMethods`, `rustc_codegen_ssa::traits::MiscMethods`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:7:47
- |
- 7 | use rustc_codegen_ssa::traits::{BackendTypes, BaseTypeMethods, CoverageInfoMethods, MiscMethods};
- | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ no `MiscMethods` in `traits`
- | | |
- | | no `CoverageInfoMethods` in `traits`
- | | help: a similar name exists in the module: `CodegenMethods`
- | no `BaseTypeMethods` in `traits`
- error[E0432]: unresolved imports `rustc_codegen_ssa::traits::ConstMethods`, `rustc_codegen_ssa::traits::DerivedTypeMethods`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:8:33
- |
- 8 | use rustc_codegen_ssa::traits::{ConstMethods, DerivedTypeMethods};
- | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ no `DerivedTypeMethods` in `traits`
- | |
- | no `ConstMethods` in `traits`
- error[E0432]: unresolved import `rustc_middle::ty::layout::HasParamEnv`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:13:40
- |
- 13 | FnAbiError, FnAbiOf, FnAbiRequest, HasParamEnv, HasTyCtxt, LayoutError, TyAndLayout,
- | ^^^^^^^^^^^ no `HasParamEnv` in `ty::layout`
- error[E0432]: unresolved imports `rustc_codegen_ssa::traits::BaseTypeMethods`, `rustc_codegen_ssa::traits::DerivedTypeMethods`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/ctx_intrinsics.rs:3:33
- |
- 3 | use rustc_codegen_ssa::traits::{BaseTypeMethods, DerivedTypeMethods};
- | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ no `DerivedTypeMethods` in `traits`
- | |
- | no `BaseTypeMethods` in `traits`
- error[E0432]: unresolved import `rustc_middle::ty::subst`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:15:23
- |
- 15 | use rustc_middle::ty::subst::{GenericArgKind, SubstsRef};
- | ^^^^^ could not find `subst` in `ty`
- error[E0432]: unresolved import `rustc_middle::mir::GeneratorLayout`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/metadata.rs:10:31
- |
- 10 | use rustc_middle::mir::{self, GeneratorLayout};
- | ^^^^^^^^^^^^^^^ no `GeneratorLayout` in `mir`
- error[E0432]: unresolved import `rustc_middle::ty::subst`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/metadata.rs:12:23
- |
- 12 | use rustc_middle::ty::subst::GenericArgKind;
- | ^^^^^ could not find `subst` in `ty`
- error[E0432]: unresolved import `rustc_middle::ty::GeneratorSubsts`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/metadata.rs:14:39
- |
- 14 | use rustc_middle::ty::{self, AdtKind, GeneratorSubsts, ParamEnv, Ty, TyCtxt};
- | ^^^^^^^^^^^^^^^ no `GeneratorSubsts` in `ty`
- error[E0432]: unresolved import `rustc_query_system::ich::NodeIdHashingMode`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/metadata.rs:16:5
- |
- 16 | use rustc_query_system::ich::NodeIdHashingMode;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `NodeIdHashingMode` in `ich`
- error[E0432]: unresolved import `rustc_target::abi::Abi`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/metadata.rs:21:25
- |
- 21 | use rustc_target::abi::{Abi, Align, HasDataLayout, Integer, TagEncoding};
- | ^^^ no `Abi` in `abi`
- |
- = help: consider importing one of these items instead:
- crate::abi::Abi
- crate::debug_info::mir::UnwindTerminateReason::Abi
- crate::debug_info::ty::inherent::Abi
- std::intrinsics::mir::UnwindTerminateReason::Abi
- rustc_middle::mir::UnwindTerminateReason::Abi
- rustc_middle::ty::inherent::Abi
- rustc_target::spec::abi::Abi
- error[E0432]: unresolved import `rustc_middle::ty::DefIdTree`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/util.rs:2:5
- |
- 2 | use rustc_middle::ty::DefIdTree;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `DefIdTree` in `ty`
- error[E0432]: unresolved import `rustc_metadata::dynamic_lib`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/init.rs:2:21
- |
- 2 | use rustc_metadata::dynamic_lib::DynamicLibrary;
- | ^^^^^^^^^^^ could not find `dynamic_lib` in `rustc_metadata`
- error[E0432]: unresolved import `rustc_codegen_ssa::traits::BaseTypeMethods`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/int_replace.rs:1:5
- |
- 1 | use rustc_codegen_ssa::traits::BaseTypeMethods;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `BaseTypeMethods` in `traits`
- error[E0432]: unresolved import `rustc_codegen_ssa::common::span_invalid_monomorphization_error`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:6:5
- |
- 6 | use rustc_codegen_ssa::common::span_invalid_monomorphization_error;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `span_invalid_monomorphization_error` in `common`
- error[E0432]: unresolved import `rustc_codegen_ssa::traits::DerivedTypeMethods`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:8:5
- |
- 8 | use rustc_codegen_ssa::traits::DerivedTypeMethods;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `DerivedTypeMethods` in `traits`
- error[E0432]: unresolved imports `rustc_codegen_ssa::traits::BaseTypeMethods`, `rustc_codegen_ssa::traits::ConstMethods`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:9:33
- |
- 9 | use rustc_codegen_ssa::traits::{BaseTypeMethods, BuilderMethods, ConstMethods, OverflowOp};
- | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ no `ConstMethods` in `traits`
- | |
- | no `BaseTypeMethods` in `traits`
- error[E0432]: unresolved import `rustc_codegen_ssa::traits::IntrinsicCallMethods`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:10:51
- |
- 10 | use rustc_codegen_ssa::{mir::operand::OperandRef, traits::IntrinsicCallMethods};
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `IntrinsicCallMethods` in `traits`
- error[E0432]: unresolved import `abi::Abi`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:430:26
- |
- 430 | use abi::Abi::*;
- | ^^^ help: a similar path exists: `crate::abi::Abi`
- |
- = note: `use` statements changed in Rust 2018; read more at <https://doc.rust-lang.org/edition-guide/rust-2018/module-system/path-clarity.html>
- error[E0432]: unresolved import `rustc_data_structures::owning_ref`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/link.rs:4:28
- |
- 4 | use rustc_data_structures::owning_ref::OwningRef;
- | ^^^^^^^^^^ could not find `owning_ref` in `rustc_data_structures`
- error[E0432]: unresolved import `rustc_data_structures::rustc_erase_owner`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/link.rs:5:5
- |
- 5 | use rustc_data_structures::rustc_erase_owner;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `rustc_erase_owner` in the root
- error[E0432]: unresolved import `rustc_data_structures::sync::MetadataRef`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/link.rs:6:5
- |
- 6 | use rustc_data_structures::sync::MetadataRef;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `MetadataRef` in `sync`
- error[E0432]: unresolved import `rustc_session::cstore::MetadataLoader`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/link.rs:9:5
- |
- 9 | use rustc_session::cstore::MetadataLoader;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `MetadataLoader` in `cstore`
- |
- help: consider importing this trait instead
- |
- 9 | use rustc_metadata::creader::MetadataLoader;
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- error[E0432]: unresolved import `rustc_errors::Handler`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lto.rs:10:32
- |
- 10 | use rustc_errors::{FatalError, Handler};
- | ^^^^^^^ no `Handler` in the root
- error[E0432]: unresolved import `rustc_codegen_ssa::traits::BaseTypeMethods`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/override_fns.rs:7:33
- |
- 7 | use rustc_codegen_ssa::traits::{BaseTypeMethods, BuilderMethods};
- | ^^^^^^^^^^^^^^^ no `BaseTypeMethods` in `traits`
- error[E0432]: unresolved import `rustc_target::abi::Abi`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/ty.rs:17:5
- |
- 17 | use rustc_target::abi::Abi;
- | ^^^^^^^^^^^^^^^^^^^^^^ no `Abi` in `abi`
- |
- help: consider importing one of these items instead
- |
- 17 | use crate::abi::Abi;
- | ~~~~~~~~~~~~~~~
- 17 | use crate::ty::ty::inherent::Abi;
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 17 | use std::intrinsics::mir::UnwindTerminateReason::Abi;
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 17 | use rustc_middle::mir::UnwindTerminateReason::Abi;
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- and 2 other candidates
- error[E0432]: unresolved import `rustc_codegen_ssa::back::write::FatLTOInput`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:57:33
- |
- 57 | write::{CodegenContext, FatLTOInput, ModuleConfig, OngoingCodegen},
- | ^^^^^^^^^^^
- | |
- | no `FatLTOInput` in `back::write`
- | help: a similar name exists in the module: `FatLtoInput`
- error[E0432]: unresolved imports `rustc_errors::ErrorReported`, `rustc_errors::Handler`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:62:20
- |
- 62 | use rustc_errors::{ErrorReported, FatalError, Handler};
- | ^^^^^^^^^^^^^ ^^^^^^^ no `Handler` in the root
- | |
- | no `ErrorReported` in the root
- error[E0432]: unresolved import `rustc_middle::ty::query`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:65:5
- |
- 65 | use rustc_middle::ty::query;
- | ^^^^^^^^^^^^^^^^^^^^^^^ no `query` in `ty`
- |
- help: consider importing one of these modules instead
- |
- 65 | use rustc_middle::query;
- | ~~~~~~~~~~~~~~~~~~~
- 65 | use rustc_middle::traits::query;
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 65 | use rustc_query_system::query;
- | ~~~~~~~~~~~~~~~~~~~~~~~~~
- error[E0432]: unresolved import `rustc_session::cstore::MetadataLoaderDyn`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:70:21
- |
- 70 | use rustc_session::{cstore::MetadataLoaderDyn, Session};
- | ^^^^^^^^^^^^^^^^^^^^^^^^^ no `MetadataLoaderDyn` in `cstore`
- |
- = help: consider importing this type alias instead:
- rustc_metadata::creader::MetadataLoaderDyn
- error[E0603]: variant `Int` is private
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/abi.rs:17:46
- |
- 17 | use rustc_target::abi::{self, HasDataLayout, Int};
- | ^^^ private variant
- |
- note: the variant `Int` is defined here
- --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_target/src/lib.rs:35:20
- help: import `Int` directly
- |
- 17 | use rustc_target::abi::{self, HasDataLayout, rustc_abi::Primitive::Int};
- | ~~~~~~~~~~~~~~~~~~~~~~~~~
- error[E0603]: module `vec` is private
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:12:18
- |
- 12 | use rustc_index::vec::IndexVec;
- | ^^^ private module
- |
- note: the module `vec` is defined here
- --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_index/src/lib.rs:15:1
- error[E0603]: module `vec` is private
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/create_scope_map.rs:13:18
- |
- 13 | use rustc_index::vec::Idx;
- | ^^^ private module
- |
- note: the module `vec` is defined here
- --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_index/src/lib.rs:15:1
- help: consider importing this trait instead
- |
- 13 | use rustc_index::Idx;
- | ~~~~~~~~~~~~~~~~
- error[E0603]: module `vec` is private
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/metadata.rs:9:18
- |
- 9 | use rustc_index::vec::{Idx, IndexVec};
- | ^^^ private module
- |
- help: consider importing this trait instead:
- rustc_index::Idx
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/metadata.rs:9:24
- |
- 9 | use rustc_index::vec::{Idx, IndexVec};
- | ^^^
- note: the module `vec` is defined here
- --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_index/src/lib.rs:15:1
- error[E0603]: module `vec` is private
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/metadata.rs:9:18
- |
- 9 | use rustc_index::vec::{Idx, IndexVec};
- | ^^^ private module
- |
- note: the module `vec` is defined here
- --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_index/src/lib.rs:15:1
- error[E0603]: tuple variant `Int` is private
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:531:22
- |
- 531 | abi::Int(..) => {
- | ^^^ private tuple variant
- |
- note: the tuple variant `Int` is defined here
- --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_target/src/lib.rs:35:20
- help: consider importing this tuple variant instead
- |
- 531 | rustc_target::abi::Primitive::Int(..) => {
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- help: import `Int` directly
- |
- 531 | rustc_abi::Primitive::Int::Int(..) => {
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- error[E0603]: tuple variant `Pointer` is private
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:536:22
- |
- 536 | abi::Pointer if !scalar.valid_range.contains(0) => {
- | ^^^^^^^ private tuple variant
- |
- note: the tuple variant `Pointer` is defined here
- --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_target/src/lib.rs:35:20
- help: consider importing this tuple variant instead
- |
- 536 | rustc_target::abi::Primitive::Pointer if !scalar.valid_range.contains(0) => {
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- help: import `Pointer` directly
- |
- 536 | rustc_abi::Primitive::Pointer::Pointer if !scalar.valid_range.contains(0) => {
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- error[E0554]: `#![feature]` may not be used on the stable release channel
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:1:1
- |
- 1 | #![feature(rustc_private)]
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^
- error[E0554]: `#![feature]` may not be used on the stable release channel
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:5:1
- |
- 5 | #![feature(extern_types)]
- | ^^^^^^^^^^^^^^^^^^^^^^^^^
- error[E0554]: `#![feature]` may not be used on the stable release channel
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:6:1
- |
- 6 | #![feature(backtrace)]
- | ^^^^^^^^^^^^^^^^^^^^^^
- error[E0050]: method `join_codegen` has 3 parameters but the declaration in trait `join_codegen` has 4
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:132:9
- |
- 132 | / &self,
- 133 | | ongoing_codegen: Box<dyn std::any::Any>,
- 134 | | sess: &Session,
- | |______________________^ expected 4 parameters, found 3
- |
- = 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>>)`
- error[E0046]: not all trait items implemented, missing: `locale_resource`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:88:1
- |
- 88 | impl CodegenBackend for NvvmCodegenBackend {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `locale_resource` in implementation
- |
- = help: implement the missing item: `fn locale_resource(&self) -> &'static str { todo!() }`
- error[E0053]: method `optimize_thin` has an incompatible type for trait
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:215:22
- |
- 215 | thin_module: &mut ThinModule<Self>,
- | ^^^^^^^^^^^^^^^^^^^^^ expected `ThinModule<NvvmCodegenBackend>`, found `&mut ThinModule<NvvmCodegenBackend>`
- |
- = note: expected signature `unsafe fn(&CodegenContext<_>, ThinModule<_>) -> Result<_, _>`
- found signature `unsafe fn(&CodegenContext<_>, &mut ThinModule<_>) -> Result<_, _>`
- help: change the parameter type to match the trait
- |
- 215 | thin_module: ThinModule<NvvmCodegenBackend>,
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- error[E0050]: method `prepare_thin` has 1 parameter but the declaration in trait `prepare_thin` has 2
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:229:29
- |
- 229 | fn prepare_thin(module: ModuleCodegen<Self::Module>) -> (String, Self::ThinBuffer) {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 2 parameters, found 1
- |
- = 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)`
- error[E0046]: not all trait items implemented, missing: `TargetMachineError`, `print_statistics`, `optimize_fat`, `autodiff`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:163:1
- |
- 163 | impl WriteBackendMethods for NvvmCodegenBackend {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `TargetMachineError`, `print_statistics`, `optimize_fat`, `autodiff` in implementation
- |
- = help: implement the missing item: `type TargetMachineError = /* Type */;`
- = help: implement the missing item: `fn print_statistics(&self) { todo!() }`
- = help: implement the missing item: `fn optimize_fat(_: &CodegenContext<Self>, _: &mut ModuleCodegen<<Self as rustc_codegen_ssa::traits::WriteBackendMethods>::Module>) -> Result<(), FatalError> { todo!() }`
- = 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!() }`
- error[E0050]: method `codegen_allocator` has 6 parameters but the declaration in trait `codegen_allocator` has 5
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:274:9
- |
- 274 | / &self,
- 275 | | tcx: TyCtxt<'tcx>,
- 276 | | mods: &mut Self::Module,
- 277 | | _module_name: &str,
- 278 | | kind: rustc_ast::expand::allocator::AllocatorKind,
- 279 | | has_alloc_error_handler: bool,
- | |_____________________________________^ expected 5 parameters, found 6
- |
- = note: `codegen_allocator` from trait: `fn(&Self, TyCtxt<'tcx>, &str, AllocatorKind, AllocatorKind) -> <Self as rustc_codegen_ssa::traits::WriteBackendMethods>::Module`
- error[E0050]: method `target_machine_factory` has 3 parameters but the declaration in trait `rustc_codegen_ssa::traits::ExtraBackendMethods::target_machine_factory` has 4
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lib.rs:293:9
- |
- 293 | / &self,
- 294 | | sess: &Session,
- 295 | | opt_level: rustc_session::config::OptLevel,
- | |__________________________________________________^ expected 4 parameters, found 3
- |
- = 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)>`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/abi.rs:241:29
- |
- 241 | dst: PlaceRef<'tcx, Self::Value>,
- | ^^^^^^^^^^^ help: use fully-qualified syntax: `<builder::Builder<'a, 'll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:249:40
- |
- 249 | fn declare_c_main(&self, _fn_type: Self::Type) -> Option<Self::Function> {
- | ^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Type`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:249:62
- |
- 249 | fn declare_c_main(&self, _fn_type: Self::Type) -> Option<Self::Function> {
- | ^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Function`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:254:44
- |
- 254 | fn apply_target_cpu_attr(&self, _llfn: Self::Function) {
- | ^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Function`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:258:53
- |
- 258 | fn compiler_used_statics(&self) -> &RefCell<Vec<Self::Value>> {
- | ^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:262:45
- |
- 262 | fn set_frame_pointer_type(&self, _llfn: Self::Function) {}
- | ^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Function`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:651:67
- |
- 651 | fn get_pgo_func_name_var(&self, _instance: Instance<'tcx>) -> Self::Value {
- | ^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:453:16
- |
- 453 | scope: Self::DIScope,
- | ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::DIScope`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:454:28
- |
- 454 | inlined_at: Option<Self::DILocation>,
- | ^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::DILocation`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:456:10
- |
- 456 | ) -> Self::DILocation {
- | ^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::DILocation`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:466:17
- |
- 466 | vtable: Self::Value,
- | ^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:473:25
- |
- 473 | scope_metadata: Self::DIScope,
- | ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::DIScope`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:475:10
- |
- 475 | ) -> Self::DIScope {
- | ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::DIScope`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:489:25
- |
- 489 | scope_metadata: Self::DIScope,
- | ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::DIScope`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:492:10
- |
- 492 | ) -> Self::DIVariable {
- | ^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<CodegenCx<'ll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::DIVariable`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:491:31
- |
- 491 | fn assume(&mut self, val: Self::Value) {
- | ^^^^^^^^^^^ help: use fully-qualified syntax: `<builder::Builder<'a, 'll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:497:32
- |
- 497 | fn expect(&mut self, cond: Self::Value, expected: bool) -> Self::Value {
- | ^^^^^^^^^^^ help: use fully-qualified syntax: `<builder::Builder<'a, 'll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:497:64
- |
- 497 | fn expect(&mut self, cond: Self::Value, expected: bool) -> Self::Value {
- | ^^^^^^^^^^^ help: use fully-qualified syntax: `<builder::Builder<'a, 'll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:508:39
- |
- 508 | fn type_test(&mut self, _pointer: Self::Value, _typeid: Self::Value) -> Self::Value {
- | ^^^^^^^^^^^ help: use fully-qualified syntax: `<builder::Builder<'a, 'll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:508:61
- |
- 508 | fn type_test(&mut self, _pointer: Self::Value, _typeid: Self::Value) -> Self::Value {
- | ^^^^^^^^^^^ help: use fully-qualified syntax: `<builder::Builder<'a, 'll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:508:77
- |
- 508 | fn type_test(&mut self, _pointer: Self::Value, _typeid: Self::Value) -> Self::Value {
- | ^^^^^^^^^^^ help: use fully-qualified syntax: `<builder::Builder<'a, 'll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:513:52
- |
- 513 | fn va_start(&mut self, va_list: &'ll Value) -> Self::Value {
- | ^^^^^^^^^^^ help: use fully-qualified syntax: `<builder::Builder<'a, 'll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
- error[E0223]: ambiguous associated type
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/intrinsic.rs:519:50
- |
- 519 | fn va_end(&mut self, va_list: &'ll Value) -> Self::Value {
- | ^^^^^^^^^^^ help: use fully-qualified syntax: `<builder::Builder<'a, 'll, 'tcx> as rustc_codegen_ssa::traits::BackendTypes>::Value`
- error[E0050]: method `codegen_inline_asm` has 6 parameters but the declaration in trait `codegen_inline_asm` has 8
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/asm.rs:116:9
- |
- 116 | / &mut self,
- 117 | | template: &[InlineAsmTemplatePiece],
- 118 | | operands: &[InlineAsmOperandRef<'tcx, Self>],
- 119 | | options: rustc_ast::InlineAsmOptions,
- 120 | | line_spans: &[Span],
- 121 | | _inst: Instance,
- | |_______________________^ expected 8 parameters, found 6
- |
- = 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>)>)`
- error[E0046]: not all trait items implemented, missing: `Metadata`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:54:1
- |
- 54 | impl<'ll, 'tcx> BackendTypes for Builder<'_, 'll, 'tcx> {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `Metadata` in implementation
- |
- = help: implement the missing item: `type Metadata = /* Type */;`
- error[E0277]: the trait bound `builder::Builder<'_, '_, 'tcx>: HasTypingEnv<'tcx>` is not satisfied
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:90:38
- |
- 90 | impl<'tcx> LayoutOfHelpers<'tcx> for Builder<'_, '_, 'tcx> {
- | ^^^^^^^^^^^^^^^^^^^^^ the trait `HasTypingEnv<'tcx>` is not implemented for `builder::Builder<'_, '_, 'tcx>`
- |
- = help: the following other types implement trait `HasTypingEnv<'tcx>`:
- LayoutCx<'tcx>
- rustc_const_eval::interpret::eval_context::InterpCx<'tcx, M>
- rustc_lint::context::LateContext<'tcx>
- rustc_smir::rustc_smir::Tables<'tcx>
- note: required by a bound in `LayoutOfHelpers`
- --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_middle/src/ty/layout.rs:657:1
- error[E0277]: the trait bound `builder::Builder<'_, 'll, 'tcx>: HasTypingEnv<'tcx>` is not satisfied
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:99:42
- |
- 99 | impl<'ll, 'tcx> FnAbiOfHelpers<'tcx> for Builder<'_, 'll, 'tcx> {
- | ^^^^^^^^^^^^^^^^^^^^^^ the trait `HasTypingEnv<'tcx>` is not implemented for `builder::Builder<'_, 'll, 'tcx>`
- |
- = help: the following other types implement trait `HasTypingEnv<'tcx>`:
- LayoutCx<'tcx>
- rustc_const_eval::interpret::eval_context::InterpCx<'tcx, M>
- rustc_lint::context::LateContext<'tcx>
- rustc_smir::rustc_smir::Tables<'tcx>
- = note: required for `builder::Builder<'_, 'll, 'tcx>` to implement `LayoutOfHelpers<'tcx>`
- note: required by a bound in `FnAbiOfHelpers`
- --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_middle/src/ty/layout.rs:1288:1
- error[E0046]: not all trait items implemented, missing: `add_coverage`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:137:1
- |
- 137 | impl<'a, 'll, 'tcx> CoverageInfoBuilderMethods<'tcx> for Builder<'a, 'll, 'tcx> {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `add_coverage` in implementation
- |
- = help: implement the missing item: `fn add_coverage(&mut self, _: Instance<'tcx>, _: &CoverageKind) { todo!() }`
- error[E0277]: the trait bound `builder::Builder<'a, 'll, 'tcx>: rustc_codegen_ssa::traits::IntrinsicCallBuilderMethods<'tcx>` is not satisfied
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:176:50
- |
- 176 | impl<'ll, 'tcx, 'a> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
- | ^^^^^^^^^^^^^^^^^^^^^^ the trait `rustc_codegen_ssa::traits::IntrinsicCallBuilderMethods<'tcx>` is not implemented for `builder::Builder<'a, 'll, 'tcx>`
- |
- note: required by a bound in `rustc_codegen_ssa::traits::BuilderMethods`
- --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_codegen_ssa/src/traits/builder.rs:35:1
- error[E0277]: the trait bound `builder::Builder<'a, 'll, 'tcx>: rustc_codegen_ssa::traits::ArgAbiBuilderMethods<'tcx>` is not satisfied
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:176:50
- |
- 176 | impl<'ll, 'tcx, 'a> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
- | ^^^^^^^^^^^^^^^^^^^^^^ the trait `rustc_codegen_ssa::traits::ArgAbiBuilderMethods<'tcx>` is not implemented for `builder::Builder<'a, 'll, 'tcx>`
- |
- note: required by a bound in `rustc_codegen_ssa::traits::BuilderMethods`
- --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_codegen_ssa/src/traits/builder.rs:35:1
- error[E0277]: the trait bound `builder::Builder<'a, 'll, 'tcx>: HasTypingEnv<'tcx>` is not satisfied
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:176:50
- |
- 176 | impl<'ll, 'tcx, 'a> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
- | ^^^^^^^^^^^^^^^^^^^^^^ the trait `HasTypingEnv<'tcx>` is not implemented for `builder::Builder<'a, 'll, 'tcx>`
- |
- = help: the following other types implement trait `HasTypingEnv<'tcx>`:
- LayoutCx<'tcx>
- rustc_const_eval::interpret::eval_context::InterpCx<'tcx, M>
- rustc_lint::context::LateContext<'tcx>
- rustc_smir::rustc_smir::Tables<'tcx>
- = note: required for `builder::Builder<'a, 'll, 'tcx>` to implement `LayoutOfHelpers<'tcx>`
- = note: required for `builder::Builder<'a, 'll, 'tcx>` to implement `FnAbiOfHelpers<'tcx>`
- = note: required for `builder::Builder<'a, 'll, 'tcx>` to implement `FnAbiOf<'tcx>`
- note: required by a bound in `rustc_codegen_ssa::traits::BuilderMethods`
- --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_codegen_ssa/src/traits/builder.rs:35:1
- error[E0050]: method `invoke` has 7 parameters but the declaration in trait `invoke` has 10
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:261:9
- |
- 261 | / &mut self,
- 262 | | ty: &'ll Type,
- 263 | | llfn: &'ll Value,
- 264 | | args: &[&'ll Value],
- 265 | | then: &'ll BasicBlock,
- 266 | | _catch: &'ll BasicBlock,
- 267 | | funclet: Option<&()>,
- | |____________________________^ expected 10 parameters, found 7
- |
- = 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`
- error[E0053]: method `alloca` has an incompatible type for trait
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:447:30
- |
- 447 | fn alloca(&mut self, ty: &'ll Type, align: Align) -> &'ll Value {
- | ^^^^^^^^^ expected `rustc_target::abi::Size`, found `&'ll llvm::Type`
- |
- ::: /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/llvm.rs:454:5
- |
- 454 | pub(crate) type Type;
- | -------------------- one of the found foreign types
- ...
- 457 | pub(crate) type Value;
- | ---------------------
- | |
- | the expected foreign type
- | one of the found foreign types
- |
- = note: expected signature `fn(&mut builder::Builder<'_, '_, '_>, rustc_target::abi::Size, Align) -> &'ll _`
- found signature `fn(&mut builder::Builder<'_, '_, '_>, &'ll llvm::Type, Align) -> &'ll _`
- help: change the parameter type to match the trait
- |
- 447 | fn alloca(&mut self, ty: rustc_target::abi::Size, align: Align) -> &'ll Value {
- | ~~~~~~~~~~~~~~~~~~~~~~~
- error[E0053]: method `dynamic_alloca` has an incompatible type for trait
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:454:38
- |
- 454 | fn dynamic_alloca(&mut self, ty: &'ll Type, align: Align) -> &'ll Value {
- | ^^^^^^^^^ expected extern type `llvm::Value`, found extern type `llvm::Type`
- |
- ::: /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/llvm.rs:454:5
- |
- 454 | pub(crate) type Type;
- | -------------------- one of the found foreign types
- ...
- 457 | pub(crate) type Value;
- | ---------------------
- | |
- | the expected foreign type
- | one of the found foreign types
- |
- = note: expected signature `fn(&mut builder::Builder<'_, '_, '_>, &'ll llvm::Value, Align) -> &'ll _`
- found signature `fn(&mut builder::Builder<'_, '_, '_>, &'ll llvm::Type, Align) -> &'ll _`
- help: change the parameter type to match the trait
- |
- 454 | fn dynamic_alloca(&mut self, ty: &'ll llvm::Value, align: Align) -> &'ll Value {
- | ~~~~~~~~~~~~~~~~
- error[E0053]: method `write_operand_repeatedly` has an incompatible type for trait
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:592:13
- |
- 592 | mut self,
- | ^^^^ expected `&mut Builder<'a, 'll, 'tcx>`, found `builder::Builder<'a, 'll, 'tcx>`
- |
- ::: /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/llvm.rs:457:5
- |
- 457 | pub(crate) type Value;
- | ---------------------
- | |
- | the expected foreign type
- | the found foreign type
- |
- = note: expected signature `fn(&mut builder::Builder<'_, '_, '_>, OperandRef<'_, _>, _, rustc_codegen_ssa::mir::place::PlaceRef<'_, _>) -> ()`
- found signature `fn(builder::Builder<'_, '_, '_>, OperandRef<'_, _>, _, rustc_codegen_ssa::mir::place::PlaceRef<'_, _>) -> builder::Builder<'a, 'll, 'tcx>`
- help: change the self-receiver type to match the trait
- |
- 592 | mut &mut self,
- | ~~~~~~~~~
- error[E0053]: method `fptoui_sat` has an incompatible type for trait
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:776:72
- |
- 776 | fn fptoui_sat(&mut self, _val: &'ll Value, _dest_ty: &'ll Type) -> Option<&'ll Value> {
- | ^^^^^^^^^^^^^^^^^^ expected `&'ll llvm::Value`, found `Option<&llvm::Value>`
- |
- ::: /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/llvm.rs:454:5
- |
- 454 | pub(crate) type Type;
- | --------------------
- | |
- | one of the expected foreign types
- | one of the found foreign types
- ...
- 457 | pub(crate) type Value;
- | ---------------------
- | |
- | one of the expected foreign types
- | one of the found foreign types
- |
- = note: expected signature `fn(&mut builder::Builder<'_, '_, '_>, &'ll _, &'ll _) -> &'ll llvm::Value`
- found signature `fn(&mut builder::Builder<'_, '_, '_>, &'ll _, &'ll _) -> std::option::Option<&'ll llvm::Value>`
- help: change the output type to match the trait
- |
- 776 | fn fptoui_sat(&mut self, _val: &'ll Value, _dest_ty: &'ll Type) -> &'ll llvm::Value {
- | ~~~~~~~~~~~~~~~~
- error[E0053]: method `fptosi_sat` has an incompatible type for trait
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:780:72
- |
- 780 | fn fptosi_sat(&mut self, _val: &'ll Value, _dest_ty: &'ll Type) -> Option<&'ll Value> {
- | ^^^^^^^^^^^^^^^^^^ expected `&'ll llvm::Value`, found `Option<&llvm::Value>`
- |
- ::: /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/llvm.rs:454:5
- |
- 454 | pub(crate) type Type;
- | --------------------
- | |
- | one of the expected foreign types
- | one of the found foreign types
- ...
- 457 | pub(crate) type Value;
- | ---------------------
- | |
- | one of the expected foreign types
- | one of the found foreign types
- |
- = note: expected signature `fn(&mut builder::Builder<'_, '_, '_>, &'ll _, &'ll _) -> &'ll llvm::Value`
- found signature `fn(&mut builder::Builder<'_, '_, '_>, &'ll _, &'ll _) -> std::option::Option<&'ll llvm::Value>`
- help: change the output type to match the trait
- |
- 780 | fn fptosi_sat(&mut self, _val: &'ll Value, _dest_ty: &'ll Type) -> &'ll llvm::Value {
- | ~~~~~~~~~~~~~~~~
- error[E0050]: method `resume` has 2 parameters but the declaration in trait `rustc_codegen_ssa::traits::BuilderMethods::resume` has 3
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:1004:15
- |
- 1004 | fn resume(&mut self, _exn: &'ll Value) -> &'ll Value {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters, found 2
- |
- = note: `resume` from trait: `fn(&mut Self, <Self as rustc_codegen_ssa::traits::BackendTypes>::Value, <Self as rustc_codegen_ssa::traits::BackendTypes>::Value)`
- error[E0053]: method `cleanup_ret` has an incompatible type for trait
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:1010:83
- |
- 1010 | fn cleanup_ret(&mut self, _funclet: &(), _unwind: Option<&'ll BasicBlock>) -> &'ll Value {
- | ^^^^^^^^^^ expected `()`, found `&'ll llvm::Value`
- |
- ::: /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/llvm.rs:457:5
- |
- 457 | pub(crate) type Value;
- | --------------------- one of the found foreign types
- ...
- 466 | pub(crate) type BasicBlock;
- | --------------------------
- | |
- | the expected foreign type
- | one of the found foreign types
- |
- = note: expected signature `fn(&mut builder::Builder<'_, '_, '_>, &(), std::option::Option<_>) -> ()`
- found signature `fn(&mut builder::Builder<'_, '_, '_>, &(), std::option::Option<_>) -> &'ll llvm::Value`
- help: change the output type to match the trait
- |
- 1010 | fn cleanup_ret(&mut self, _funclet: &(), _unwind: Option<&'ll BasicBlock>) -> () {
- | ~~
- error[E0053]: method `catch_switch` has an incompatible type for trait
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:1021:24
- |
- 1021 | _num_handlers: usize,
- | ^^^^^ expected `&[&'ll llvm::BasicBlock]`, found `usize`
- |
- ::: /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/llvm.rs:457:5
- |
- 457 | pub(crate) type Value;
- | ---------------------
- | |
- | one of the expected foreign types
- | one of the found foreign types
- ...
- 466 | pub(crate) type BasicBlock;
- | --------------------------
- | |
- | one of the expected foreign types
- | one of the found foreign types
- |
- = note: expected signature `fn(&mut builder::Builder<'_, '_, '_>, std::option::Option<_>, std::option::Option<_>, &[&'ll llvm::BasicBlock]) -> &'ll _`
- found signature `fn(&mut builder::Builder<'_, '_, '_>, std::option::Option<_>, std::option::Option<_>, usize) -> &'ll _`
- help: change the parameter type to match the trait
- |
- 1021 | _num_handlers: &[&'ll llvm::BasicBlock],
- | ~~~~~~~~~~~~~~~~~~~~~~~~
- error[E0053]: method `atomic_cmpxchg` has an incompatible type for trait
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:1041:10
- |
- 1041 | ) -> &'ll Value {
- | ^^^^^^^^^^ expected `(&llvm::Value, &llvm::Value)`, found `&'ll llvm::Value`
- |
- ::: /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/llvm.rs:457:5
- |
- 457 | pub(crate) type Value;
- | ---------------------
- | |
- | the expected foreign type
- | the found foreign type
- |
- = 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)`
- found signature `fn(&mut builder::Builder<'_, '_, '_>, &'ll _, &'ll _, &'ll _, rustc_codegen_ssa::common::AtomicOrdering, rustc_codegen_ssa::common::AtomicOrdering, _) -> &'ll llvm::Value`
- help: change the output type to match the trait
- |
- 1041 | ) -> (&'ll llvm::Value, &'ll llvm::Value) {
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- error[E0050]: method `call` has 5 parameters but the declaration in trait `rustc_codegen_ssa::traits::BuilderMethods::call` has 8
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:1094:9
- |
- 1094 | / &mut self,
- 1095 | | _: &'ll Type,
- 1096 | | llfn: &'ll Value,
- 1097 | | args: &[&'ll Value],
- 1098 | | _funclet: Option<&()>,
- | |_____________________________^ expected 8 parameters, found 5
- |
- = 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`
- 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`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/builder.rs:176:1
- |
- 176 | impl<'ll, 'tcx, 'a> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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
- |
- = help: implement the missing item: `type CodegenCx = /* Type */;`
- = help: implement the missing item: `fn switch_to_block(&mut self, _: <Self as rustc_codegen_ssa::traits::BackendTypes>::BasicBlock) { todo!() }`
- = 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!() }`
- = 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!() }`
- = 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!() }`
- = 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!() }`
- = 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!() }`
- = 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!() }`
- = 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!() }`
- = help: implement the missing item: `fn apply_attrs_to_cleanup_callsite(&mut self, _: <Self as rustc_codegen_ssa::traits::BackendTypes>::Value) { todo!() }`
- error[E0046]: not all trait items implemented, missing: `Metadata`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:550:1
- |
- 550 | impl<'ll, 'tcx> BackendTypes for CodegenCx<'ll, 'tcx> {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `Metadata` in implementation
- |
- = help: implement the missing item: `type Metadata = /* Type */;`
- error[E0277]: the trait bound `CodegenCx<'ll, 'tcx>: HasTypingEnv<'tcx>` is not satisfied
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:583:43
- |
- 583 | impl<'ll, 'tcx> LayoutOfHelpers<'tcx> for CodegenCx<'ll, 'tcx> {
- | ^^^^^^^^^^^^^^^^^^^^ the trait `HasTypingEnv<'tcx>` is not implemented for `CodegenCx<'ll, 'tcx>`
- |
- = help: the following other types implement trait `HasTypingEnv<'tcx>`:
- LayoutCx<'tcx>
- rustc_const_eval::interpret::eval_context::InterpCx<'tcx, M>
- rustc_lint::context::LateContext<'tcx>
- rustc_smir::rustc_smir::Tables<'tcx>
- note: required by a bound in `LayoutOfHelpers`
- --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_middle/src/ty/layout.rs:657:1
- error[E0277]: the trait bound `CodegenCx<'ll, 'tcx>: HasTypingEnv<'tcx>` is not satisfied
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/context.rs:602:42
- |
- 602 | impl<'ll, 'tcx> FnAbiOfHelpers<'tcx> for CodegenCx<'ll, 'tcx> {
- | ^^^^^^^^^^^^^^^^^^^^ the trait `HasTypingEnv<'tcx>` is not implemented for `CodegenCx<'ll, 'tcx>`
- |
- = help: the following other types implement trait `HasTypingEnv<'tcx>`:
- LayoutCx<'tcx>
- rustc_const_eval::interpret::eval_context::InterpCx<'tcx, M>
- rustc_lint::context::LateContext<'tcx>
- rustc_smir::rustc_smir::Tables<'tcx>
- = note: required for `CodegenCx<'ll, 'tcx>` to implement `LayoutOfHelpers<'tcx>`
- note: required by a bound in `FnAbiOfHelpers`
- --> /home/eva/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/compiler/rustc_middle/src/ty/layout.rs:1288:1
- error[E0050]: method `dbg_var_addr` has 6 parameters but the declaration in trait `dbg_var_addr` has 7
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:103:9
- |
- 103 | / &mut self,
- 104 | | dbg_var: &'ll DIVariable,
- 105 | | dbg_loc: &'ll DILocation,
- 106 | | variable_alloca: &'ll Value,
- 107 | | direct_offset: Size,
- 108 | | indirect_offsets: &[Size],
- | |_________________________________^ expected 7 parameters, found 6
- |
- = 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>>)`
- error[E0046]: not all trait items implemented, missing: `clear_dbg_loc`, `get_dbg_loc`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/debug_info/mod.rs:101:1
- |
- 101 | impl<'a, 'll, 'tcx> DebugInfoBuilderMethods for Builder<'a, 'll, 'tcx> {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `clear_dbg_loc`, `get_dbg_loc` in implementation
- |
- = help: implement the missing item: `fn clear_dbg_loc(&mut self) { todo!() }`
- = help: implement the missing item: `fn get_dbg_loc(&self) -> std::option::Option<<Self as rustc_codegen_ssa::traits::BackendTypes>::DILocation> { todo!() }`
- error[E0046]: not all trait items implemented, missing: `thin_link_data`
- --> /home/eva/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc_codegen_nvvm-0.3.0/src/lto.rs:65:1
- |
- 65 | impl ThinBufferMethods for ThinBuffer {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `thin_link_data` in implementation
- |
- = help: implement the missing item: `fn thin_link_data(&self) -> &[u8] { todo!() }`
- Some errors have detailed explanations: E0046, E0050, E0053, E0223, E0277, E0432, E0463, E0554, E0603.
- For more information about an error, try `rustc --explain E0046`.
- warning: [email protected]: In file included from /opt/llvm70/include/llvm/CodeGen/TargetSubtargetInfo.h:22,
- warning: [email protected]: from rustc_llvm_wrapper/PassWrapper.cpp:29:
- warning: [email protected]: /opt/llvm70/include/llvm/CodeGen/SchedulerRegistry.h: In constructor 'llvm::RegisterScheduler::RegisterScheduler(const char*, const char*, FunctionPassCtor)':
- 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]
- warning: [email protected]: 40 | : MachinePassRegistryNode(N, D, (MachinePassCtor)C)
- warning: [email protected]: | ^~~~~~~~~~~~~~~~~~
- warning: [email protected]: In file included from rustc_llvm_wrapper/rustllvm.h:15,
- warning: [email protected]: from rustc_llvm_wrapper/RustWrapper.cpp:11:
- 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]':
- warning: [email protected]: /opt/llvm70/include/llvm/IR/DIBuilder.h:640:31: required from here
- warning: [email protected]: 640 | return DIExpression::get(
- warning: [email protected]: | ~~~~~~~~~~~~~~~~~^
- warning: [email protected]: 641 | VMContext, {dwarf::DW_OP_constu, Val, dwarf::DW_OP_stack_value});
- warning: [email protected]: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 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]
- warning: [email protected]: 102 | : Data(Vec.begin() == Vec.end() ? (T*)nullptr : Vec.begin()),
- warning: [email protected]: | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
- warning: [email protected]: In file included from rustc_llvm_wrapper/rustllvm.h:15,
- warning: [email protected]: from rustc_llvm_wrapper/PassWrapper.cpp:16:
- 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]':
- warning: [email protected]: /opt/llvm70/include/llvm/IR/DIBuilder.h:640:31: required from here
- warning: [email protected]: 640 | return DIExpression::get(
- warning: [email protected]: | ~~~~~~~~~~~~~~~~~^
- warning: [email protected]: 641 | VMContext, {dwarf::DW_OP_constu, Val, dwarf::DW_OP_stack_value});
- warning: [email protected]: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 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]
- warning: [email protected]: 102 | : Data(Vec.begin() == Vec.end() ? (T*)nullptr : Vec.begin()),
- warning: [email protected]: | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
- error: could not compile `rustc_codegen_nvvm` (lib) due to 107 previous errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement