We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5219f3b commit 052563bCopy full SHA for 052563b
src/analyze.rs
@@ -339,6 +339,11 @@ impl<'tcx> Analyzer<'tcx> {
339
}
340
341
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`.
347
pub fn local_fn_sig_with_body(
348
&self,
349
local_def_id: LocalDefId,
0 commit comments