Neaten a couple of long signatures
This commit is contained in:
parent
d23cbc3fbe
commit
5c83422a5b
@ -1021,9 +1021,10 @@ pub fn start_async_translation(tcx: TyCtxt,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn generate_module_artifacts(sess: &Session,
|
fn generate_module_artifacts(
|
||||||
compiled_modules: &CompiledModules)
|
sess: &Session,
|
||||||
-> FxHashMap<WorkProductId, WorkProduct> {
|
compiled_modules: &CompiledModules
|
||||||
|
) -> FxHashMap<WorkProductId, WorkProduct> {
|
||||||
let mut work_products = FxHashMap::default();
|
let mut work_products = FxHashMap::default();
|
||||||
|
|
||||||
if sess.opts.incremental.is_none() {
|
if sess.opts.incremental.is_none() {
|
||||||
@ -2242,7 +2243,10 @@ pub struct OngoingCrateTranslation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl OngoingCrateTranslation {
|
impl OngoingCrateTranslation {
|
||||||
pub(crate) fn join(self, sess: &Session) -> (CrateTranslation, FxHashMap<WorkProductId, WorkProduct>) {
|
pub(crate) fn join(
|
||||||
|
self,
|
||||||
|
sess: &Session
|
||||||
|
) -> (CrateTranslation, FxHashMap<WorkProductId, WorkProduct>) {
|
||||||
self.shared_emitter_main.check(sess, true);
|
self.shared_emitter_main.check(sess, true);
|
||||||
let compiled_modules = match self.future.join() {
|
let compiled_modules = match self.future.join() {
|
||||||
Ok(Ok(compiled_modules)) => compiled_modules,
|
Ok(Ok(compiled_modules)) => compiled_modules,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user