[−][src]Struct rustc_metadata::creader::CrateLoader
🔬 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?
Fields
sess: &'a 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?
cstore: &'a CStore
🔬 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?
local_crate_name: 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?
Methods
impl<'a> CrateLoader<'a>
[src]
impl<'a> CrateLoader<'a>
pub fn new(
sess: &'a Session,
cstore: &'a CStore,
local_crate_name: &str
) -> Self
[src]
pub fn new(
sess: &'a Session,
cstore: &'a CStore,
local_crate_name: &str
) -> 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 existing_match(
&self,
name: Symbol,
hash: Option<&Svh>,
kind: PathKind
) -> Option<CrateNum>
[src]
fn existing_match(
&self,
name: Symbol,
hash: Option<&Svh>,
kind: PathKind
) -> Option<CrateNum>
🔬 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 verify_no_symbol_conflicts(&self, span: Span, root: &CrateRoot)
[src]
fn verify_no_symbol_conflicts(&self, span: Span, root: &CrateRoot)
🔬 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 register_crate(
&mut self,
root: &Option<CratePaths>,
ident: Symbol,
span: Span,
lib: Library,
dep_kind: DepKind
) -> (CrateNum, Lrc<CrateMetadata>)
[src]
fn register_crate(
&mut self,
root: &Option<CratePaths>,
ident: Symbol,
span: Span,
lib: Library,
dep_kind: DepKind
) -> (CrateNum, Lrc<CrateMetadata>)
🔬 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 resolve_crate<'b>(
&'b mut self,
root: &'b Option<CratePaths>,
ident: Symbol,
name: Symbol,
hash: Option<&'b Svh>,
extra_filename: Option<&'b str>,
span: Span,
path_kind: PathKind,
dep_kind: DepKind
) -> Result<(CrateNum, Lrc<CrateMetadata>), LoadError<'b>>
[src]
fn resolve_crate<'b>(
&'b mut self,
root: &'b Option<CratePaths>,
ident: Symbol,
name: Symbol,
hash: Option<&'b Svh>,
extra_filename: Option<&'b str>,
span: Span,
path_kind: PathKind,
dep_kind: DepKind
) -> Result<(CrateNum, Lrc<CrateMetadata>), LoadError<'b>>
🔬 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 load(&mut self, locate_ctxt: &mut Context) -> Option<LoadResult>
[src]
fn load(&mut self, locate_ctxt: &mut Context) -> Option<LoadResult>
🔬 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 update_extern_crate(
&mut self,
cnum: CrateNum,
extern_crate: ExternCrate,
visited: &mut FxHashSet<(CrateNum, bool)>
)
[src]
fn update_extern_crate(
&mut self,
cnum: CrateNum,
extern_crate: ExternCrate,
visited: &mut FxHashSet<(CrateNum, bool)>
)
🔬 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 resolve_crate_deps(
&mut self,
root: &Option<CratePaths>,
crate_root: &CrateRoot,
metadata: &MetadataBlob,
krate: CrateNum,
span: Span,
dep_kind: DepKind
) -> CrateNumMap
[src]
fn resolve_crate_deps(
&mut self,
root: &Option<CratePaths>,
crate_root: &CrateRoot,
metadata: &MetadataBlob,
krate: CrateNum,
span: Span,
dep_kind: DepKind
) -> CrateNumMap
🔬 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 read_extension_crate(
&mut self,
span: Span,
orig_name: Symbol,
rename: Symbol
) -> ExtensionCrate
[src]
fn read_extension_crate(
&mut self,
span: Span,
orig_name: Symbol,
rename: Symbol
) -> ExtensionCrate
🔬 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 load_derive_macros(
&mut self,
root: &CrateRoot,
dylib: Option<PathBuf>,
span: Span
) -> Vec<(Name, Lrc<SyntaxExtension>)>
[src]
fn load_derive_macros(
&mut self,
root: &CrateRoot,
dylib: Option<PathBuf>,
span: Span
) -> Vec<(Name, Lrc<SyntaxExtension>)>
🔬 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?
Load custom derive macros.
Note that this is intentionally similar to how we load plugins today, but also intentionally separate. Plugins are likely always going to be implemented as dynamic libraries, but we have a possible future where custom derive (and other macro-1.1 style features) are implemented via executables and custom IPC.
pub fn find_plugin_registrar(
&mut self,
span: Span,
name: &str
) -> Option<(PathBuf, CrateDisambiguator)>
[src]
pub fn find_plugin_registrar(
&mut self,
span: Span,
name: &str
) -> Option<(PathBuf, CrateDisambiguator)>
🔬 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?
Look for a plugin registrar. Returns library path, crate SVH and DefIndex of the registrar function.
fn inject_panic_runtime(&mut self, krate: &Crate)
[src]
fn inject_panic_runtime(&mut self, krate: &Crate)
🔬 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 inject_sanitizer_runtime(&mut self)
[src]
fn inject_sanitizer_runtime(&mut 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 inject_profiler_runtime(&mut self)
[src]
fn inject_profiler_runtime(&mut 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 inject_allocator_crate(&mut self, krate: &Crate)
[src]
fn inject_allocator_crate(&mut self, krate: &Crate)
🔬 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 inject_dependency_if(
&self,
krate: CrateNum,
what: &str,
needs_dep: &Fn(&CrateMetadata) -> bool
)
[src]
fn inject_dependency_if(
&self,
krate: CrateNum,
what: &str,
needs_dep: &Fn(&CrateMetadata) -> bool
)
🔬 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?
impl<'a> CrateLoader<'a>
[src]
impl<'a> CrateLoader<'a>
pub fn postprocess(&mut self, krate: &Crate)
[src]
pub fn postprocess(&mut self, krate: &Crate)
🔬 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?
pub fn process_extern_crate(
&mut self,
item: &Item,
definitions: &Definitions
) -> CrateNum
[src]
pub fn process_extern_crate(
&mut self,
item: &Item,
definitions: &Definitions
) -> CrateNum
🔬 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?
pub fn process_path_extern(&mut self, name: Symbol, span: Span) -> CrateNum
[src]
pub fn process_path_extern(&mut self, name: Symbol, span: Span) -> CrateNum
🔬 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?
pub fn maybe_process_path_extern(
&mut self,
name: Symbol,
span: Span
) -> Option<CrateNum>
[src]
pub fn maybe_process_path_extern(
&mut self,
name: Symbol,
span: Span
) -> Option<CrateNum>
🔬 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?
Auto Trait Implementations
impl<'a> !Send for CrateLoader<'a>
impl<'a> !Send for CrateLoader<'a>
impl<'a> !Sync for CrateLoader<'a>
impl<'a> !Sync for CrateLoader<'a>
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
ⓘImportant traits for &'a mut Rfn borrow(&self) -> &T
[src]
fn borrow(&self) -> &T
Immutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
ⓘImportant traits for &'a mut Rfn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<E> SpecializationError for E
[src]
impl<E> SpecializationError for E
fn not_found<S, T>(trait_name: &'static str, method_name: &'static str) -> E where
T: ?Sized,
[src]
fn not_found<S, T>(trait_name: &'static str, method_name: &'static str) -> E where
T: ?Sized,
🔬 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?
Create an error for a missing method specialization. Defaults to panicking with type, trait & method names. S
is the encoder/decoder state type, T
is the type being encoded/decoded, and the arguments are the names of the trait and method that should've been overridden. Read more
impl<T> Erased for T
[src]
impl<T> Erased for T
impl<T> Send for T where
T: ?Sized,
[src]
impl<T> Send for T where
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
impl<T> Sync for T where
T: ?Sized,
impl<T> Erased for T
impl<T> Erased for T
impl<T> MaybeResult for T
[src]
impl<T> MaybeResult for T
fn from_ok(x: T) -> T
[src]
fn from_ok(x: T) -> T
🔬 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 map_same<F>(self, f: F) -> T where
F: FnOnce(T) -> T,
[src]
fn map_same<F>(self, f: F) -> T where
F: FnOnce(T) -> T,
🔬 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?
impl<'a, T> Captures for T where
T: ?Sized,
[src]
impl<'a, T> Captures for T where
T: ?Sized,