Struct rustc_trait_selection::traits::util::TraitAliasExpansionInfo [−][src]
Expand description
Stores information about the expansion of a trait via a path of zero or more trait aliases.
Fields
path: SmallVec<[(PolyTraitRef<'tcx>, Span); 4]>
Implementations
pub fn label_with_exp_info(
&self,
diag: &mut DiagnosticBuilder<'_>,
top_label: &str,
use_desc: &str
)
pub fn label_with_exp_info(
&self,
diag: &mut DiagnosticBuilder<'_>,
top_label: &str,
use_desc: &str
)
Adds diagnostic labels to diag
for the expansion path of a trait through all intermediate
trait aliases.
Trait Implementations
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for TraitAliasExpansionInfo<'tcx>
impl<'tcx> !Send for TraitAliasExpansionInfo<'tcx>
impl<'tcx> !Sync for TraitAliasExpansionInfo<'tcx>
impl<'tcx> Unpin for TraitAliasExpansionInfo<'tcx>
impl<'tcx> !UnwindSafe for TraitAliasExpansionInfo<'tcx>
Blanket Implementations
Mutably borrows from an owned value. Read more
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: 136 bytes