Struct rustc::middle::stability::DeprecationEntry [−][src]
pub struct DeprecationEntry {
pub attr: Deprecation,
origin: Option<HirId>,
}🔬 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?
An entry in the depr_map.
Fields
attr: Deprecation
🔬 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?
The metadata of the attribute associated with this entry.
origin: Option<HirId>
🔬 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?
The def id where the attr was originally attached. None for non-local
DefId's.
Methods
impl DeprecationEntry[src]
impl DeprecationEntryfn local(attr: Deprecation, id: HirId) -> DeprecationEntry[src]
fn local(attr: Deprecation, id: HirId) -> DeprecationEntry🔬 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 external(attr: Deprecation) -> DeprecationEntry[src]
pub fn external(attr: Deprecation) -> DeprecationEntry🔬 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 same_origin(&self, other: &DeprecationEntry) -> bool[src]
pub fn same_origin(&self, other: &DeprecationEntry) -> 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?
Trait Implementations
impl Clone for DeprecationEntry[src]
impl Clone for DeprecationEntryfn clone(&self) -> DeprecationEntry[src]
fn clone(&self) -> DeprecationEntryReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for DeprecationEntry[src]
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for DeprecationEntryfn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)[src]
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)🔬 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 !Send for DeprecationEntry
impl !Send for DeprecationEntryimpl !Sync for DeprecationEntry
impl !Sync for DeprecationEntry