Function rustc_utils::test_utils::compile_body_with_range
source ยท pub fn compile_body_with_range(
input: impl Into<String>,
compute_target: impl FnOnce() -> ByteRange + Send,
callback: impl for<'tcx> FnOnce(TyCtxt<'tcx>, BodyId, &'tcx BodyWithBorrowckFacts<'tcx>, ByteRange) + Send
)
Available on crate feature
test
only.