Struct rustc_driver::pretty::TypedAnnotation [−][src]
struct TypedAnnotation<'tcx> {
tcx: TyCtxt<'tcx>,
maybe_typeck_results: Cell<Option<&'tcx TypeckResults<'tcx>>>,
}Fields
tcx: TyCtxt<'tcx>maybe_typeck_results: Cell<Option<&'tcx TypeckResults<'tcx>>>Implementations
impl<'tcx> TypedAnnotation<'tcx>[src]
impl<'tcx> TypedAnnotation<'tcx>[src]fn typeck_results(&self) -> &'tcx TypeckResults<'tcx>[src]
fn typeck_results(&self) -> &'tcx TypeckResults<'tcx>[src]Gets the type-checking results for the current body.
As this will ICE if called outside bodies, only call when working with
Expr or Pat nodes (they are guaranteed to be found only in bodies).
Trait Implementations
impl<'tcx> HirPrinterSupport<'tcx> for TypedAnnotation<'tcx>[src]
impl<'tcx> HirPrinterSupport<'tcx> for TypedAnnotation<'tcx>[src]fn sess(&self) -> &Session[src]
fn sess(&self) -> &Session[src]Provides a uniform interface for re-extracting a reference to a
Session from a value that now owns it. Read more