| 19 | use rustc_session::{EarlyDiagCtxt, Session}; |
| 20 | |
| 21 | pub 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>`. |
| 31 | static TCX_EXT_MAP: LazyLock<Mutex<FxHashMap<usize, Box<dyn Any + Send + Sync>>>> = |
no outgoing calls
no test coverage detected