Trait rustc_trans_utils::trans_crate::TransCrate
[−]
[src]
pub trait TransCrate { fn metadata_loader(&self) -> Box<MetadataLoader + Sync>; fn provide(&self, _providers: &mut Providers); fn provide_extern(&self, _providers: &mut Providers); fn trans_crate<'a, 'tcx>(
&self,
tcx: TyCtxt<'a, 'tcx, 'tcx>,
rx: Receiver<Box<Any + Send>>
) -> Box<Any>; fn join_trans_and_link(
&self,
trans: Box<Any>,
sess: &Session,
dep_graph: &DepGraph,
outputs: &OutputFilenames
) -> Result<(), CompileIncomplete>; fn init(&self, _sess: &Session) { ... } fn print(&self, _req: PrintRequest, _sess: &Session) { ... } fn target_features(&self, _sess: &Session) -> Vec<Symbol> { ... } fn print_passes(&self) { ... } fn print_version(&self) { ... } fn diagnostics(&self) -> &[(&'static str, &'static str)] { ... } }
🔬 This is a nightly-only experimental API. (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?
Required Methods
fn metadata_loader(&self) -> Box<MetadataLoader + Sync>
🔬 This is a nightly-only experimental API. (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?
fn provide(&self, _providers: &mut Providers)
🔬 This is a nightly-only experimental API. (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?
fn provide_extern(&self, _providers: &mut Providers)
🔬 This is a nightly-only experimental API. (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?
fn trans_crate<'a, 'tcx>(
&self,
tcx: TyCtxt<'a, 'tcx, 'tcx>,
rx: Receiver<Box<Any + Send>>
) -> Box<Any>
&self,
tcx: TyCtxt<'a, 'tcx, 'tcx>,
rx: Receiver<Box<Any + Send>>
) -> Box<Any>
🔬 This is a nightly-only experimental API. (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?
fn join_trans_and_link(
&self,
trans: Box<Any>,
sess: &Session,
dep_graph: &DepGraph,
outputs: &OutputFilenames
) -> Result<(), CompileIncomplete>
&self,
trans: Box<Any>,
sess: &Session,
dep_graph: &DepGraph,
outputs: &OutputFilenames
) -> Result<(), CompileIncomplete>
🔬 This is a nightly-only experimental API. (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?
This is called on the returned Box<Any>
from trans_crate
Panics
Panics when the passed Box<Any>
was not returned by trans_crate
.
Provided Methods
fn init(&self, _sess: &Session)
🔬 This is a nightly-only experimental API. (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?
fn print(&self, _req: PrintRequest, _sess: &Session)
🔬 This is a nightly-only experimental API. (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?
fn target_features(&self, _sess: &Session) -> Vec<Symbol>
🔬 This is a nightly-only experimental API. (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?
fn print_passes(&self)
🔬 This is a nightly-only experimental API. (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?
fn print_version(&self)
🔬 This is a nightly-only experimental API. (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?
fn diagnostics(&self) -> &[(&'static str, &'static str)]
🔬 This is a nightly-only experimental API. (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?
Implementors
impl TransCrate for DummyTransCrate
impl TransCrate for MetadataOnlyTransCrate