Struct rustc_passes::check_const::CheckConstTraitVisitor
source · [−]struct CheckConstTraitVisitor<'tcx> {
tcx: TyCtxt<'tcx>,
}Fields
tcx: TyCtxt<'tcx>Implementations
Trait Implementations
check for const trait impls, and errors if the impl uses provided/default functions of the trait being implemented; as those provided functions can be non-const.
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for CheckConstTraitVisitor
impl<'tcx> !Send for CheckConstTraitVisitor
impl<'tcx> !Sync for CheckConstTraitVisitor
impl<'tcx> Unpin for CheckConstTraitVisitor
impl<'tcx> !UnwindSafe for CheckConstTraitVisitor
Blanket Implementations
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes