pub(super) struct DetachedSpecsCollector<'a, 'sess, 'tcx> {
inner: &'a mut SpecCollector<'sess, 'tcx>,
id_resolver: HashMap<NodeId, LookupRes>,
impl_resolver: TraitImplResolver,
}
Fields§
§inner: &'a mut SpecCollector<'sess, 'tcx>
§id_resolver: HashMap<NodeId, LookupRes>
§impl_resolver: TraitImplResolver
Implementations§
Source§impl<'a, 'sess, 'tcx> DetachedSpecsCollector<'a, 'sess, 'tcx>
impl<'a, 'sess, 'tcx> DetachedSpecsCollector<'a, 'sess, 'tcx>
pub(super) fn collect( inner: &'a mut SpecCollector<'sess, 'tcx>, attrs: &mut FluxAttrs, module_id: LocalDefId, ) -> Result<(), ErrorGuaranteed>
fn run( &mut self, detached_specs: DetachedSpecs, def_id: LocalDefId, ) -> Result<(), ErrorGuaranteed>
fn resolve_path_kind( &mut self, resolver: &ScopeResolver, path: &ExprPath, kind: &DetachedItemKind, ) -> Result<(), ErrorGuaranteed>
fn resolve( &mut self, detached_specs: &DetachedSpecs, def_id: LocalDefId, ) -> Result<(), ErrorGuaranteed>
fn unwrap_def_id( &self, def_id: &DefId, ) -> Result<Option<LocalDefId>, ErrorGuaranteed>
fn lookup(&mut self, item: &DetachedItem) -> Result<LocalDefId, ErrorGuaranteed>
fn attach(&mut self, item: DetachedItem) -> Result<(), ErrorGuaranteed>
fn collect_trait( &mut self, owner_id: OwnerId, node_id: NodeId, attrs: Vec<Attr>, trait_def: DetachedTrait, ) -> Result<(), ErrorGuaranteed>
fn collect_trait_impl( &mut self, owner_id: OwnerId, node_id: NodeId, attrs: Vec<Attr>, trait_impl: DetachedTraitImpl, ) -> Result<(), ErrorGuaranteed>
fn collect_assoc_methods( &mut self, methods: Vec<DetachedItem<FnSig>>, assoc_items: impl Iterator<Item = &'tcx AssocItem>, insert_item: impl FnMut(&mut Self, OwnerId, DetachedItem<FnSig>) -> Result<(), ErrorGuaranteed>, ) -> Result<(), ErrorGuaranteed>
Auto Trait Implementations§
impl<'a, 'sess, 'tcx> Freeze for DetachedSpecsCollector<'a, 'sess, 'tcx>
impl<'a, 'sess, 'tcx> !RefUnwindSafe for DetachedSpecsCollector<'a, 'sess, 'tcx>
impl<'a, 'sess, 'tcx> !Send for DetachedSpecsCollector<'a, 'sess, 'tcx>
impl<'a, 'sess, 'tcx> !Sync for DetachedSpecsCollector<'a, 'sess, 'tcx>
impl<'a, 'sess, 'tcx> Unpin for DetachedSpecsCollector<'a, 'sess, 'tcx>
impl<'a, 'sess, 'tcx> !UnwindSafe for DetachedSpecsCollector<'a, 'sess, 'tcx>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more