diff options
| author | Adam Perry <adam.n.perry@gmail.com> | 2019-10-10 07:50:33 -0700 |
|---|---|---|
| committer | Adam Perry <adam.n.perry@gmail.com> | 2019-10-10 07:50:33 -0700 |
| commit | 2dbc62b56a1ce0457108c86156a6ab357d870f08 (patch) | |
| tree | d357a1622161fb52b855360c2bbdb2ed87f85809 | |
| parent | 407d1d5fd4a81b2bc717fc86475209eb59d50fb8 (diff) | |
| download | rust-2dbc62b56a1ce0457108c86156a6ab357d870f08.tar.gz rust-2dbc62b56a1ce0457108c86156a6ab357d870f08.zip | |
Clarify shim implementation comment.
| -rw-r--r-- | src/librustc_mir/shim.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc_mir/shim.rs b/src/librustc_mir/shim.rs index 0d13daa2643..c4d66ee7dbd 100644 --- a/src/librustc_mir/shim.rs +++ b/src/librustc_mir/shim.rs @@ -69,7 +69,8 @@ fn make_shim<'tcx>(tcx: TyCtxt<'tcx>, instance: ty::InstanceDef<'tcx>) -> &'tcx // We are generating a call back to our def-id, which the // codegen backend knows to turn to an actual virtual call. ty::InstanceDef::Virtual(def_id, _) | - // ...or we are generating a call to the inner closure defined by #[track_caller] + // ...or we are generating a direct call to our #[track_caller] function which + // requires an implicit caller location that the virtual call won't pass ty::InstanceDef::ReifyShim(def_id) => { build_call_shim( tcx, |
