rustc 1.64.0-nightly (1b57946a4 2022-08-03)
binary: rustc
commit-hash: 1b57946a405d5b2a87e612335db033edb2c3427f
commit-date: 2022-08-03
host: x86_64-unknown-linux-gnu
release: 1.64.0-nightly
LLVM version: 14.0.6
--> 9b62bf4183779f002aba901cbe888acec64ea7c5.rs:13:30
|
13 | link_binary::<crate::archive::ArArchiveBuilder<'_>>(
| ^^^^^^^
| |
| unresolved import
| help: a similar path exists: `rustc_codegen_ssa::back::archive`
error[E0412]: cannot find type `Session` in this scope
--> 9b62bf4183779f002aba901cbe888acec64ea7c5.rs:10:27
|
10 | fn link(&self, sess: &Session, codegen_results: CodegenResults, outputs: &OutputFilenames) -> Result<(), ErrorReported> {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type `OutputFilenames` in this scope
--> 9b62bf4183779f002aba901cbe888acec64ea7c5.rs:10:79
|
10 | fn link(&self, sess: &Session, codegen_results: CodegenResults, outputs: &OutputFilenames) -> Result<(), ErrorReported> {
| ^^^^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `ErrorReported` in this scope
--> 9b62bf4183779f002aba901cbe888acec64ea7c5.rs:10:110
|
9 | impl CodegenBackend for GccCodegenBackend {
| - help: you might be missing a type parameter: `<ErrorReported>`
10 | fn link(&self, sess: &Session, codegen_results: CodegenResults, outputs: &OutputFilenames) -> Result<(), ErrorReported> {
| ^^^^^^^^^^^^^ not found in this scope
error[E0601]: `main` function not found in crate `9b62bf4183779f002aba901cbe888acec64ea7c5`
--> 9b62bf4183779f002aba901cbe888acec64ea7c5.rs:21:50
|
21 | impl WriteBackendMethods for GccCodegenBackend {}
| ^ consider adding a `main` function to `9b62bf4183779f002aba901cbe888acec64ea7c5.rs`
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> 9b62bf4183779f002aba901cbe888acec64ea7c5.rs:1:1
|
1 | extern crate rustc_codegen_ssa;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> 9b62bf4183779f002aba901cbe888acec64ea7c5.rs:3:5
|
3 | use rustc_codegen_ssa::CodegenResults;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> 9b62bf4183779f002aba901cbe888acec64ea7c5.rs:4:33
|
4 | use rustc_codegen_ssa::traits::{CodegenBackend, WriteBackendMethods};
| ^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> 9b62bf4183779f002aba901cbe888acec64ea7c5.rs:4:49
|
4 | use rustc_codegen_ssa::traits::{CodegenBackend, WriteBackendMethods};
| ^^^^^^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> 9b62bf4183779f002aba901cbe888acec64ea7c5.rs:10:5
|
10 | / fn link(&self, sess: &Session, codegen_results: CodegenResults, outputs: &OutputFilenames) -> Result<(), ErrorReported> {
11 | | use rustc_codegen_ssa::back::link::link_binary;
12 | |
13 | | link_binary::<crate::archive::ArArchiveBuilder<'_>>(
... |
17 | | )
18 | | }
| |_____^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> 9b62bf4183779f002aba901cbe888acec64ea7c5.rs:9:6
|
9 | impl CodegenBackend for GccCodegenBackend {
| ^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> 9b62bf4183779f002aba901cbe888acec64ea7c5.rs:11:13
|
11 | use rustc_codegen_ssa::back::link::link_binary;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> 9b62bf4183779f002aba901cbe888acec64ea7c5.rs:21:6
|
21 | impl WriteBackendMethods for GccCodegenBackend {}
| ^^^^^^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> 9b62bf4183779f002aba901cbe888acec64ea7c5.rs:10:53
|
10 | fn link(&self, sess: &Session, codegen_results: CodegenResults, outputs: &OutputFilenames) -> Result<(), ErrorReported> {
| ^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
--> 9b62bf4183779f002aba901cbe888acec64ea7c5.rs:13:9
|
13 | link_binary::<crate::archive::ArArchiveBuilder<'_>>(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
error[E0046]: not all trait items implemented, missing: `codegen_crate`, `join_codegen`
--> 9b62bf4183779f002aba901cbe888acec64ea7c5.rs:9:1
|
9 | impl CodegenBackend for GccCodegenBackend {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `codegen_crate`, `join_codegen` in implementation
|
= help: implement the missing item: `fn codegen_crate(&self, _: rustc_middle::ty::context::TyCtxt<'tcx>, _: rustc_metadata::rmeta::encoder::EncodedMetadata, _: bool) -> Box<(dyn Any + 'static)> { todo!() }`
= help: implement the missing item: `fn join_codegen(&self, _: Box<(dyn Any + 'static)>, _: &rustc_session::session::Session, _: &rustc_session::config::OutputFilenames) -> Result<(CodegenResults, HashMap<rustc_query_system::dep_graph::dep_node::WorkProductId, rustc_query_system::dep_graph::graph::WorkProduct, BuildHasherDefault<rustc_hash::FxHasher>>), rustc_errors::ErrorGuaranteed> { todo!() }`
error[E0046]: not all trait items implemented, missing: `Module`, `TargetMachine`, `ModuleBuffer`, `Context`, `ThinData`, `ThinBuffer`, `run_link`, `run_fat_lto`, `run_thin_lto`, `print_pass_timings`, `optimize`, `optimize_fat`, `optimize_thin`, `codegen`, `prepare_thin`, `serialize_module`
--> 9b62bf4183779f002aba901cbe888acec64ea7c5.rs:21:1
|
21 | impl WriteBackendMethods for GccCodegenBackend {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `Module`, `TargetMachine`, `ModuleBuffer`, `Context`, `ThinData`, `ThinBuffer`, `run_link`, `run_fat_lto`, `run_thin_lto`, `print_pass_timings`, `optimize`, `optimize_fat`, `optimize_thin`, `codegen`, `prepare_thin`, `serialize_module` in implementation
|
= help: implement the missing item: `type Module = Type;`
= help: implement the missing item: `type TargetMachine = Type;`
= help: implement the missing item: `type ModuleBuffer = Type;`
= help: implement the missing item: `type Context = Type;`
= help: implement the missing item: `type ThinData = Type;`
= help: implement the missing item: `type ThinBuffer = Type;`
= help: implement the missing item: `fn run_link(_: &CodegenContext<Self>, _: &rustc_errors::Handler, _: Vec<ModuleCodegen<<Self as WriteBackendMethods>::Module>>) -> Result<ModuleCodegen<<Self as WriteBackendMethods>::Module>, rustc_span::fatal_error::FatalError> { todo!() }`
= help: implement the missing item: `fn run_fat_lto(_: &CodegenContext<Self>, _: Vec<FatLTOInput<Self>>, _: Vec<(SerializedModule<<Self as WriteBackendMethods>::ModuleBuffer>, rustc_query_system::dep_graph::graph::WorkProduct)>) -> Result<LtoModuleCodegen<Self>, rustc_span::fatal_error::FatalError> { todo!() }`
= help: implement the missing item: `fn run_thin_lto(_: &CodegenContext<Self>, _: Vec<(String, <Self as WriteBackendMethods>::ThinBuffer)>, _: Vec<(SerializedModule<<Self as WriteBackendMethods>::ModuleBuffer>, rustc_query_system::dep_graph::graph::WorkProduct)>) -> Result<(Vec<LtoModuleCodegen<Self>>, Vec<rustc_query_system::dep_graph::graph::WorkProduct>), rustc_span::fatal_error::FatalError> { todo!() }`
= help: implement the missing item: `fn print_pass_timings(&self) { todo!() }`
= help: implement the missing item: `unsafe fn optimize(_: &CodegenContext<Self>, _: &rustc_errors::Handler, _: &ModuleCodegen<<Self as WriteBackendMethods>::Module>, _: &ModuleConfig) -> Result<(), rustc_span::fatal_error::FatalError> { todo!() }`
= help: implement the missing item: `fn optimize_fat(_: &CodegenContext<Self>, _: &mut ModuleCodegen<<Self as WriteBackendMethods>::Module>) -> Result<(), rustc_span::fatal_error::FatalError> { todo!() }`
= help: implement the missing item: `unsafe fn optimize_thin(_: &CodegenContext<Self>, _: ThinModule<Self>) -> Result<ModuleCodegen<<Self as WriteBackendMethods>::Module>, rustc_span::fatal_error::FatalError> { todo!() }`
= help: implement the missing item: `unsafe fn codegen(_: &CodegenContext<Self>, _: &rustc_errors::Handler, _: ModuleCodegen<<Self as WriteBackendMethods>::Module>, _: &ModuleConfig) -> Result<CompiledModule, rustc_span::fatal_error::FatalError> { todo!() }`
= help: implement the missing item: `fn prepare_thin(_: ModuleCodegen<<Self as WriteBackendMethods>::Module>) -> (String, <Self as WriteBackendMethods>::ThinBuffer) { todo!() }`
= help: implement the missing item: `fn serialize_module(_: ModuleCodegen<<Self as WriteBackendMethods>::Module>) -> (String, <Self as WriteBackendMethods>::ModuleBuffer) { todo!() }`
error[E0107]: this function takes 0 generic arguments but 1 generic argument was supplied
--> 9b62bf4183779f002aba901cbe888acec64ea7c5.rs:13:9
|
13 | link_binary::<crate::archive::ArArchiveBuilder<'_>>(
| ^^^^^^^^^^^---------------------------------------- help: remove these generics
| |
| expected 0 generic arguments
Code
Meta
rustc --version --verbose:Error output
Backtrace