Struct rustc_typeck::coherence::orphan::OrphanChecker [−][src]
struct OrphanChecker<'cx, 'tcx: 'cx> { tcx: TyCtxt<'cx, 'tcx, 'tcx>, }
🔬 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
tcx: TyCtxt<'cx, 'tcx, 'tcx>
🔬 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<'cx, 'tcx, 'v> ItemLikeVisitor<'v> for OrphanChecker<'cx, 'tcx>
[src]
impl<'cx, 'tcx, 'v> ItemLikeVisitor<'v> for OrphanChecker<'cx, 'tcx>
fn visit_item(&mut self, item: &Item)
[src]
fn visit_item(&mut self, item: &Item)
🔬 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?
Checks exactly one impl for orphan rules and other such restrictions. In this fn, it can happen that multiple errors apply to a specific impl, so just return after reporting one to prevent inundating the user with a bunch of similar error reports.
fn visit_trait_item(&mut self, _trait_item: &TraitItem)
[src]
fn visit_trait_item(&mut self, _trait_item: &TraitItem)
🔬 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 visit_impl_item(&mut self, _impl_item: &ImplItem)
[src]
fn visit_impl_item(&mut self, _impl_item: &ImplItem)
🔬 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<'cx, 'tcx> !Send for OrphanChecker<'cx, 'tcx>
impl<'cx, 'tcx> !Send for OrphanChecker<'cx, 'tcx>
impl<'cx, 'tcx> !Sync for OrphanChecker<'cx, 'tcx>
impl<'cx, 'tcx> !Sync for OrphanChecker<'cx, 'tcx>