Skip to content

Commit 2dbc62b

Browse files
committed
Clarify shim implementation comment.
1 parent 407d1d5 commit 2dbc62b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc_mir/shim.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ fn make_shim<'tcx>(tcx: TyCtxt<'tcx>, instance: ty::InstanceDef<'tcx>) -> &'tcx
6969
// We are generating a call back to our def-id, which the
7070
// codegen backend knows to turn to an actual virtual call.
7171
ty::InstanceDef::Virtual(def_id, _) |
72-
// ...or we are generating a call to the inner closure defined by #[track_caller]
72+
// ...or we are generating a direct call to our #[track_caller] function which
73+
// requires an implicit caller location that the virtual call won't pass
7374
ty::InstanceDef::ReifyShim(def_id) => {
7475
build_call_shim(
7576
tcx,

0 commit comments

Comments
 (0)