MCPcopy Create free account
hub / github.com/Rust-for-Linux/klint / CallbacksExt

Interface CallbacksExt

src/driver.rs:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19use rustc_session::{EarlyDiagCtxt, Session};
20
21pub trait CallbacksExt: Callbacks + Send + 'static {
22 type ExtCtxt<'tcx>: DynSend + DynSync;
23
24 /// Create a new context that extends `TyCtxt`.
25 fn ext_cx<'tcx>(&mut self, _tcx: TyCtxt<'tcx>) -> Self::ExtCtxt<'tcx>;
26
27 fn after_codegen<'tcx>(&mut self, _cx: &'tcx Self::ExtCtxt<'tcx>) {}
28}
29
30/// Mapping from `TyCtxt<'tcx>` to `Ctxt<'tcx>`.
31static TCX_EXT_MAP: LazyLock<Mutex<FxHashMap<usize, Box<dyn Any + Send + Sync>>>> =

Callers 1

codegen_crateMethod · 0.45

Implementers 1

main.rssrc/main.rs

Calls

no outgoing calls

Tested by

no test coverage detected