Struct rustc_trait_selection::traits::util::TraitAliasExpansionInfo
source · [−]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
impl<'tcx> !Send for TraitAliasExpansionInfo
impl<'tcx> !Sync for TraitAliasExpansionInfo
impl<'tcx> Unpin for TraitAliasExpansionInfo
impl<'tcx> !UnwindSafe for TraitAliasExpansionInfo
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