Skip to content

Commit 052563b

Browse files
committed
fixup! Instantiate body instead of using ParamTypeMapper
1 parent 5219f3b commit 052563b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/analyze.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,11 @@ impl<'tcx> Analyzer<'tcx> {
339339
}
340340
}
341341

342+
/// Computes the signature of the local function.
343+
///
344+
/// This is a drop-in replacement of `self.tcx.fn_sig(local_def_id).instantiate_identity().skip_binder()`,
345+
/// but extracts parameter and return types directly from the given `body` to obtain a signature that
346+
/// reflects potential type instantiations happened after `optimized_mir`.
342347
pub fn local_fn_sig_with_body(
343348
&self,
344349
local_def_id: LocalDefId,

0 commit comments

Comments
 (0)