- mut analysis: ty::CrateAnalysis,
- resolutions: Resolutions,
- arena: &'tcx DroplessArena,
- arenas: &'tcx GlobalArenas<'tcx>,
- name: &str,
- output_filenames: &OutputFilenames,
- f: F)
- -> Result<R, CompileIncomplete>
- where F: for<'a> FnOnce(TyCtxt<'a, 'tcx, 'tcx>,
- ty::CrateAnalysis,
- mpsc::Receiver<Box<Any + Send>>,
- CompileResult) -> R
- {
- macro_rules! try_with_f {
- ($e: expr, ($($t:tt)*)) => {
- match $e {
- Ok(x) => x,
- Err(x) => {
- f($($t)*, Err(x));
- return Err(x);
- }